|
|
|
|
@ -18,8 +18,13 @@ Page({
|
|
|
|
|
formPath: "",
|
|
|
|
|
loginType: "tel", // 登录类型
|
|
|
|
|
password: null,
|
|
|
|
|
showPSW: false
|
|
|
|
|
|
|
|
|
|
showPSW: false,
|
|
|
|
|
switchChecked:false,
|
|
|
|
|
},
|
|
|
|
|
switchChange(){
|
|
|
|
|
this.setData({
|
|
|
|
|
switchChecked:!this.data.switchChecked
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
wxLogin () {
|
|
|
|
|
var that = this;
|
|
|
|
|
@ -209,11 +214,21 @@ Page({
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
checkCheck(){
|
|
|
|
|
var that = this;
|
|
|
|
|
if(!that.data.switchChecked){
|
|
|
|
|
app.showTips(that, "请先同意用户服务协议及隐私协议");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getPhoneNumber (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
|
|
|
|
|
|
console.log(that.data.switchChecked);
|
|
|
|
|
if(!that.data.switchChecked){
|
|
|
|
|
app.showTips(that, "请先同意用户服务协议及隐私协议");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if ("getPhoneNumber:ok" == e.detail.errMsg || "phonenumber:ok" == e.detail.errMsg) {
|
|
|
|
|
//同意
|
|
|
|
|
wx.showLoading({
|
|
|
|
|
@ -666,6 +681,13 @@ Page({
|
|
|
|
|
beforeFormSubmit (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
if(!that.data.switchChecked){
|
|
|
|
|
app.showTips(that, "请先同意用户服务协议及隐私协议");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (that.data.loginType == "tel") {
|
|
|
|
|
this.formSubmit(e.detail.value);
|
|
|
|
|
} else {
|
|
|
|
|
|