Przeglądaj źródła

💄 资讯页和首页细节修改

imengyu 1 dzień temu
rodzic
commit
7d31a1bcf7

+ 6 - 3
src/pages.json

@@ -42,7 +42,8 @@
     {
       "path": "pages/inhert/artifact/list",
       "style": {
-        "navigationBarTitleText": "文物"
+        "navigationBarTitleText": "文物",
+        "navigationStyle": "custom"
       }
     },
     {
@@ -54,13 +55,15 @@
     {
       "path": "pages/article/details",
       "style": {
-        "navigationBarTitleText": "新闻详情"
+        "navigationBarTitleText": "新闻详情",
+        "navigationStyle": "custom"
       }
     },
     {
       "path": "pages/article/list",
       "style": {
-        "navigationBarTitleText": "文章列表页"
+        "navigationBarTitleText": "文章列表页",
+        "navigationStyle": "custom"
       }
     },
     {

+ 1 - 0
src/pages/article/details.vue

@@ -1,5 +1,6 @@
 <template>
   <view class="main">
+    <u-navbar title="文物" autoBack placeholder bgColor="transparent" />
     <SimplePageContentLoader :loader="loader">
       <template v-if="loader.content.value">
         <view class="article">

+ 1 - 0
src/pages/article/list.vue

@@ -1,5 +1,6 @@
 <template>
   <view class="article_list">
+    <u-navbar title="文物" autoBack placeholder bgColor="transparent" />
     <view class="search">
       <uni-search-bar 
         v-model="searchText"

+ 3 - 7
src/pages/home/introduction.vue

@@ -17,7 +17,7 @@
       <!-- 分栏 -->
       <view class="shadow-l radius-l bg-base p-3">
         <SimplePageContentLoader :loader="introdData">
-          <u-parse :content="introdData.content.value?.content" :tag-style="commonParserStyle"></u-parse>
+          <u-parse :content="introdData.content.value" :tag-style="commonParserStyle"></u-parse>
         </SimplePageContentLoader>
       </view>
     </view>
@@ -34,14 +34,10 @@ import commonParserStyle from '@/common/style/commonParserStyle';
 import SimplePageContentLoader from '@/common/components/SimplePageContentLoader.vue';
 
 const introdData = useSimpleDataLoader(async () => {
-  const data = (await NewsIndexContent.getColumList(new GetContentListParams().setSelfValues({
+  return (await NewsIndexContent.getColumList(new GetContentListParams().setSelfValues({
     modelId: 3,
     mainBodyColumnId: 234,
-  }))).list[0]
-
-  return {
-    content: data.overview, 
-  }
+  }))).list[0]?.overview
 }, true);
 
 </script>

+ 1 - 0
src/pages/inhert/artifact/list.vue

@@ -1,5 +1,6 @@
 <template>
   <view class="d-flex flex-column bg-base">
+    <u-navbar title="文物" autoBack placeholder bgColor="transparent" />
     <u-tabs 
       :list="tabs" 
       lineWidth="30"