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

Loading…
Cancel
Save