Handy_Cao il y a 3 ans
Parent
commit
c7615d3b87

+ 2 - 0
src/packages/mobile/views/news/details/index.vue

@@ -15,6 +15,7 @@
 </template>
 
 <script lang="ts" setup>
+
 import { shallowRef } from 'vue'
 import { useNavigation } from '@/hooks/navigation'
 import { formatHtmlString } from '@/filters'
@@ -26,6 +27,7 @@ const details = shallowRef<Model.SiteColumnDetailRsp>()
 if (params) {
     details.value = JSON.parse(params.toString())
 }
+
 </script>
 
 <style lang="less">

+ 1 - 1
src/packages/mobile/views/news/list/index.vue

@@ -10,7 +10,7 @@
     </Tabs>
     <app-pull-refresh ref="pullRefreshRef" class="news-list__container" v-model:error="error"
       v-model:pageIndex="pageIndex" :page-count="pageCount" @refresh="onRefresh">
-      <Empty v-if="dataList.length === 0" />
+      <Empty v-if="!dataList.length" />
       <template v-for="(item, index) in dataList" :key="index">
         <Cell class="article-item" title-class="article-item__title" value-class="article-item__time"
           :title="item.title" :value="formatDate(item.creaedate, 'MM/DD')"

+ 7 - 3
src/packages/mobile/views/product/list/index.vue

@@ -3,9 +3,13 @@
     <template #header>
       <app-navbar title="产品介绍" />
     </template>
-    <Tabs v-model:active="active" @change="onClickTab">
-      <Tab title="已关注" />
-      <Tab title="未关注" />
+    <Tabs class="product__tabs" v-model:active="active" @change="onClickTab">
+      <Tab title="已关注" :name="0">
+        <Empty v-if="!dataList.length" />
+      </Tab>
+      <Tab title="未关注" :name="1">
+        <Empty v-if="!dataList.length" />
+      </Tab>
     </Tabs>
     <app-pull-refresh ref="pullRefreshRef" class="product__container" v-model:error="error"
       v-model:pageIndex="pageIndex" :page-count="pageCount" @refresh="onRefresh">