Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李智书
xzf_uniapp-wechat-web
Commits
558927b9
Commit
558927b9
authored
Jul 27, 2023
by
lizhishu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改消费应用跳转;
parent
ebadde84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
src/pages/ApplyConsumption/Home/Home.vue
src/pages/ApplyConsumption/Home/Home.vue
+17
-7
No files found.
src/pages/ApplyConsumption/Home/Home.vue
View file @
558927b9
...
...
@@ -73,7 +73,7 @@
</view>
<!-- 功能菜单 -->
<view
class=
"menuList"
>
<view
class=
"menuitem"
v-for=
"(item,index) in menuList"
:key=
"index"
@
click=
"menuClick(item)"
>
<view
class=
"menuitem"
v-for=
"(item,index) in menuList"
:key=
"index"
@
click=
"menuClick(item
,index+1
)"
>
<view
class=
""
>
<view
class=
"title"
>
{{
item
.
title
||
''
}}
</view>
<view
class=
"sketch"
>
{{
item
.
sketch
||
''
}}
</view>
...
...
@@ -84,7 +84,7 @@
</view>
</view>
<!-- 会员尊享权益 -->
<view
class=
"menberImg"
>
<view
class=
"menberImg"
v-if=
"HomeDataInfo['vipStatus']!=1"
>
<image
:src=
"this.$ImgUrl + 'applyCons/menberImg.png'"
mode=
"aspectFit"
></image>
<view
class=
"tomenber"
@
tap=
"openAzMenber"
></view>
</view>
...
...
@@ -109,7 +109,7 @@
menuList
:
Array
(
4
).
fill
(
1
).
map
((
v
,
index
)
=>
{
return
{
path
:
[
'
../ConsumptIoninfo/ConsumptIoninfo
'
,
'
../ConsumptionQuota/ConsumptionQuota
'
,
'
/pages/ConsumptionSystem/AbnormalConsumption/AbnormalConsumption
?userId=4145549&schoolId=60804
'
,
'
/pages/ConsumptionSystem/AbnormalConsumption/AbnormalConsumption
'
,
'
../CommonProblem/CommonProblem
'
][
index
],
title
:
[
'
消费记录
'
,
'
消费限额
'
,
'
消费异常
'
,
'
常见问题
'
][
index
],
...
...
@@ -140,6 +140,11 @@
"
vipExpiredDt
"
:
""
,
// 刷脸消费会员开通状态 1已开通并生效 2未开通 3已过期 4未生效
"
vipStatus
"
:
1
},
// 学校 学生id
userInfo
:
{
schoolId
:
''
,
userId
:
''
}
};
},
...
...
@@ -188,6 +193,10 @@
})
return
}
this
.
userInfo
=
{
schoolId
:
data
.
data
[
'
schoolId
'
],
userId
:
data
.
data
[
'
userId
'
]
}
return
data
.
data
[
'
result
'
]
},
// 获取首页数据
...
...
@@ -244,16 +253,17 @@
})
},
// 菜单跳转
async
menuClick
(
item
)
{
console
.
warn
(
item
)
async
menuClick
(
item
,
index
)
{
if
(
!
item
.
path
)
{
return
}
const
query
=
`?name=
${
this
.
HomeDataInfo
[
'
userName
'
]}
&userId=
${
this
.
userInfo
[
'
userId
'
]}
&schoolId=
${
this
.
userInfo
[
'
schoolId
'
]}
`
uni
.
switchTab
({
url
:
item
.
path
,
url
:
item
.
path
+
query
,
fail
:
()
=>
{
uni
.
navigateTo
({
url
:
item
.
path
url
:
item
.
path
+
query
})
}
})
...
...
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