Commit 558927b9 authored by lizhishu's avatar lizhishu

1.修改消费应用跳转;

parent ebadde84
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</view> </view>
<!-- 功能菜单 --> <!-- 功能菜单 -->
<view class="menuList"> <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="">
<view class="title">{{item.title||''}}</view> <view class="title">{{item.title||''}}</view>
<view class="sketch">{{item.sketch||''}}</view> <view class="sketch">{{item.sketch||''}}</view>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</view> </view>
</view> </view>
<!-- 会员尊享权益 --> <!-- 会员尊享权益 -->
<view class="menberImg"> <view class="menberImg" v-if="HomeDataInfo['vipStatus']!=1">
<image :src="this.$ImgUrl + 'applyCons/menberImg.png'" mode="aspectFit"></image> <image :src="this.$ImgUrl + 'applyCons/menberImg.png'" mode="aspectFit"></image>
<view class="tomenber" @tap="openAzMenber"></view> <view class="tomenber" @tap="openAzMenber"></view>
</view> </view>
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
menuList: Array(4).fill(1).map((v, index) => { menuList: Array(4).fill(1).map((v, index) => {
return { return {
path: ['../ConsumptIoninfo/ConsumptIoninfo', '../ConsumptionQuota/ConsumptionQuota', path: ['../ConsumptIoninfo/ConsumptIoninfo', '../ConsumptionQuota/ConsumptionQuota',
'/pages/ConsumptionSystem/AbnormalConsumption/AbnormalConsumption?userId=4145549&schoolId=60804', '/pages/ConsumptionSystem/AbnormalConsumption/AbnormalConsumption',
'../CommonProblem/CommonProblem' '../CommonProblem/CommonProblem'
][index], ][index],
title: ['消费记录', '消费限额', '消费异常', '常见问题'][index], title: ['消费记录', '消费限额', '消费异常', '常见问题'][index],
...@@ -140,6 +140,11 @@ ...@@ -140,6 +140,11 @@
"vipExpiredDt": "", "vipExpiredDt": "",
// 刷脸消费会员开通状态 1已开通并生效 2未开通 3已过期 4未生效 // 刷脸消费会员开通状态 1已开通并生效 2未开通 3已过期 4未生效
"vipStatus": 1 "vipStatus": 1
},
// 学校 学生id
userInfo: {
schoolId: '',
userId: ''
} }
}; };
}, },
...@@ -188,6 +193,10 @@ ...@@ -188,6 +193,10 @@
}) })
return return
} }
this.userInfo = {
schoolId: data.data['schoolId'],
userId: data.data['userId']
}
return data.data['result'] return data.data['result']
}, },
// 获取首页数据 // 获取首页数据
...@@ -244,16 +253,17 @@ ...@@ -244,16 +253,17 @@
}) })
}, },
// 菜单跳转 // 菜单跳转
async menuClick(item) { async menuClick(item, index) {
console.warn(item)
if (!item.path) { if (!item.path) {
return return
} }
const query =
`?name=${this.HomeDataInfo['userName']}&userId=${this.userInfo['userId']}&schoolId=${this.userInfo['schoolId']}`
uni.switchTab({ uni.switchTab({
url: item.path, url: item.path + query,
fail: () => { fail: () => {
uni.navigateTo({ uni.navigateTo({
url: item.path url: item.path + query
}) })
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment