Commit 01a38979 by 杨北旺

提交个人中心模块

1 parent 3f853f67
...@@ -27,7 +27,7 @@ Component({ ...@@ -27,7 +27,7 @@ Component({
}) })
}, },
toShowBind(){ toShowBind(){
// if(this.data.user&&this.data.user.bindStatus) return if(this.data.user&&this.data.user.bindStatus) return
this.triggerEvent('showModal',true) this.triggerEvent('showModal',true)
} }
}, },
......
...@@ -59,7 +59,6 @@ Page({ ...@@ -59,7 +59,6 @@ Page({
id:user.bussinessId id:user.bussinessId
} }
MineApi.wechatBindApi(para).then(res => { MineApi.wechatBindApi(para).then(res => {
wx.hideLoading();
this.getStaffInfo() this.getStaffInfo()
}) })
}) })
...@@ -71,6 +70,7 @@ Page({ ...@@ -71,6 +70,7 @@ Page({
id: userStorage.bussinessId id: userStorage.bussinessId
} }
MineApi.getStaffDetailApi(para).then(res => { MineApi.getStaffDetailApi(para).then(res => {
wx.hideLoading();
const temp = this.handleUserInfo(res) const temp = this.handleUserInfo(res)
this.setData({ this.setData({
user: temp user: temp
...@@ -85,9 +85,13 @@ Page({ ...@@ -85,9 +85,13 @@ Page({
merchantName: userStorage.merchantName, merchantName: userStorage.merchantName,
phone: userStorage.phone, phone: userStorage.phone,
} }
const { id, staffPhone, phone, department, weChatNickName, weChatAvatarUrl, weChatOpenId, staffName } = data const { id, staffPhone, phone, department, weChatNickName, weChatAvatarUrl, weChatOpenId, staffName,merchantFileResponse } = data
let avatar = ''
if(merchantFileResponse){
avatar = merchantFileResponse.fileUrl
}
const USERINFO = { const USERINFO = {
headImgUrl: weChatAvatarUrl, headImgUrl: avatar || weChatAvatarUrl,
nickName: staffName, nickName: staffName,
seriseName: DEPARTMENTLIST[department - 1], seriseName: DEPARTMENTLIST[department - 1],
brandName: weChatNickName || phone || staffPhone, brandName: weChatNickName || phone || staffPhone,
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<image mode="widthFix" src="{{IMGURL}}mine_center_bg.png" /> <image mode="widthFix" src="{{IMGURL}}mine_center_bg.png" />
</view> </view>
<!-- 个人基础信息 --> <!-- 个人基础信息 -->
<user-info-widget bind:showModal="toShowBindModal" user="{{user}}" boxStyle="{{user_box_style}}"></user-info-widget> <user-info-widget style="z-index:99" bind:showModal="toShowBindModal" user="{{user}}" boxStyle="{{user_box_style}}"></user-info-widget>
<!-- 积分信息 --> <!-- 积分信息 -->
<count-info-widget bind:showModal="toShowBindModal" user="{{user}}" boxStyle="{{count_box_style}}"></count-info-widget> <count-info-widget bind:showModal="toShowBindModal" user="{{user}}" boxStyle="{{count_box_style}}"></count-info-widget>
<!-- 收益明细信息 --> <!-- 收益明细信息 -->
......
...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod'] ...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试 2测试
3生产 3生产
*/ */
const index = 1 const index = 2
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!