Commit 01a38979 by 杨北旺

提交个人中心模块

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