modified: pages/basketballGym/index.js
modified: pages/basketballGym/index.wxml modified: pages/currentEnter/index.wxml modified: pages/loginIndex/index.js modified: pages/loginIndex/index.wxml modified: pages/loginIndex/index.wxss modified: pages/myEnters/index.wxml modified: utils/api.js modified: utils/util.js
This commit is contained in:
@@ -15,6 +15,7 @@ Page({
|
||||
isGetCode: false,
|
||||
code: '获取验证码',
|
||||
showUnclickMask: false,
|
||||
isAgree: false,
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -136,8 +137,22 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
checkboxChange(e) {
|
||||
this.setData({
|
||||
isAgree: e.detail.value.length > 0
|
||||
})
|
||||
},
|
||||
|
||||
// 登录
|
||||
loginClick() {
|
||||
if (!this.data.isAgree) {
|
||||
wx.showToast({
|
||||
title: '请阅读并同意服务条款及隐私政策',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (!this.data.body.code) {
|
||||
wx.showToast({
|
||||
title: '请输入验证码',
|
||||
|
||||
Reference in New Issue
Block a user