From 5b219a9694c8d69db42e746a654c779cc6a61bf6 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 18 七月 2024 18:42:20 +0800
Subject: [PATCH] ‘’
---
wechat_staff/pages/work/index.js | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/wechat_staff/pages/work/index.js b/wechat_staff/pages/work/index.js
index c1c84c5..1f5c4c0 100644
--- a/wechat_staff/pages/work/index.js
+++ b/wechat_staff/pages/work/index.js
@@ -1,4 +1,4 @@
-// pages/mine/mine.js
+import { getMemberInfo } from '../../api/index'
Page({
/**
@@ -7,6 +7,8 @@
data: {
clientHeight: 0,
clientTop: 0,
+
+ uesrInfo: {}
},
/**
@@ -16,6 +18,8 @@
const res = wx.getMenuButtonBoundingClientRect()
this.setData({clientHeight: res.height})
this.setData({clientTop: res.top})
+
+ this.initData()
},
changePath(e) {
// 椤甸潰璺宠浆
@@ -31,9 +35,13 @@
url: `${temp[index]}`,
})
},
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
- */
+ initData() {
+ getMemberInfo().then(res => {
+ this.setData({
+ uesrInfo: res.data
+ })
+ })
+ },
onReady() {
},
--
Gitblit v1.9.3