wangguoyu пре 3 дана
родитељ
комит
dd9e82b875
1 измењених фајлова са 10 додато и 4 уклоњено
  1. 10 4
      pages/study/index.vue

+ 10 - 4
pages/study/index.vue

@@ -64,7 +64,7 @@
 		getUserIdentity
 	} from "@/utils/common";
 	import cacheManager from "@/utils/cacheManager.js";
-	const tipContent = '付费章节,是否前往开通付费?'; //当前产品
+	const tipContent = '是否前往开通付费?'; //当前产品
 	const goPayDialogRef = ref(null);
 	const youkeDialogRef = ref(null);
 	const dSwiperRef = ref(null);
@@ -277,9 +277,14 @@
 		})
 	}
 
-	function goPayPage() {
+	function goPayPage() {
+		let zhangInfoLocal = cacheManager.get('zhangInfo')
+		if(!zhangInfoLocal.cardId){
+			toast("cardId 丢失请重新选择学科LevelId");
+			return false
+		}
 		uni.redirectTo({
-			url: '/pages/pay/svip?cardId='+currentProduct.value
+			url: '/pages/mall/mallPage?cardId='+zhangInfoLocal.cardId+'&from=daoPage'
 		})
 	}
 
@@ -350,7 +355,8 @@
 		//	debugger
 			goPayDialogRef.value.handleShow();
 			return false
-		}
+		}
+
 		if (data.type == 2) {
 			// 最后一项
 			goKaoshi(data,index)