|
|
|
@ -59,6 +59,7 @@ Page({
|
|
|
|
|
sVerifycode: e.detail.value
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取验证码
|
|
|
|
|
captcha() {
|
|
|
|
|
let b = this.validPhone();
|
|
|
|
@ -101,18 +102,59 @@ Page({
|
|
|
|
|
brandName: this.data.brandName,
|
|
|
|
|
sVerifycode: this.data.sVerifycode,
|
|
|
|
|
}
|
|
|
|
|
app.globalData.request(obj).then((res) => {
|
|
|
|
|
// app.globalData.request(obj).then((res) => {
|
|
|
|
|
// console.log('cd',res)
|
|
|
|
|
// wx.showModal({
|
|
|
|
|
// title: '提示',
|
|
|
|
|
// content: res.Msg,
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
app.globalData.request(obj, (res) => {
|
|
|
|
|
if (res.Code == 1) {
|
|
|
|
|
wx.showModal({
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: data.Msg,
|
|
|
|
|
content: res.Msg,
|
|
|
|
|
})
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
wx.showModal({
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: err.Msg,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getlist() {
|
|
|
|
|
let obj = {
|
|
|
|
|
action: 'ifUserAdminOnly',
|
|
|
|
|
sUserName: this.data.sUserName,
|
|
|
|
|
sPhone: this.data.sPhone,
|
|
|
|
|
sEmail: this.data.sEmail,
|
|
|
|
|
}
|
|
|
|
|
console.log('cdssx', obj)
|
|
|
|
|
app.globalData.request(obj, (res) => {
|
|
|
|
|
console.log('cdx', res.data)
|
|
|
|
|
if (res.Code == 1) {
|
|
|
|
|
wx.showModal({
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: res.Msg,
|
|
|
|
|
success(res) {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
this.captcha()
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
wx.showModal({
|
|
|
|
|
title: '提示',
|
|
|
|
|
content: res.Msg,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
validPhone() {
|
|
|
|
|
let b = true;
|
|
|
|
|
let sPhone = this.data.sPhone;
|
|
|
|
|