|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
},
|
|
|
bindPhoneLoading: false, // 绑定手机号loading
|
|
|
codeText: '获取验证码', // 获取验证码按钮文字
|
|
|
- count: 60, // 倒数秒数
|
|
|
+ count: 300, // 倒数秒数
|
|
|
isCount: false, // 是否倒计时
|
|
|
wechatUrl: '', // 获取微信二维码返回地址
|
|
|
qrLoading: false, // 二维码加载loading
|
|
|
@@ -194,6 +194,14 @@ export default {
|
|
|
//打开绑定手机号弹窗
|
|
|
OpenPhoneDialog()
|
|
|
{
|
|
|
+ // 先清除已存在的定时器
|
|
|
+ if (this.timer) {
|
|
|
+ clearInterval(this.timer);
|
|
|
+ this.timer = null;
|
|
|
+ this.codeText = '获取验证码'
|
|
|
+ this.isCount = false
|
|
|
+ this.count = 300;
|
|
|
+ }
|
|
|
this.bindingPhoneData.showDialog = true;
|
|
|
},
|
|
|
|
|
|
@@ -224,7 +232,7 @@ export default {
|
|
|
this.bindingPhoneData.code = ''
|
|
|
this.codeText = '获取验证码'
|
|
|
this.isCount = false
|
|
|
- this.count = 60;
|
|
|
+ this.count = 300;
|
|
|
if(this.userInfo.wxName)
|
|
|
{
|
|
|
|