wangguoyu hai 4 meses
pai
achega
a1d1c12f4d
Modificáronse 3 ficheiros con 17 adicións e 15 borrados
  1. 8 8
      pages/study/index.vue
  2. 3 3
      pages/study/lookShipin.vue
  3. 6 4
      pages/study/svipDialog.vue

+ 8 - 8
pages/study/index.vue

@@ -172,14 +172,14 @@
 			zhangId: data.zhangId,
 		}
 		getCommonZhangInfo(req).then(res => {
-			infoData.jieList = res.data.jieList
-			infoData.haveFlag = res.data.haveFlag
-			infoData.nianji = res.data.nianji
-			infoData.number = res.data.number
-			infoData.numberStr = res.data.numberStr
-			infoData.cardId = res.data.cardId
-			infoData.zhangId = res.data.zhangId
-			infoData.zhangName = res.data.zhangName
+			zhangList.value = res.data
+			// infoData.haveFlag = res.data.haveFlag
+			// infoData.nianji = res.data.nianji
+			// infoData.number = res.data.number
+			// infoData.numberStr = res.data.numberStr
+			// infoData.cardId = res.data.cardId
+			// infoData.zhangId = res.data.zhangId
+			// infoData.zhangName = res.data.zhangName
 			//getNewData()
 		})
 	}

+ 3 - 3
pages/study/lookShipin.vue

@@ -179,7 +179,7 @@
 					const AuthCode = getUserIdentity();
 					console.log(AuthCode);
 					if (AuthCode == 'Not-Vip') {
-						toast("请前往付费!")
+						this.$refs.svipDialogRef.handleShow();
 						return false
 					}
 					//	debugger
@@ -239,11 +239,11 @@
 					})
 				}
 				
-				// this.$refs.svipDialogRef.handleShow();
+		
 
 			},
 			svipConfirm(){
-				console.log('svip按钮');
+				uni.redirectTo({ url: '/pages/pay/svip' })
 			},
 			ykConfirm() {
 				uni.redirectTo({

+ 6 - 4
pages/study/svipDialog.vue

@@ -4,8 +4,8 @@
 	 mask-background-color="rgba(255, 255, 255, 0.6);">
 	 <view class="ezy-svip-dialog">
 		<view class="tip-content-box">
-			<!-- :class="'svip-img'+id" -->
-			<icon class="svip-img svip-img1"></icon>
+		
+			<icon :class="'svip-img'+cardId"></icon>
 			<view class="tip-content">开通SVIP会员解锁学习关卡</view>
 			<view class="tip-btn-box">
 				<view class="not-confirm-btn" @click="handleClose"></view>
@@ -17,7 +17,8 @@
 </template>
 
 <script setup>
-	import { ref } from 'vue';
+	import { ref } from 'vue';
+	import cacheManager from "@/utils/cacheManager.js";
 	const props = defineProps({
 	  title: {
 	    type: String,
@@ -28,7 +29,8 @@
 		require: true,
 	    default: ''
 	  },
-	});
+	});
+	const cardId =cacheManager.get('auth').cardId
 	const svipPopup = ref(null); // 索引
 	const $emit = defineEmits(['confirm-btn'])
 	// 打开弹窗