Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
ec203487
Commit
ec203487
authored
Jan 23, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
a145f8eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
12 deletions
+28
-12
myInfo.vue
pages/my/myInfo.vue
+28
-12
No files found.
pages/my/myInfo.vue
View file @
ec203487
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
</view>
</view>
<view
class=
"flex-col content-box"
>
<view
class=
"flex-col content-box"
>
<view
class=
"user-action"
>
<view
class=
"user-action"
>
<view
v-for=
"(item,k) in userAction"
:key=
"k"
class=
"action-box"
>
<view
v-for=
"(item,k) in userAction"
:key=
"k"
v-if=
"item.show"
class=
"action-box"
>
<view
v-if=
"item.show|| userInfo.isCleaner"
:style=
"
{background:item.color}" class="action-item" @tap="onActionNav(item,k)">
<view
:style=
"
{background:item.color}" class="action-item" @tap="onActionNav(item,k)">
<view
class=
"flex-1"
>
<view
class=
"flex-1"
>
<text
class=
"text-title text-lg"
>
{{
item
.
label
}}
</text>
<text
class=
"text-title text-lg"
>
{{
item
.
label
}}
</text>
</view>
</view>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
label
:
"订单"
,
label
:
"订单"
,
iconUrl
:
config
.
assetsPath
+
'/my_list_15.png'
,
iconUrl
:
config
.
assetsPath
+
'/my_list_15.png'
,
routePath
:
"/pages/orderRecord/orderRecord"
,
routePath
:
"/pages/orderRecord/orderRecord"
,
type
:
""
,
type
:
"
1
"
,
color
:
"#FEF9EE"
,
color
:
"#FEF9EE"
,
show
:
true
show
:
true
},
},
...
@@ -156,22 +156,23 @@
...
@@ -156,22 +156,23 @@
label
:
"消费记录"
,
label
:
"消费记录"
,
iconUrl
:
config
.
assetsPath
+
'/my_list_16.png'
,
iconUrl
:
config
.
assetsPath
+
'/my_list_16.png'
,
routePath
:
"/pages/payRecord/index"
,
routePath
:
"/pages/payRecord/index"
,
type
:
""
,
type
:
"
2
"
,
color
:
"#EEF3FE"
,
color
:
"#EEF3FE"
,
show
:
true
show
:
true
},
},
// {
// label:"立即充值",
// iconUrl:config.assetsPath+'/vip_icon.png',
// routePath:"",
// type:"",
// show:true
// },
{
{
label
:
"保洁管理"
,
label
:
"保洁管理"
,
iconUrl
:
config
.
assetsPath
+
'/my_list_17.png'
,
iconUrl
:
config
.
assetsPath
+
'/my_list_17.png'
,
routePath
:
"/pages/cleanManage/cleanManage"
,
routePath
:
"/pages/cleanManage/cleanManage"
,
type
:
""
,
type
:
"3"
,
color
:
"#F1EEFE"
,
show
:
false
},
{
label
:
"保洁记录"
,
iconUrl
:
config
.
assetsPath
+
'/my_list_17.png'
,
routePath
:
"/pages/cleanRecord/index"
,
type
:
"4"
,
color
:
"#F1EEFE"
,
color
:
"#F1EEFE"
,
show
:
false
show
:
false
}
}
...
@@ -241,6 +242,21 @@
...
@@ -241,6 +242,21 @@
this
.
userInfo
=
res
.
data
.
data
;
this
.
userInfo
=
res
.
data
.
data
;
this
.
userName
=
this
.
userInfo
.
phone
.
slice
(
-
4
);
this
.
userName
=
this
.
userInfo
.
phone
.
slice
(
-
4
);
uni
.
setStorageSync
(
'userInfo'
,
this
.
userInfo
)
uni
.
setStorageSync
(
'userInfo'
,
this
.
userInfo
)
this
.
userAction
=
this
.
userAction
.
map
(
item
=>
{
let
show
=
item
.
show
;
if
(
item
.
type
==
'3'
&&
this
.
userInfo
.
isCleaner
){
show
=
true
}
if
(
item
.
type
==
'4'
&&
this
.
userInfo
.
isAdmin
){
show
=
true
}
return
{
...
item
,
show
}
})
this
.
loginStatus
=
true
;
this
.
loginStatus
=
true
;
}
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment