From 1b897c74e44d185669d87abd4c3a29c90d6fe225 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 19 七月 2024 20:10:27 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_staff/pages/work/index.js | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/wechat_staff/pages/work/index.js b/wechat_staff/pages/work/index.js
index 1f5c4c0..cb7b991 100644
--- a/wechat_staff/pages/work/index.js
+++ b/wechat_staff/pages/work/index.js
@@ -1,16 +1,17 @@
-import { getMemberInfo } from '../../api/index'
+import { getDictData, getMemberInfo } from '../../api/index'
Page({
/**
* 椤甸潰鐨勫垵濮嬫暟鎹�
*/
data: {
+ topimg:'',
clientHeight: 0,
- clientTop: 0,
-
- uesrInfo: {}
+ clientTop: 0,
+ userInfo: {name:''}
},
+
/**
* 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
*/
@@ -18,16 +19,17 @@
const res = wx.getMenuButtonBoundingClientRect()
this.setData({clientHeight: res.height})
this.setData({clientTop: res.top})
-
+
this.initData()
},
changePath(e) {
+ const {userInfo} = this.data
// 椤甸潰璺宠浆
let temp = [
'/pages/userinfo/index',
- '/pages/store/staff',
+ '/pages/store/staff?userType=1',
'/pages/userinfo/collect',
- '/pages/store/index',
+ '/pages/store/index?shopId='+userInfo.departmentId,
'/pages/sets/index'
]
const index = e.currentTarget.dataset.index
@@ -38,12 +40,18 @@
initData() {
getMemberInfo().then(res => {
this.setData({
- uesrInfo: res.data
- })
+ userInfo: res.data
+ })
+ wx.setStorageSync('member',res.data)
+ })
+ getDictData({
+ code: 'WEIXIN_DEFAULT_IMGS',
+ label: 'STAFF_WORK_TOP_IMG'
+ }).then(res => {
+ this.setData({ topimg: res.data.code })
})
},
- onReady() {
-
+ onReady() {
},
/**
--
Gitblit v1.9.3