wangsisi пре 4 недеља
родитељ
комит
ade4407a07
2 измењених фајлова са 16 додато и 6 уклоњено
  1. 1 1
      components/guardSuccessPopup/guardSuccessPopup.vue
  2. 15 5
      pages/tabBar/tree/tree.vue

+ 1 - 1
components/guardSuccessPopup/guardSuccessPopup.vue

@@ -38,7 +38,7 @@
 		if (filename.startsWith("https")) {
 			return filename; // 直接使用完整 URL
 		} else {
-			return base_img_url2 + filename + resize; // 拼接基础 URL
+			return config.BASE_IMG_URL + filename + resize; // 拼接基础 URL
 		}
 	};
 

+ 15 - 5
pages/tabBar/tree/tree.vue

@@ -154,11 +154,20 @@
 		})
 	}
 
-	onLoad(() => {
-		featchSessionStore()
+	onLoad(() => {
 		featchIsLookedGuide()
-		featchLightTree()
-	})
+		featchLightTree()
+		featchCategoryList()
+	})
+	
+	//品类查询所有
+	const featchCategoryList = () =>{
+		USER.categoryList().then(({
+			data
+		}) => {
+			columns[0] = data || []
+		})
+	}
 
 	const showMask = ref(false)
 	const featchIsLookedGuide = () => {
@@ -186,7 +195,7 @@
 			miniUserId: userInfo.id
 		}).then((({data}) => {
 			if (data?.val == 0) {
-				showGuardSuccess.value = true
+				showGuardSuccess.value = !showGuardSuccess.value
 				USER.setSessionStore({
 					key: 'successTree',
 					miniUserId: userInfo.id
@@ -222,6 +231,7 @@
 				treeName.value = '飞鸟守护'
 			}
 			farmBuyId.value = data.buyList[0].id
+			featchSessionStore()
 		})
 	}