|
|
@@ -23,11 +23,26 @@
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
- <view style="margin-top:50upx;">
|
|
|
+ <!-- <view style="margin-top:50upx;">
|
|
|
<button class="admin-button-com small blue buttonText" @click="mobileLogin()">本机号码一键登录</button>
|
|
|
+ </view> -->
|
|
|
+ <!-- #endif -->
|
|
|
+ <!-- #ifdef APP-PLUS -->
|
|
|
+ <view style="color:#999999;font-size:25upx;margin-top:30upx;">
|
|
|
+ <radio-group @change="agreeItem">
|
|
|
+ <label>
|
|
|
+ <radio value="1" style="width:6upx;transform:scale(0.8)" />
|
|
|
+ <text style="margin-left:38upx;">
|
|
|
+ 我已阅读并同意
|
|
|
+ <text style="font-weight:bold;color:#666666;" @click.stop="pageTo({url: '/admin/home/register'})">《用户协议》</text>
|
|
|
+ 和
|
|
|
+ <text style="font-weight:bold;color:#666666;" @click.stop="pageTo({url: '/admin/home/privacy'})">《隐私政策》</text>
|
|
|
+ </text>
|
|
|
+ </label>
|
|
|
+ </radio-group>
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
- <view style="margin-top:60upx;color:#999999;width:88%;font-size:30upx;">
|
|
|
+ <view style="margin-top:50upx;color:#999999;width:88%;font-size:30upx;">
|
|
|
<text style="float:right;" @click="pageTo({url: '/pagesClient/official/apply',type:2})">注册帐号</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -50,7 +65,8 @@ export default {
|
|
|
return {
|
|
|
mobile:'',
|
|
|
password: '',
|
|
|
- hasMobileNet:false
|
|
|
+ hasMobileNet:false,
|
|
|
+ agree:0
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -69,6 +85,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
|
+ agreeItem(e){
|
|
|
+ this.agree = e.target.value
|
|
|
+ },
|
|
|
dealLogin(res){
|
|
|
let that = this
|
|
|
console.log(res)
|
|
|
@@ -219,6 +238,10 @@ export default {
|
|
|
let that = this
|
|
|
let mobile = this.mobile
|
|
|
let password = this.password
|
|
|
+ if(that.agree == 0){
|
|
|
+ this.$msg('请同意并勾选用户协议和隐私政策')
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (that.$util.isEmpty(mobile)) {
|
|
|
this.$msg('请输入手机号')
|
|
|
return false
|