|
@@ -269,7 +269,7 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
const buyVip = computed(() => {
|
|
|
- const album = albumDetail.value?.musicPaymentTypes
|
|
|
+ const album = albumDetail.value?.paymentType
|
|
|
return album && album.includes('VIP')
|
|
|
})
|
|
|
|
|
@@ -456,9 +456,11 @@ export default defineComponent({
|
|
|
<div
|
|
|
class={[
|
|
|
'btnGroup',
|
|
|
- buyVip.value && !state.user.data.isVip && 'btnMore'
|
|
|
+ buyVip.value &&
|
|
|
+ !(state.user.data.userVip?.vipType !== 'NOT_VIP') &&
|
|
|
+ 'btnMore'
|
|
|
]}
|
|
|
- style={{ paddingTop: '12px' }}
|
|
|
+ style={{ padding: '0' }}
|
|
|
>
|
|
|
<Button
|
|
|
block
|
|
@@ -469,27 +471,28 @@ export default defineComponent({
|
|
|
>
|
|
|
购买专辑
|
|
|
</Button>
|
|
|
- {buyVip.value && !state.user.data.isVip && (
|
|
|
- <Button
|
|
|
- block
|
|
|
- round
|
|
|
- type="primary"
|
|
|
- style={{ fontSize: '16px' }}
|
|
|
- onClick={() => {
|
|
|
- router.push({
|
|
|
- path: '/memberCenter',
|
|
|
- query: {
|
|
|
- ...route.query
|
|
|
- }
|
|
|
- })
|
|
|
- }}
|
|
|
- >
|
|
|
- {studentActivityId.value > 0 && (
|
|
|
- <div class={[styles.buttonDiscount]}>专属优惠</div>
|
|
|
- )}
|
|
|
- 开通会员
|
|
|
- </Button>
|
|
|
- )}
|
|
|
+ {buyVip.value &&
|
|
|
+ !(state.user.data.userVip?.vipType !== 'NOT_VIP') && (
|
|
|
+ <Button
|
|
|
+ block
|
|
|
+ round
|
|
|
+ type="primary"
|
|
|
+ style={{ fontSize: '16px' }}
|
|
|
+ onClick={() => {
|
|
|
+ router.push({
|
|
|
+ path: '/memberCenter',
|
|
|
+ query: {
|
|
|
+ ...route.query
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {studentActivityId.value > 0 && (
|
|
|
+ <div class={[styles.buttonDiscount]}>专属优惠</div>
|
|
|
+ )}
|
|
|
+ 开通会员
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
</div>
|
|
|
</ColSticky>
|
|
|
)}
|