From a5d8ebf230fb35258b75770fa87c52d522716f03 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期三, 14 八月 2024 14:25:03 +0800 Subject: [PATCH] feat:接单提示修改 --- pages/login/userPassword.vue | 44 +++++++++++++++++++++++++++++--------------- 1 files changed, 29 insertions(+), 15 deletions(-) diff --git a/pages/login/userPassword.vue b/pages/login/userPassword.vue index 36caa83..595728b 100644 --- a/pages/login/userPassword.vue +++ b/pages/login/userPassword.vue @@ -89,20 +89,28 @@ //鏌ヨ鐢ㄦ埛璇︾粏淇℃伅骞跺偍瀛� this.$reqGet('getUserEntity') .then(res => { - this.$u.toast('鐧诲綍鎴愬姛'); - this.setUserTabbar(res.data.type); - uni.setStorageSync('roleType', res.data.type); - uni.setStorageSync("userId", res.data.userId) - uni.setStorageSync("carNo", res.data.carNo) - setCustomerId(res.data.customerid); - setName(res.name); - uni.hideLoading(); - //璺宠浆椤甸潰 - this.$nextTick(() => { - redirectHome(); - }); + this.$u.toast('鐧诲綍鎴愬姛'); + this.getLoginInfo(); // 璁板綍鐧诲綍淇℃伅 + this.setUserTabbar(res.data.type); + uni.setStorageSync('roleType', res.data.type); + uni.setStorageSync("userId", res.data.userId) + uni.setStorageSync("carNo", res.data.carNo) + setCustomerId(res.data.customerid); + setName(res.name); + uni.hideLoading(); + if(res.data.forcePassword == 1) { + uni.navigateTo({ + url: '/pages/login/resetPassword/resetPassword' + }) + }else { + //璺宠浆椤甸潰 + this.$nextTick(() => { + redirectHome(); + }); + } }) .catch(err => { + this.submitLoading = false this.$u.toast('鐧诲綍寮傚父锛�'); console.log(err); }); @@ -133,11 +141,17 @@ }); } } - }) - .catch(e => { + }).catch(e => { this.submitLoading = false this.$u.toast(e); }); + + }, + //璁板綍鐧诲綍淇℃伅 + getLoginInfo(){ + this.$reqPost('setApplogonTime').then((res) => { + + }) } } }; @@ -149,4 +163,4 @@ .dengluBtn { margin-top: 80rpx; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.1