Przeglądaj źródła

子品种全部关闭隐藏父品种

Karsa 2 lat temu
rodzic
commit
9fa684b1b7
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      src/views/hzyb/pricedriven/detail.vue

+ 5 - 2
src/views/hzyb/pricedriven/detail.vue

@@ -28,7 +28,10 @@ const getClassify = async () => {
 
 
   if (code === 200) {
   if (code === 200) {
     const { permission_list } = data;
     const { permission_list } = data;
-    varietiesList.value = permission_list.slice(0, 4);
+    permission_list.forEach(_ => {
+      _.isShow = _.list ? _.list.some(sub_item => sub_item.pirce_driven_state) : false
+    })
+    varietiesList.value = permission_list.filter(_ => _.isShow);
 
 
     // 分享进入的默认品种
     // 分享进入的默认品种
     if (route.query.default_classify_first) {
     if (route.query.default_classify_first) {
@@ -516,7 +519,7 @@ onUnmounted(() => {
       top: 0;
       top: 0;
     }
     }
     .apply-box {
     .apply-box {
-      padding-top: 50px;
+      padding-top: 30px;
     }
     }
     .nodata-img {
     .nodata-img {
       width: 682px;
       width: 682px;