|
@@ -103,32 +103,36 @@ export default defineComponent({
|
|
|
if (vipVerify.value && !state.tenantAlbumId) {
|
|
|
// 是否需要校验vip
|
|
|
let needCheckVip = true;
|
|
|
- // 如果是点播的曲子,需要弹窗提醒
|
|
|
- if (item.paymentType.includes("CHARGE")) {
|
|
|
- if (loading.value === true) return
|
|
|
- loading.value = true
|
|
|
- // 查询是否购买了
|
|
|
- const { data } = await api_musicIsBuy(item.id)
|
|
|
- loading.value = false
|
|
|
- if (data.buyed === false) {
|
|
|
- permissionPopup.active = item.paymentType === "CHARGE" ? "demand" : "memberAndDemand"
|
|
|
+ if (item.paymentType.includes("VIP") && ["VIP","SVIP","PERMANENT_SVIP"].includes(state.vipType)) {
|
|
|
+ needCheckVip = false;
|
|
|
+ } else {
|
|
|
+ // 如果是点播的曲子,需要弹窗提醒
|
|
|
+ if (item.paymentType.includes("CHARGE")) {
|
|
|
+ if (loading.value === true) return
|
|
|
+ loading.value = true
|
|
|
+ // 查询是否购买了
|
|
|
+ const { data } = await api_musicIsBuy(item.id)
|
|
|
+ loading.value = false
|
|
|
+ if (data.buyed === false) {
|
|
|
+ permissionPopup.active = item.paymentType === "CHARGE" ? "demand" : "memberAndDemand"
|
|
|
+ permissionPopup.musicId = item.id
|
|
|
+ permissionPopup.musicPrice = item.musicPrice
|
|
|
+ permissionPopup.show = true
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 已经购买
|
|
|
+ if (data.buyed === true) {
|
|
|
+ needCheckVip = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 如果是vip的曲子,当前用户不是会员时,需要弹窗提醒
|
|
|
+ if (state.vipType === "NOT_VIP" && item.paymentType !== "FREE" && needCheckVip) {
|
|
|
+ permissionPopup.active = item.paymentType.includes('CHARGE') ? "memberAndDemand" : "member"
|
|
|
permissionPopup.musicId = item.id
|
|
|
permissionPopup.musicPrice = item.musicPrice
|
|
|
permissionPopup.show = true
|
|
|
return
|
|
|
}
|
|
|
- // 已经购买
|
|
|
- if (data.buyed === true) {
|
|
|
- needCheckVip = false;
|
|
|
- }
|
|
|
- }
|
|
|
- // 如果是vip的曲子,当前用户不是会员时,需要弹窗提醒
|
|
|
- if (state.vipType === "NOT_VIP" && item.paymentType !== "FREE" && needCheckVip) {
|
|
|
- permissionPopup.active = item.paymentType.includes('CHARGE') ? "memberAndDemand" : "member"
|
|
|
- permissionPopup.musicId = item.id
|
|
|
- permissionPopup.musicPrice = item.musicPrice
|
|
|
- permissionPopup.show = true
|
|
|
- return
|
|
|
}
|
|
|
}
|
|
|
|