|
@@ -19,9 +19,10 @@
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-form>
|
|
</u-form>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
- <view class="xieyi" @click="gotoXieyi()">
|
|
|
|
- 登录即代表您已阅读并同意 <text>《用户协议》和《隐私政策》</text>
|
|
|
|
|
|
+
|
|
|
|
+ <view class="xieyi" style="display: flex;align-items: center;padding:50upx 0;justify-content: center;font-size: 24rpx;">
|
|
|
|
+ <u-checkbox v-model="tyYd" shape="circle" style="width:25px;"></u-checkbox>
|
|
|
|
+ 登录代表您已同意<text @click="gotoXieyi()">隐私政策、服务条款</text>
|
|
</view>
|
|
</view>
|
|
<!-- 图文验证码 -->
|
|
<!-- 图文验证码 -->
|
|
<uni-popup @change="changeModal" ref="imageTxtPopup" type="center">
|
|
<uni-popup @change="changeModal" ref="imageTxtPopup" type="center">
|
|
@@ -60,6 +61,7 @@
|
|
codeText: '获取验证码',
|
|
codeText: '获取验证码',
|
|
getCodeing: false,
|
|
getCodeing: false,
|
|
totalTime: 60,
|
|
totalTime: 60,
|
|
|
|
+ tyYd: false,
|
|
yzmBtn: {
|
|
yzmBtn: {
|
|
background: "#ffffff"
|
|
background: "#ffffff"
|
|
},
|
|
},
|
|
@@ -80,6 +82,9 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(['login']),
|
|
...mapMutations(['login']),
|
|
|
|
+ changeYd(v){
|
|
|
|
+ this.tyYd = v
|
|
|
|
+ },
|
|
// 获取验证码
|
|
// 获取验证码
|
|
getCode() {
|
|
getCode() {
|
|
let sid = null
|
|
let sid = null
|
|
@@ -169,6 +174,13 @@
|
|
},
|
|
},
|
|
// 登录
|
|
// 登录
|
|
bindLogin() {
|
|
bindLogin() {
|
|
|
|
+ if(!this.tyYd){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "请阅读并同意隐私政策、服务条款",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
let mobile = this.mobile
|
|
let mobile = this.mobile
|
|
let openid = this.$store.state.vuex_openid
|
|
let openid = this.$store.state.vuex_openid
|
|
let code = this.code
|
|
let code = this.code
|
|
@@ -217,10 +229,12 @@
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
- padding: 0 125upx;
|
|
|
|
|
|
+ padding: 0 25upx;
|
|
|
|
|
|
.login-content {
|
|
.login-content {
|
|
- flex: 1;
|
|
|
|
|
|
+ padding:0 100upx;
|
|
|
|
+ flex-grow: 1;
|
|
|
|
+ height: 80%;
|
|
|
|
|
|
.login-logo {
|
|
.login-logo {
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -233,10 +247,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
.xieyi {
|
|
.xieyi {
|
|
- font-size: 24upx;
|
|
|
|
- text-align: center;
|
|
|
|
- padding-bottom: 60upx;
|
|
|
|
-
|
|
|
|
text {
|
|
text {
|
|
color: #1283d4
|
|
color: #1283d4
|
|
}
|
|
}
|