Przeglądaj źródła

🎨 修改细节问题

快乐的梦鱼 1 miesiąc temu
rodzic
commit
e3cbcf5c4d

+ 3 - 1
src/pages/article/common/CommonListPage.vue

@@ -44,7 +44,7 @@
         />
       </template>
       <view 
-        v-if="(showTotal && dropDownVisibleCount < 3)" 
+        v-if="(showTotal && dropDownVisibleCount < 3 && dropDownVisibleCount != 0)" 
         class="d-flex flex-row align-center mt-3 size-s color-primary text-bold"
       >
         <text>总共有 {{ listLoader.total }} 个</text>
@@ -59,6 +59,7 @@
     
     <!-- 列表 -->
     <view class="position-relative d-flex flex-row flex-wrap justify-between align-stretch mt-3">
+      <slot name="list" />
       <view
         v-for="(item, i) in listLoader.list.value"
         :key="item.id"
@@ -290,6 +291,7 @@ function handleTabClick(e: any) {
   nextTick(() => {
     if (e.jump) {
       e.jump?.();
+      tabCurrentIndex.value = 0;
       return;
     }
     listLoader.loadData(undefined, true);

+ 6 - 2
src/pages/inhert/intangible/list.vue

@@ -6,7 +6,7 @@
     showTotal
     :detailsPage="[
       '/pages/inhert/intangible/details',
-      '/pages/inhert/product/details',
+      //'/pages/inhert/product/details',
       '',
       '/pages/inhert/seminar/details',
       'disabled',
@@ -36,7 +36,7 @@ import { navTo } from '@/components/utils/PageAction';
 import CommonListPage, { type DropDownNames } from '@/pages/article/common/CommonListPage.vue';
 import { onLoad } from '@dcloudio/uni-app';
 import { waitTimeOut } from '@imengyu/imengyu-utils';
-import { onMounted, ref } from 'vue';
+import { ref } from 'vue';
 
 const list = ref();
 const dropdownNames = ref<DropDownNames[]>([]);
@@ -51,6 +51,10 @@ async function loadData(
   let api;
   switch (tabSelect) {
     case 0: api = ProjectsContent; break;
+    case 2: return {
+      list: [],
+      total: 0,
+    };
     default:
     case 1: api = ProductsContent; break;
     case 3: api = SeminarContent; break;