Browse Source

修改登录页小程序审核问题

dev
396316021 1 year ago
parent
commit
1f70c50604
  1. 34
      pages/Login/index.vue

34
pages/Login/index.vue

@ -20,14 +20,27 @@
</view>
</view>
<view class="login-button-container">
<u-button
v-if="!isRead"
type="success"
size="normal"
shape="circle"
color="#FF9545"
height="88"
@click="readTip()"
>
<!-- <u-icon name="weixin-fill" size="50" color="#fff" class="weixin-icon"></u-icon>-->
<u-text text="手机号快捷登录" color="#fff" size="32" align="center" custom-style="display:inline;"></u-text>
</u-button>
<u-button
v-if="privateStatus"
v-else-if="privateStatus"
type="success"
size="normal"
@getphonenumber="wxLogin"
open-type="getPhoneNumber"
shape="circle"
color="#45C55E"
color="#FF9545"
height="88"
>
<!-- <u-icon name="weixin-fill" size="50" color="#fff" class="weixin-icon"></u-icon>-->
@ -38,17 +51,20 @@
type="success"
size="normal"
shape="circle"
color="#45C55E"
color="#FF9545"
height="88"
@click="openPopup"
>
<!-- <u-icon name="weixin-fill" size="50" color="#fff" class="weixin-icon"></u-icon>-->
<u-text text="登录" color="#fff" size="32" align="center" prefix-icon="weixin-fill" :icon-style="{fontSize:'50rpx',color:'#ffffff',marginRight:'5rpx'}" custom-style="display:inline;"></u-text>
<u-text text="手机号快捷登录" color="#fff" size="32" align="center" custom-style="display:inline;"></u-text>
</u-button>
</view>
<view class="privacy-container row">
<view class="privacy-container row" style="align-items: center;">
<view class="checkbox">
<u-checkbox :checked="isRead" @change="isRead = !isRead" shape="circle" active-color="#FF9545" icon-size="30rpx" size="40rpx"></u-checkbox>
</view>
<view class="text">
<u-text text="登录/注册即视为你同意" color="#999999" size="24"></u-text>
<u-text text="请阅读并同意" color="#999999" size="24"></u-text>
</view>
<view class="text">
<u-text text="《小程序隐私保护指引》" color="#178AF2" size="24" @click="openPrivacyContract"></u-text>
@ -93,7 +109,7 @@
</view>
<view class="col-6" style="padding:15rpx;">
<u-button id="agree-btn" open-type="agreePrivacyAuthorization" color="#45C55E" class="weui-btn agree"
<u-button id="agree-btn" open-type="agreePrivacyAuthorization" color="#FF9545" class="weui-btn agree"
@agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</u-button>
</view>
</view>
@ -117,6 +133,7 @@ export default {
},
data() {
return {
isRead:false,
title: ' 登录',
loading: true,
staticImage: {
@ -139,6 +156,9 @@ export default {
},
},
methods: {
readTip(){
uni.showToast({title:'请同意隐私协议',icon:'error'})
},
login(){
testLogin({
user_id:1

Loading…
Cancel
Save