wangfukang 3 years ago
parent
commit
eb70f6e231
  1. 10
      pages/login/login.vue

10
pages/login/login.vue

@ -35,7 +35,7 @@
<view class="tui-protocol" hover-class="opcity" :hover-stay-time="150">
<checkbox-group @change="xieyi" style="display: inline;">
<label>
<checkbox :checked="xieyidata" style="transform:scale(0.7)" />
<checkbox :value="xieyidata" :checked="xieyidata" style="transform:scale(0.7)" />
</label>
</checkbox-group>
您已阅读并同意
@ -84,7 +84,7 @@
// password: '19950123kang',
loginWay: true, //true账号密码登录 false验证码登录
captchaImg: '',
xieyidata:true,
xieyidata:false,
captchaId: '',
wayValue: 0,
range: [{
@ -132,7 +132,7 @@
let data = {},
loginUrl=''
if(this.xieyidata == false){
this.tui.toast('请阅读用户协议并勾选同意!')
this.tui.toast('请阅读用户协议并勾选同意后再登录!')
return
}
if (this.loginWay) { //true
@ -295,9 +295,9 @@
this.$refs.popup.open(type)
},
xieyi(e){
console.log(e.detail.value)
this.xieyidata = e.detail.value=='false'?true:false
console.log(this.xieyidata)
this.xieyidata = !e.detail.value
}
}
}

Loading…
Cancel
Save