|
|
@ -2,9 +2,9 @@ |
|
|
|
<view> |
|
|
|
<view> |
|
|
|
<view class='mask' v-if='isShowAuth && code' @click='close'></view> |
|
|
|
<view class='mask' v-if='isShowAuth && code' @click='close'></view> |
|
|
|
<view class='Popup' v-if='isShowAuth && code' :style="'top:'+top+'px;'"> |
|
|
|
<view class='Popup' v-if='isShowAuth && code' :style="'top:'+top+'px;'"> |
|
|
|
<view class="logo-auth"> |
|
|
|
<!-- <view class="logo-auth"> |
|
|
|
<image class="image" :src='routine_logo' mode="aspectFit"></image> |
|
|
|
<image class="image" :src='routine_logo' mode="aspectFit"></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!--#ifdef H5--> |
|
|
|
<!--#ifdef H5--> |
|
|
|
<text v-if="isWeixin" class='title'>授权提醒</text> |
|
|
|
<text v-if="isWeixin" class='title'>授权提醒</text> |
|
|
|
<text v-else class='title'>{{title}}</text> |
|
|
|
<text v-else class='title'>{{title}}</text> |
|
|
@ -25,6 +25,10 @@ |
|
|
|
<!--#ifdef MP--> |
|
|
|
<!--#ifdef MP--> |
|
|
|
<text class='tip'>{{info}}</text> |
|
|
|
<text class='tip'>{{info}}</text> |
|
|
|
<!--#endif--> |
|
|
|
<!--#endif--> |
|
|
|
|
|
|
|
<checkbox-group class="checkgroup" @change='isAgree=!isAgree' style="padding: 0 12px;margin-top: 20px;font-size:12px;text-align: center;"> |
|
|
|
|
|
|
|
<checkbox class="checkbox" :checked="isAgree ? true : false" /> |
|
|
|
|
|
|
|
<text class="protocol_text">我已同意<text @click="userAgree" class="font_pro">《用户协议》</text>与<text @click="userPrivacyAgree" class="font_pro">《隐私政策》</text></text> |
|
|
|
|
|
|
|
</checkbox-group> |
|
|
|
<view class='bottom flex'> |
|
|
|
<view class='bottom flex'> |
|
|
|
<text class='item' @click='close'>随便逛逛</text> |
|
|
|
<text class='item' @click='close'>随便逛逛</text> |
|
|
|
<!-- #ifdef MP --> |
|
|
|
<!-- #ifdef MP --> |
|
|
@ -96,6 +100,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
isAgree: false, |
|
|
|
title: '用户登录', |
|
|
|
title: '用户登录', |
|
|
|
info: '请登录,将为您提供更好的服务!', |
|
|
|
info: '请登录,将为您提供更好的服务!', |
|
|
|
//#ifdef H5 |
|
|
|
//#ifdef H5 |
|
|
@ -134,6 +139,16 @@ |
|
|
|
this.getCode(this.isShowAuth) |
|
|
|
this.getCode(this.isShowAuth) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
userAgree(){ |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/users/user_about/index?from=sys_user_agree' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
userPrivacyAgree(){ |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/users/user_about/index?from=sys_userr_privacy' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
// #ifdef MP |
|
|
|
// #ifdef MP |
|
|
|
editSuccess() { |
|
|
|
editSuccess() { |
|
|
|
this.editModal = false |
|
|
|
this.editModal = false |
|
|
@ -184,7 +199,13 @@ |
|
|
|
toLogin(true); |
|
|
|
toLogin(true); |
|
|
|
}, |
|
|
|
}, |
|
|
|
getUserProfile() { |
|
|
|
getUserProfile() { |
|
|
|
|
|
|
|
|
|
|
|
let self = this; |
|
|
|
let self = this; |
|
|
|
|
|
|
|
if (!self.isAgree){ |
|
|
|
|
|
|
|
return self.$util.Tips({ |
|
|
|
|
|
|
|
title: '请勾选用户协议与隐私政策' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
Routine.getUserProfile() |
|
|
|
Routine.getUserProfile() |
|
|
|
.then(res => { |
|
|
|
.then(res => { |
|
|
|
let userInfo = res.userInfo; |
|
|
|
let userInfo = res.userInfo; |
|
|
@ -255,11 +276,11 @@ |
|
|
|
flex: 1; |
|
|
|
flex: 1; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
width: 500rpx; |
|
|
|
width: 80%; |
|
|
|
background-color: #fff; |
|
|
|
background-color: #fff; |
|
|
|
position: fixed; |
|
|
|
position: fixed; |
|
|
|
top: 500rpx; |
|
|
|
top: 500rpx; |
|
|
|
left: 125rpx; |
|
|
|
left: 10%; |
|
|
|
z-index: 1000; |
|
|
|
z-index: 1000; |
|
|
|
} |
|
|
|
} |
|
|
|
.Popup { |
|
|
|
.Popup { |
|
|
@ -304,7 +325,7 @@ |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
} |
|
|
|
.Popup .bottom .item { |
|
|
|
.Popup .bottom .item { |
|
|
|
width: 250rpx; |
|
|
|
width: 50%; |
|
|
|
height: 80rpx; |
|
|
|
height: 80rpx; |
|
|
|
background-color: #eeeeee; |
|
|
|
background-color: #eeeeee; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|