| >请输入手机验证码</div> | >请输入手机验证码</div> | ||||
| </div> | </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"> | <div class="remember-password fl" v-if="loginMethod == 1"> | ||||
| <el-checkbox v-model="isRemember">记住密码</el-checkbox> | <el-checkbox v-model="isRemember">记住密码</el-checkbox> | ||||
| </div> | </div> | ||||
| <span class="forgot-password fr pointer" @click="loginMethodChange(4)">忘记密码?</span> | <span class="forgot-password fr pointer" @click="loginMethodChange(4)">忘记密码?</span> | ||||
| </div> | </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"> | <div class="login-btn"> | ||||
| <el-button | <el-button | ||||
| word: "获取验证码", // 手机短信验证码文字 | word: "获取验证码", // 手机短信验证码文字 | ||||
| isOvertime: false, // 手机短信验证时间判断 | isOvertime: false, // 手机短信验证时间判断 | ||||
| phoneCodeDisable: false, // 手机短信验证码按钮禁用开启 | phoneCodeDisable: false, // 手机短信验证码按钮禁用开启 | ||||
| // 客服参数 | |||||
| queryParams: { | |||||
| token: "1017bd2a605fb4f4a3f7267328cbf240", // 与后台交互的凭证 | |||||
| noCanClose: 0, // PC端是否显示广告 | |||||
| uid: "", // 用户ID | |||||
| nickName: "", //用户昵称 | |||||
| phone: "", //用户手机号 | |||||
| }, | |||||
| }; | }; | ||||
| }, | }, | ||||
| mounted() { | mounted() { | ||||
| this.phoneCodeError = false; | this.phoneCodeError = false; | ||||
| this.mobilePhoneError = 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() { | destroyed() { | ||||
| clearInterval(this.sendTimer); | clearInterval(this.sendTimer); |