|
@@ -31,7 +31,7 @@
|
|
|
|
|
|
<!-- 底部信息 -->
|
|
|
<div class="footer">
|
|
|
- <div style="color: #fff;font-size: 14px;">找回密码</div>
|
|
|
+ <div style="color: #fff;font-size: 14px;cursor:pointer;" @click="toKefu">找回密码</div>
|
|
|
<span>|</span>
|
|
|
<router-link to="register">注册账号</router-link>
|
|
|
</div>
|
|
@@ -64,6 +64,7 @@
|
|
|
import wInput from "../components/watch-login/watch-input.vue"; //input
|
|
|
import wButton from "../components/watch-login/watch-button.vue"; //button
|
|
|
import { Toast } from "vant";
|
|
|
+import { getUserInfo, getLink } from '@/api/home';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -72,10 +73,34 @@ export default {
|
|
|
smsCode: "", // 短信验证码
|
|
|
lang: "zh", // 语言
|
|
|
countryCode: "+86", // 国家代码
|
|
|
- isRotate: false // 是否加载旋转
|
|
|
+ isRotate: false, // 是否加载旋转
|
|
|
+ link: '', // 新增客服链接
|
|
|
};
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.getUserInfo();
|
|
|
+ this.getLink();
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ async getUserInfo() {
|
|
|
+ const res = await getUserInfo();
|
|
|
+ this.userInfo = res.data;
|
|
|
+ },
|
|
|
+ async getLink() {
|
|
|
+ const res = await getLink();
|
|
|
+ if (res.data && res.data.link && res.data.link[0] && res.data.link[0].value) {
|
|
|
+ this.link = res.data.link[0].value;
|
|
|
+ } else {
|
|
|
+ this.link = '';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ toKefu() {
|
|
|
+ if (this.link) {
|
|
|
+ window.open(this.link, '_blank');
|
|
|
+ } else {
|
|
|
+ Toast('未获取到客服链接');
|
|
|
+ }
|
|
|
+ },
|
|
|
async startLogin() {
|
|
|
if (this.isRotate) {
|
|
|
return false;
|