|
@@ -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()
|
|
|
})
|
|
|
}
|
|
|
|