|
@@ -26,7 +26,6 @@ Page({
|
|
},
|
|
},
|
|
// 提交注册
|
|
// 提交注册
|
|
onSubmit: function (e) {
|
|
onSubmit: function (e) {
|
|
- console.log("用户类别:" + type)
|
|
|
|
const params = e.detail.value;
|
|
const params = e.detail.value;
|
|
params.type = type
|
|
params.type = type
|
|
if (!this.WxValidate.checkForm(params)) {
|
|
if (!this.WxValidate.checkForm(params)) {
|
|
@@ -34,7 +33,6 @@ Page({
|
|
wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
|
|
wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
|
|
return false
|
|
return false
|
|
} else {
|
|
} else {
|
|
- console.log(params);
|
|
|
|
wx.request({
|
|
wx.request({
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/user`, //接口地址
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/user`, //接口地址
|
|
method: 'post',
|
|
method: 'post',
|