From aa3438b349bb365bfb4c30a9194b5c10f9f843eb Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期二, 08 四月 2025 17:39:13 +0800
Subject: [PATCH] feat:质检员历史质检单增加上滑更多

---
 pages/login/userPassword.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/pages/login/userPassword.vue b/pages/login/userPassword.vue
index 74029aa..8ff25a4 100644
--- a/pages/login/userPassword.vue
+++ b/pages/login/userPassword.vue
@@ -113,11 +113,19 @@
                     }
 									})
 									.catch(err => {
+										uni.hideLoading();
+										setTimeout(() => {
+											uni.navigateBack();
+										}, 1000);
 										this.$u.toast('鐧诲綍寮傚父锛�');
 										console.log(err);
 									});
 							} else {
+								this.submitLoading = false
 								uni.hideLoading();
+								setTimeout(() => {
+											uni.navigateBack();
+										}, 1000);
 								this.$u.toast(res.msg);
 							}
 						} else {
@@ -126,27 +134,33 @@
 									if (res.code) {
 										uni.setStorageSync('bindcode', res.code);
 									}
-								}
-							});
-							if (uni.getStorageSync('bindcode')) {
+									if (uni.getStorageSync('bindcode')) {
 								this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') },
 									'params').then(res => {
+								    this.submitLoading = false;
 									uni.hideLoading();
 									if (res.code == 0) {
+										this.submitLoading = false;
+										uni.hideLoading();
 										this.$u.toast('缁戝畾鎴愬姛锛佸嵆灏嗗洖鍒扮櫥褰曢〉锛�');
 										setTimeout(() => {
 											uni.navigateBack();
 										}, 1000);
 									} else {
+										uni.hideLoading();
 										this.$u.toast(res.msg ? res.msg : '缁戝畾澶辫触');
 									}
 								});
 							}
+								}
+							});
+							
 						}
 					})
 					.catch(e => {
             this.submitLoading = false
 						this.$u.toast(e);
+						uni.hideLoading();
 					});
 			}
 		}

--
Gitblit v1.9.1