From 5424fb6cc7c907ec12025e96bb41146b28e5582c Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Sun, 08 Sep 2024 10:00:34 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh

---
 gz-wxparty/pages/me/index.js |   92 +++++++++++++++++++++++++--------------------
 1 files changed, 51 insertions(+), 41 deletions(-)

diff --git a/gz-wxparty/pages/me/index.js b/gz-wxparty/pages/me/index.js
index 2a8563d..c2006b3 100644
--- a/gz-wxparty/pages/me/index.js
+++ b/gz-wxparty/pages/me/index.js
@@ -12,51 +12,61 @@
 
 // 获取用户信息
 function getUserInfoApi() {
-	return $$.request({ url: 'paUser/personal', type: 'get', service: 'cust' });
+  return $$.request({
+    url: 'paUser/personal',
+    type: 'get',
+    service: 'cust'
+  });
 }
 
 Page({
-	/**
-	 * 页面的初始数据
-	 */
-	data: {
-		imgUrl: $$.url.img, // icon图片地址
-		userInfo: {}, // 用户信息
-	},
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    imgUrl: $$.url.img, // icon图片地址
+    userInfo: {}, // 用户信息
+  },
 
-	// 点击完善资料
-	handleGo() {
-		let visible = this.data.userInfo.realStatus === '1';
-		wx.navigateTo({ url: visible ? '../../pages/perfectInformation/index?type=improvedata' : '../../pages/perfectInformation/index' });
-	},
+  // 点击完善资料
+  handleGo() {
+    let visible = this.data.userInfo.realStatus === '1';
+    wx.navigateTo({
+      url: visible ? '../../pages/perfectInformation/index?type=improvedata' : '../../pages/perfectInformation/index'
+    });
+  },
 
-	// 退出登录
-	handleLoginOut() {
-		$$.showModal({
-			content: '是否确认退出登录?',
-			success: (res) => {
-				if (res.confirm) {
-					$$.loginOutClearData();
-					$$.showToast('已退出登录');
-					wx.reLaunch({
-						url: '../../pages/homePage/index',
-					});
-				}
-			},
-		});
-	},
+  // 退出登录
+  handleLoginOut() {
+    $$.showModal({
+      content: '是否确认退出登录?',
+      success: (res) => {
+        if (res.confirm) {
+          $$.loginOutClearData();
+          $$.showToast('已退出登录');
+          wx.reLaunch({
+            url: '../../pages/homePage/index',
+          });
+        }
+      },
+    });
+  },
 
-	// 获取用户信息
-	async getUserInfo() {
-		$$.showLoading();
-		const res = await getUserInfoApi();
-		$$.hideLoading();
-		if (res.type) {
-			this.setData({ userInfo: res.data });
-		}
-	},
+  // 获取用户信息
+  async getUserInfo() {
+    $$.showLoading();
+    const res = await getUserInfoApi();
+    $$.hideLoading();
+    if (res.type) {
+      this.setData({
+        userInfo: res.data
+      });
+    }
+  },
 
-	onLoad: function () {
-		this.getUserInfo();
-	},
-});
+  onLoad: function () {},
+
+  onShow(options) {
+    this.getUserInfo();
+  },
+});
\ No newline at end of file

--
Gitblit v1.8.0