|
@@ -1,6 +1,5 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="container">
|
3
|
|
-
|
4
|
3
|
<div class="newLogin">
|
5
|
4
|
<div class="login">
|
6
|
5
|
<div class="logo">
|
|
@@ -38,31 +37,21 @@
|
38
|
37
|
:disabled="loginDisable"
|
39
|
38
|
>登录</button>
|
40
|
39
|
|
41
|
|
- <!-- <router-link to="/forgetPassword"> -->
|
42
|
|
- <div class="newForget" style="display:none">忘记密码</div>
|
43
|
|
- <!-- </router-link> -->
|
|
40
|
+ <!-- <router-link to="/forgetPassword">
|
|
41
|
+ <div class="newForget">忘记密码</div>
|
|
42
|
+ </router-link>-->
|
44
|
43
|
<!-- </router-link> -->
|
45
|
44
|
<!-- <div class="forget">
|
46
|
45
|
<a href="">免密码登录</a>
|
47
|
46
|
<a href="">忘记密码?</a>
|
48
|
47
|
</div>-->
|
49
|
|
- <!--<div class="agree">-->
|
50
|
|
- <!--<el-checkbox v-model="agreement">-->
|
51
|
|
- <!--我已阅读并同意-->
|
52
|
|
- <!--<!– <router-link to="/privacyPolicy"> –>-->
|
53
|
|
-
|
54
|
|
- <!--<!– </router-link> –>-->
|
55
|
|
- <!--</el-checkbox>-->
|
56
|
|
- <!--<!– <router-link to="/privacyPolicy"> –>-->
|
57
|
|
- <!--<!– </router-link> –>-->
|
58
|
|
- <!--</div>-->
|
59
|
|
- <span class="agreeText" @click="agree()">《隐私服务协议》</span>
|
60
|
|
-
|
61
|
|
-
|
|
48
|
+ <div class="agree">
|
|
49
|
+ <el-checkbox v-model="agreement">我已阅读并同意</el-checkbox>
|
|
50
|
+ <span class="agreeText" @click="agree()">《隐私服务协议》</span>
|
|
51
|
+ </div>
|
62
|
52
|
</div>
|
63
|
53
|
</div>
|
64
|
54
|
</div>
|
65
|
|
-
|
66
|
55
|
</div>
|
67
|
56
|
</template>
|
68
|
57
|
|
|
@@ -154,8 +143,11 @@ export default {
|
154
|
143
|
|
155
|
144
|
loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
|
156
|
145
|
var resp = rs.data;
|
|
146
|
+ if (this.agreement != true) {
|
|
147
|
+ Toast("请同意隐私服务协议");
|
|
148
|
+ }
|
157
|
149
|
|
158
|
|
- if (resp.state == 1) {
|
|
150
|
+ if (resp.state == 1 && this.agreement == true) {
|
159
|
151
|
cacheLoginInfo(this.form.mobile, this.form.pwd);
|
160
|
152
|
console.log(resp);
|
161
|
153
|
|
|
@@ -219,9 +211,9 @@ export default {
|
219
|
211
|
//清除cookie
|
220
|
212
|
clearCookie: function() {
|
221
|
213
|
this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
|
222
|
|
- }, agree() {
|
|
214
|
+ },
|
|
215
|
+ agree() {
|
223
|
216
|
this.$router.push({ path: "/privacy" });
|
224
|
|
-
|
225
|
217
|
}
|
226
|
218
|
}
|
227
|
219
|
};
|