Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 01a38979
authored
Oct 20, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交个人中心模块
1 parent
3f853f67
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
pages/tab/mine/components/userInfo/userInfo.js
pages/tab/mine/mine.js
pages/tab/mine/mine.wxml
utils/request/environment.js
pages/tab/mine/components/userInfo/userInfo.js
View file @
01a3897
...
...
@@ -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
)
}
},
...
...
pages/tab/mine/mine.js
View file @
01a3897
...
...
@@ -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
,
...
...
pages/tab/mine/mine.wxml
View file @
01a3897
...
...
@@ -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>
<!-- 收益明细信息 -->
...
...
utils/request/environment.js
View file @
01a3897
...
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
3生产
*/
const
index
=
1
const
index
=
2
const
secretKey
=
{
ip
:
{},
dev
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment