|
@@ -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,30 +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.native="agree">《隐私服务协议》</span>
|
60
|
|
-
|
|
48
|
+ <div class="agree">
|
|
49
|
+ <el-checkbox v-model="agreement">我已阅读并同意</el-checkbox>
|
|
50
|
+ <span class="agreeText" @click="agree()">《隐私服务协议》</span>
|
|
51
|
+ </div>
|
61
|
52
|
</div>
|
62
|
53
|
</div>
|
63
|
54
|
</div>
|
64
|
|
-
|
65
|
55
|
</div>
|
66
|
56
|
</template>
|
67
|
57
|
|
|
@@ -134,7 +124,7 @@ export default {
|
134
|
124
|
});
|
135
|
125
|
},
|
136
|
126
|
to: function() {
|
137
|
|
- this.$router.push({ path: "/forgetPassword" });
|
|
127
|
+ this.$router.push({ path: "/privacy" });
|
138
|
128
|
},
|
139
|
129
|
submitForm() {
|
140
|
130
|
const self = this;
|
|
@@ -153,8 +143,11 @@ export default {
|
153
|
143
|
|
154
|
144
|
loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
|
155
|
145
|
var resp = rs.data;
|
|
146
|
+ if (this.agreement != true) {
|
|
147
|
+ Toast("请同意隐私服务协议");
|
|
148
|
+ }
|
156
|
149
|
|
157
|
|
- if (resp.state == 1) {
|
|
150
|
+ if (resp.state == 1 && this.agreement == true) {
|
158
|
151
|
cacheLoginInfo(this.form.mobile, this.form.pwd);
|
159
|
152
|
console.log(resp);
|
160
|
153
|
|
|
@@ -220,9 +213,7 @@ export default {
|
220
|
213
|
this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
|
221
|
214
|
},
|
222
|
215
|
agree() {
|
223
|
|
- this.$nextTick(() => {
|
224
|
|
- this.$router.push({ path: "/privacy" });
|
225
|
|
- })
|
|
216
|
+ this.$router.push({ path: "/privacy" });
|
226
|
217
|
}
|
227
|
218
|
}
|
228
|
219
|
};
|