Sfoglia il codice sorgente

Merge branch '2024鹅状元' of https://gogs.mtavip.com/wangguoyu/uniProject into 2024鹅状元

tanxue 4 mesi fa
parent
commit
368c4907f4
2 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 5 1
      pages/study/product/shuxue.vue
  2. 6 1
      pages/study/product/yingyu.vue

+ 5 - 1
pages/study/product/shuxue.vue

@@ -52,6 +52,11 @@
 		toast,
 		getUserIdentity
 	} from "@/utils/common";
+  import {
+    onShow
+  } from '@dcloudio/uni-app';
+  const growthType = ref(null);
+  onShow(() => growthType.value =  cacheManager.get('auth').growthType)
 	const $emit = defineEmits(['clickGradeTerm', 'onLeft', 'onRight', 'handleCheckCatalogue', 'listClick'])
 	const props = defineProps({
 		options: {
@@ -59,7 +64,6 @@
 		},
 	})
 	const isVip = getUserIdentity();
-	const growthType = cacheManager.get('auth').growthType;
 	const gradeMapping = {
 		1: '一年级',
 		2: '二年级',

+ 6 - 1
pages/study/product/yingyu.vue

@@ -59,6 +59,12 @@
 		toast,
 		getUserIdentity
 	} from "@/utils/common";
+  import {
+    onShow
+  } from '@dcloudio/uni-app';
+  const growthType = ref(null);
+  onShow(() => growthType.value =  cacheManager.get('auth').growthType)
+
 	const $emit = defineEmits(['clickGradeTerm', 'onLeft', 'onRight', 'handleCheckCatalogue', 'listClick'])
 	const props = defineProps({
 		options: {
@@ -66,7 +72,6 @@
 		},
 	})
 	const isVip = getUserIdentity();
-	const growthType = cacheManager.get('auth').growthType;
 	const gradeMapping = {
 		1: '一年级',
 		2: '二年级',