1
This commit is contained in:
parent
278e20a98e
commit
8a7c00c212
@ -170,9 +170,15 @@
|
||||
import {
|
||||
getNoticeList
|
||||
} from '@/api/business/notice.js'
|
||||
import {dealMemberRights} from '@/api/business/member.js'
|
||||
import {getJSONData} from '@/utils/auth.js';
|
||||
import {getUserType} from '@/utils/common.js'
|
||||
import {
|
||||
dealMemberRights
|
||||
} from '@/api/business/member.js'
|
||||
import {
|
||||
getJSONData
|
||||
} from '@/utils/auth.js';
|
||||
import {
|
||||
getUserType
|
||||
} from '@/utils/common.js'
|
||||
import constant from '@/utils/constant';
|
||||
|
||||
export default {
|
||||
@ -285,9 +291,12 @@
|
||||
* 选择平台
|
||||
*/
|
||||
async choosePlat(index) {
|
||||
this.$emit("openVip")
|
||||
return
|
||||
if (index == 2) {
|
||||
//鉴权
|
||||
if (!this.checkIfHasRights(rightsCode.subscribeSelect)) {
|
||||
this.$emit("openVip")
|
||||
return
|
||||
}
|
||||
this.$refs.showRight2.open()
|
||||
@ -451,9 +460,9 @@
|
||||
userType: userType,
|
||||
noticeId: item.id,
|
||||
rightsCode: 'unlock_notice',
|
||||
deplete:1
|
||||
deplete: 1
|
||||
}
|
||||
dealMemberRights(param).then(res=>{
|
||||
dealMemberRights(param).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$tab.navigateTo(`/pages/notice/detail?id=${item.id}`)
|
||||
}
|
||||
@ -467,7 +476,7 @@
|
||||
},
|
||||
|
||||
/**扣除解锁通告权益*/
|
||||
dealMemberRights(){
|
||||
dealMemberRights() {
|
||||
dealMemberRights()
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
<!-- 主体区域 -->
|
||||
<view class="content-body">
|
||||
<!-- 通告列表页 -->
|
||||
<notice-index v-if="'home'==menuCode"></notice-index>
|
||||
<notice-index v-if="'home'==menuCode" @openVip="openVip"></notice-index>
|
||||
<mine-index :key="nowUserType" :nowUserType="nowUserType" v-if="'my'==menuCode"
|
||||
@refreshUserType="refreshUserType()"></mine-index>
|
||||
<subscribe v-if="'dingyue'==menuCode"></subscribe>
|
||||
@ -11,6 +11,12 @@
|
||||
<my-notice-tg v-if="'myNotice'==menuCode && '01'==nowUserType"></my-notice-tg>
|
||||
</view>
|
||||
<tabBarVue :menuCode="menuCode" :nowUserType="nowUserType" ref="tarBar" @changeMenu="changeMenu"></tabBarVue>
|
||||
<!-- 普通弹窗 -->
|
||||
<uni-popup ref="popup">
|
||||
<view class="popup-content" @click="goVip">
|
||||
<image src="@/static/VIP.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -85,6 +91,18 @@
|
||||
this.selectSiteConfig("platform_tel")
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 打开VIP弹窗
|
||||
*/
|
||||
openVip() {
|
||||
this.$refs.popup.open('center')
|
||||
},
|
||||
/**
|
||||
* 去VIP开通页
|
||||
*/
|
||||
goVip() {
|
||||
this.$tab.navigateTo('/pages/mine/member/member-card?userType=' + this.nowUserType)
|
||||
},
|
||||
/**
|
||||
* 重新获取当前角色
|
||||
*/
|
||||
@ -189,5 +207,15 @@
|
||||
height: 100%;
|
||||
background-color: white;
|
||||
// padding-bottom: calc(var(--window-bottom) + 127rpx);
|
||||
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
padding: 0 !important;
|
||||
background-color: transparent;
|
||||
|
||||
image {
|
||||
width: 70vw;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user