From 6efa94990672ea4c1d83b6f0e7cb5b66d020bc2d Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期三, 12 六月 2024 10:19:59 +0800
Subject: [PATCH] feat:转发bug

---
 pages/customer-page/customer-my/customer-my.vue |   45 +++++++++++++++++++--------------------------
 1 files changed, 19 insertions(+), 26 deletions(-)

diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index 228e11d..3fd2897 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -75,10 +75,10 @@
 					type="primary"
 					@click="userManage"
 					v-if="roleType == 1 && userEntity.isHostUser === '0'"></u-button></view>
-			<!-- <view class="logout"><u-button text="淇敼瀵嗙爜"
+			<view class="logout"><u-button text="淇敼瀵嗙爜"
 					type="primary"
 					@click="modifyPwd"></u-button></view>
-			<view class="logout"><u-button text="閲嶇疆瀵嗙爜"
+			<!-- <view class="logout"><u-button text="閲嶇疆瀵嗙爜"
 					type="primary"
 					@click="initPwd"></u-button></view> -->
 			<view class="logout"><u-button text="閫�鍑虹櫥褰�"
@@ -150,30 +150,6 @@
 				@confirm="logoutConfirm"
 				@cancel="logoutCancel"></u-modal>
 		</view>
-		<!-- 閲嶇疆瀵嗙爜寮瑰嚭妗� -->
-		<!-- <view class="initPwdModal">
-			<u-modal :show="initPwdShow"
-				title="閲嶇疆瀵嗙爜"
-				showCancelButton
-				content="鍒濆瀵嗙爜灏嗗彉鏇翠负123456,鏄惁纭閲嶇疆"
-				@confirm="initPwdConfirm"
-				@cancel="initPwdCancel"></u-modal>
-		</view> -->
-		<!-- 淇敼瀵嗙爜寮瑰嚭妗� -->
-		<!-- <view class="modifyPwdModal">
-			<u-modal :show="modifyPwdShow"
-				title="淇敼瀵嗙爜"
-				showCancelButton
-				@confirm="modifyPwdConfirm"
-				@cancel="modifyPwdCancel">
-				<view class="modifyPwd">
-					<u-input v-model="passwordModified"
-						placeholder="璇疯緭鍏ヤ慨鏀瑰悗鐨勫瘑鐮�"
-						border="surround"
-						type="password"></u-input>
-				</view>
-			</u-modal>
-		</view> -->
 	</view>
 </template>
 
@@ -186,6 +162,7 @@
 		},
 		data() {
 			return {
+				userInfo: {},
 				huoDaiData: [],
 				fleetData: [],
 				// 鏂板缓杞﹂槦
@@ -227,6 +204,15 @@
 			init() {
 				this.getAllHuoDaiByCustomerId();
 				this.getFleet();
+				this.getUserEntity()
+			},
+			getUserEntity() {
+				uni.showLoading({
+					title: '鍔犺浇涓�...'
+				});
+				this.$reqGet('getUserEntity').then(res => {
+					this.userInfo = res.data;
+				})
 			},
 			// 鑾峰彇璐т唬鍒楄〃
 			getAllHuoDaiByCustomerId() {
@@ -386,6 +372,13 @@
 			logoutCancel() {
 				this.logoutShow = false;
 			},
+			modifyPwd() {
+				this.$store.commit('changeisLogin', false)
+				this.$store.dispatch('websocketOnClose')
+				uni.reLaunch({
+					url: `/pages/login/resetPassword/resetPassword?phone=${this.userInfo.phone}&idCard=${this.userInfo.idCard}`
+				})
+			},
 			// 璺宠浆鐢ㄦ埛绠$悊椤甸潰
 			userManage() {
 				uni.navigateTo({

--
Gitblit v1.9.1