|
@@ -35,8 +35,8 @@
|
|
<view class="top_four">
|
|
<view class="top_four">
|
|
<input type="number" class="input_show" maxlength="6" @input='submit' v-model="inputList" focus="true" />
|
|
<input type="number" class="input_show" maxlength="6" @input='submit' v-model="inputList" focus="true" />
|
|
</view>
|
|
</view>
|
|
- <!-- 重新获取 -->
|
|
|
|
- <view class="top_five" @click='regain' :class="!status ? 'active' : '' "><text v-if="!status">重新发送</text><text
|
|
|
|
|
|
+ <!-- 重新获取 regain -->
|
|
|
|
+ <view class="top_five" @click='judge' :class="!status ? 'active' : '' "><text v-if="!status">重新发送</text><text
|
|
v-if="status">{{count_down}}秒后重新发送</text></view>
|
|
v-if="status">{{count_down}}秒后重新发送</text></view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -73,8 +73,15 @@
|
|
navBack() {
|
|
navBack() {
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|
|
},
|
|
},
|
|
|
|
+ judge(){
|
|
|
|
+ if(this.count_down > 0){
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ this.regain()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
regain() {
|
|
regain() {
|
|
- console.log("regain", this.phone);
|
|
|
|
|
|
+ this.count_down = 60
|
|
this.status = true
|
|
this.status = true
|
|
// console.log(e)150500
|
|
// console.log(e)150500
|
|
// 设定一个定时器 1000是1秒的意思
|
|
// 设定一个定时器 1000是1秒的意思
|
|
@@ -89,6 +96,7 @@
|
|
this.status = false
|
|
this.status = false
|
|
clearInterval(interval) //括号里面的名字要与setInterval定义的相同
|
|
clearInterval(interval) //括号里面的名字要与setInterval定义的相同
|
|
}, 60000)
|
|
}, 60000)
|
|
|
|
+
|
|
this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
|
|
this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
|
|
phone: this.phone
|
|
phone: this.phone
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -115,7 +123,7 @@
|
|
var that = this
|
|
var that = this
|
|
that.$request.baseRequest('get', '/driverInfo/firstAuthentication', {
|
|
that.$request.baseRequest('get', '/driverInfo/firstAuthentication', {
|
|
driverPhone: this.phone,
|
|
driverPhone: this.phone,
|
|
- }).then(res2 => {
|
|
|
|
|
|
+ }).then(res => {
|
|
if (res.data.authenticationStatus == '已禁用') {
|
|
if (res.data.authenticationStatus == '已禁用') {
|
|
that.$refs.uToast.show({
|
|
that.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -158,11 +166,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- uni.setStorageSync("shiro",encodeURIComponent(`ws_login_companyShortName=
|
|
|
|
|
|
+ uni.setStorageSync("shiro",encodeURIComponent(`ws_login_companySh041500ortName=
|
|
'黑龙江中天昊元贸易有限公司'; ws_login_rememberMe=1; ws_login_account=${that.phone}; ws_login_pwd=${that.password}; shiro.session=65500189-7bb5-457f-9ff6-0db069150e78`))
|
|
'黑龙江中天昊元贸易有限公司'; ws_login_rememberMe=1; ws_login_account=${that.phone}; ws_login_pwd=${that.password}; shiro.session=65500189-7bb5-457f-9ff6-0db069150e78`))
|
|
uni.setStorageSync('pcuserInfo', res.data)
|
|
uni.setStorageSync('pcuserInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
- uni.setStorageSync('firstAuthentication', res2.data)
|
|
|
|
|
|
+ uni.setStorageSync('firstAuthentication', res.data)
|
|
helper.getListByUserId()
|
|
helper.getListByUserId()
|
|
that.$store.commit('login', res.data)
|
|
that.$store.commit('login', res.data)
|
|
var name = 'userInfo';
|
|
var name = 'userInfo';
|