Преглед на файлове

fix:修改商品分类获取的code为id

xyh преди 5 месеца
родител
ревизия
8b696a70d1
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      src/points/components/product-list/product-list.vue
  2. 1 0
      src/points/home/index.vue

+ 1 - 1
src/points/components/product-list/product-list.vue

@@ -156,7 +156,7 @@ export default {
         ...(Array.isArray(data) ? data.map(item => {
         ...(Array.isArray(data) ? data.map(item => {
           return {
           return {
             name: item.childName,
             name: item.childName,
-            key: item.childCode
+            key: item.childId
           }
           }
         }) : [])
         }) : [])
       ]
       ]

+ 1 - 0
src/points/home/index.vue

@@ -207,6 +207,7 @@ export default {
             fontSize: 14,
             fontSize: 14,
             safeAreaInsetTop:true
             safeAreaInsetTop:true
           })
           })
+          _this.fetchPointsInfo();
         }
         }
       }).catch(error => {
       }).catch(error => {
         console.error('签到失败:', error);
         console.error('签到失败:', error);