diff --git a/yudao-ui-app/pages/member_application/index.vue b/yudao-ui-app/pages/member_application/index.vue index a8d4d354c..9b56e030b 100644 --- a/yudao-ui-app/pages/member_application/index.vue +++ b/yudao-ui-app/pages/member_application/index.vue @@ -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 diff --git a/yudao-ui-app/pages/member_equity/index.vue b/yudao-ui-app/pages/member_equity/index.vue index 5ca58bc0d..05f2ec981 100644 --- a/yudao-ui-app/pages/member_equity/index.vue +++ b/yudao-ui-app/pages/member_equity/index.vue @@ -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;