uniapp bug修改

pull/2/head
Jruome 2023-05-29 19:23:50 +08:00
parent a8fdac59f5
commit 855988d631
2 changed files with 34 additions and 11 deletions

View File

@ -98,15 +98,27 @@
if(res.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({
index: 2,
pagePath: '/pages/member_equity/index'
pagePath: '/pages/member_equity/index',
visible:true
})
uni.setTabBarItem({
index: 1,
pagePath: '/pages/member_application/index',
visible:false
})
uni.switchTab({
url:'/pages/member_equity/index'
})
}else{
uni.setTabBarItem({
index: 2,
pagePath: '/pages/member_application/index'
index: 1,
pagePath: '/pages/member_application/index',
visible:true
})
uni.setTabBarItem({
index: 2,
pagePath: '/pages/member_equity/index',
visible:false
})
}
this.memberData = res.data

View File

@ -81,15 +81,15 @@
list: [
{
img:'../../static/images/member240.png',
name:360
name:"360"
},
{
img:'../../static/images/member400.png',
name:600
name:"600"
},
{
img:'../../static/images/member960.png',
name:900
img:'../../static/images/member640.png',
name:"960"
},
],
vipData:['普通会员','中级会员','高级会员'],
@ -104,15 +104,27 @@
if(resful.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({
index: 2,
pagePath: '/pages/member_equity/index'
pagePath: '/pages/member_equity/index',
visible:true,
})
uni.setTabBarItem({
index: 1,
pagePath: '/pages/member_application/index',
visible:false,
})
}else{
uni.setTabBarItem({
index: 1,
pagePath: '/pages/member_application/index',
visible:true,
})
uni.setTabBarItem({
index: 2,
pagePath: '/pages/member_application/index'
pagePath: '/pages/member_equity/index',
visible:false,
})
uni.switchTab({
url:'/pages/member_application/index'
url:'/pages/member_application/index',
})
}
const res = await memberHeadInfo()
@ -258,7 +270,6 @@
}
.right-button {
border: 1px solid;
border-radius: 18rpx;
margin-top: 10rpx;
padding: 7rpx 16rpx;