소스 검색

feat: vip列表弹窗逻辑修改

TIANYONG 4 달 전
부모
커밋
5b8a2621d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/page-instrument/component/the-music-list/list.tsx

+ 1 - 1
src/page-instrument/component/the-music-list/list.tsx

@@ -115,7 +115,7 @@ export default defineComponent({
           }
         }
         // 如果是vip的曲子,当前用户不是会员时,需要弹窗提醒
-        if (storeData.user.vipType === "NOT_VIP" && item.paymentType !== "FREE") {
+        if (state.vipType === "NOT_VIP" && item.paymentType !== "FREE") {
           permissionPopup.active = item.paymentType.includes('CHARGE') ? "memberAndDemand" : "member"
           permissionPopup.musicId = item.id
           permissionPopup.musicPrice = item.musicPrice