|
|
@@ -180,12 +180,15 @@ |
|
|
|
>请输入手机验证码</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="remember-row mb-20" v-if="loginMethod == 1 || loginMethod == 2"> |
|
|
|
<div class="remember-row mb-20" v-if="loginMethod == 1 "> |
|
|
|
<div class="remember-password fl" v-if="loginMethod == 1"> |
|
|
|
<el-checkbox v-model="isRemember">记住密码</el-checkbox> |
|
|
|
</div> |
|
|
|
<span class="forgot-password fr pointer" @click="loginMethodChange(4)">忘记密码?</span> |
|
|
|
</div> |
|
|
|
<div class="remember-row mb-20" v-if="loginMethod == 4 || loginMethod == 2"> |
|
|
|
<span class="forgot-password fr pointer" @click="linkCustomerService">手机号不可用?</span> |
|
|
|
</div> |
|
|
|
<!-- 登录按钮 --> |
|
|
|
<div class="login-btn"> |
|
|
|
<el-button |
|
|
@@ -289,6 +292,14 @@ export default { |
|
|
|
word: "获取验证码", // 手机短信验证码文字 |
|
|
|
isOvertime: false, // 手机短信验证时间判断 |
|
|
|
phoneCodeDisable: false, // 手机短信验证码按钮禁用开启 |
|
|
|
// 客服参数 |
|
|
|
queryParams: { |
|
|
|
token: "1017bd2a605fb4f4a3f7267328cbf240", // 与后台交互的凭证 |
|
|
|
noCanClose: 0, // PC端是否显示广告 |
|
|
|
uid: "", // 用户ID |
|
|
|
nickName: "", //用户昵称 |
|
|
|
phone: "", //用户手机号 |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@@ -611,6 +622,28 @@ export default { |
|
|
|
this.phoneCodeError = false; |
|
|
|
this.mobilePhoneError = false; |
|
|
|
}, |
|
|
|
// 跳转客服 |
|
|
|
linkCustomerService() { |
|
|
|
// 是否登录 |
|
|
|
console.log(this.currentAccount, "this.currentAccount"); |
|
|
|
if (this.currentAccount) { |
|
|
|
this.queryParams.uid = this.currentAccount.accountId; |
|
|
|
this.queryParams.nickName = this.currentAccount.accountName; |
|
|
|
this.queryParams.phone = this.currentAccount.mobilePhone; |
|
|
|
} |
|
|
|
let url = `http://www.parkkf.com/chat/index?`; |
|
|
|
for (let key in this.queryParams) { |
|
|
|
if ( |
|
|
|
this.queryParams[key] !== "" && |
|
|
|
this.queryParams[key] !== undefined && |
|
|
|
this.queryParams[key] !== null |
|
|
|
) { |
|
|
|
url += `&${key}=${this.queryParams[key]}`; |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(url); |
|
|
|
window.open(url); |
|
|
|
}, |
|
|
|
}, |
|
|
|
destroyed() { |
|
|
|
clearInterval(this.sendTimer); |