Browse Source

⚙️ 调整移除不需要的页面

快乐的梦鱼 3 days ago
parent
commit
134824d94a

+ 4 - 0
src/components/utils/PageAction.ts

@@ -54,6 +54,10 @@ function redirectTo(url: string, data: Record<string, unknown> = {}) {
 function navTo(url: string, data: Record<string, unknown> = {}) {
   var dataString = '';
   
+  if (Array.isArray(url)) {
+    data = url[1]
+    url = url[0]
+  }
   for (const key in data)
     dataString += `&${key}=${encodeURIComponent('' + data[key])}`;
 

+ 0 - 6
src/pages.json

@@ -234,12 +234,6 @@
       }
     },
     // #endif
-    {
-      "path": "pages/document/details",
-      "style": {
-        "navigationBarTitleText": "文档详情"
-      }
-    }
   ],
   "globalStyle": {
     "navigationBarTextStyle": "black",

+ 0 - 2
src/pages/article/common/CommonContent.ts

@@ -56,8 +56,6 @@ export function resolveCommonContentFormData(item: GetContentListItem[]) {
 export function resolveCommonContentGetPageDetailUrlAuto(item: GetContentListItem) {
   if (item.type === GetContentListParams.TYPE_VIDEO || item.video)
     return '/pages/video/details';
-  if (item.type === GetContentListParams.TYPE_ARCHIVE && item.archive)
-    return '/pages/document/details';
   return '/pages/article/details';
 }
 

+ 0 - 324
src/pages/article/common/DetailsCommon.vue

@@ -1,324 +0,0 @@
-<template>
-  <DetailTabPage
-    ref="page"
-    :load="load"
-    :extraTabs="[
-      {
-        id: TAB_ID_ICH_SITES,
-        text: '传习所',
-        visible: true,
-      },
-      {
-        id: TAB_ID_INHERITORS,
-        text: '传承人',
-        visible: true,
-      },
-      {
-        id: TAB_ID_PEDIGREE,
-        text: '传承谱系',
-        width: 180,
-        visible: true,
-      },
-      {
-        id: TAB_ID_WORKS,
-        text: '非遗作品',
-        width: 180,
-        visible: true,
-      },
-      {
-        id: TAB_ID_ASSOCIATION_ME,
-        text: '相关资讯',
-        width: 180,
-        visible: true,
-      },
-      {
-        id: TAB_ID_LOCATION,
-        text: '地理位置',
-        width: 180,
-        visible: true,
-      }
-    ]"
-    v-bind="$attrs"
-  >
-    <template #extraTabs="{ content, tabCurrentId }">
-      <template v-if="tabCurrentId==TAB_ID_ICH_SITES">
-        <!-- 非遗传习中心 -->
-        <CommonListPage 
-          :showSearch="false"
-          :hasBg="false"
-          :load="(page: number, pageSize: number) => loadSubList(page, pageSize, content, 'ichSitesList')"
-          detailsPage="/pages/article/data/details?pageConfigName=seminar-details"
-          :detailsParams="{
-            mainBodyColumnId: SeminarContent.mainBodyColumnId,
-            modelId: SeminarContent.modelId,
-          }"
-        />
-      </template>
-      <template v-else-if="tabCurrentId==TAB_ID_INHERITORS">
-        <!-- 非遗传承人 -->
-        <CommonListPage 
-          :showSearch="false"
-          :hasBg="false"
-          :load="(page: number, pageSize: number) => loadSubList(page, pageSize, content, 'inheritorsList')"
-          detailsPage="/pages/article/data/details?pageConfigName=inheritor-details"
-          :detailsParams="{
-            mainBodyColumnId: InheritorContent.mainBodyColumnId,
-            modelId: InheritorContent.modelId,
-          }"
-        />
-      </template>
-      <template v-else-if="tabCurrentId==TAB_ID_PEDIGREE">
-        <!-- 传承谱系 -->
-        <view class="d-flex flex-col mt-3 mb-2">
-          <Parse :content="(content.pedigree as string)" />
-        </view>
-      </template>
-      <template v-else-if="tabCurrentId==TAB_ID_WORKS">
-        <!-- 非遗作品 -->
-        <CommonListPage 
-          :showSearch="false"
-          :hasBg="false"
-          :load="(page: number, pageSize: number) => loadSubList(page, pageSize, content, 'worksList')"
-          :detailsPage="`/pages/article/data/details?pageConfigName=product-details`"
-          :detailsParams="{
-            mainBodyColumnId: ProductsContent.mainBodyColumnId,
-            modelId: ProductsContent.modelId,
-          }"
-        />
-      </template>
-      <template v-else-if="tabCurrentId==TAB_ID_ASSOCIATION_ME">
-        <!-- 相关资讯 -->
-        <CommonListPage 
-          :showSearch="false"
-          :hasBg="false"
-          :load="(page: number, pageSize: number) => loadSubList(page, pageSize, content, 'associationMeList')"
-          :detailsPage="`/pages/inhert/${commonRefTarget}/details`"
-          :detailsParams="{
-            mainBodyColumnId: ProductsContent.mainBodyColumnId,
-            modelId: ProductsContent.modelId,
-          }"
-        />
-      </template>
-      <template v-else-if="tabCurrentId==TAB_ID_LOCATION">
-        <!-- 地理位置 -->
-        <view class="d-flex flex-col mt-3 mb-2">
-         <HomeTitle title="地理位置" />
-          <map id="map"
-            class="w-100 height-350 mt-3"
-            :latitude="content.latitude"
-            :longitude="content.longitude"
-            :markers="[
-              {
-                id: 1,
-                latitude: content.latitude,
-                longitude: content.longitude,
-                iconPath: ImagesUrls.IconMarker,
-                width: 40,
-                height: 40,
-              }
-            ]"
-            :scale="15"
-          />
-          <view class="d-flex flex-row justify-between bg-light radius-base p-2 mt-2">
-            <view>
-              <text class="iconfont icon-navigation"></text>
-              <text class="address">{{ content.address }}</text>
-            </view>
-            <view class="d-flex flex-row align-center flex-shrink-0" @click="handleNavTo(content)">
-              <text class="color-orange">去这里</text>
-              <text class="iconfont icon-arrow-right"></text>
-            </view>
-          </view>
-        </view>
-      </template>
-    </template>
-    <template #titleEnd="{ content }">
-      <Tag
-        v-if="content.levelText"
-        :text="StringUtils.cutString(content.levelText as string, 4)"
-        size="small" scheme="light" type="primary"
-        class="flex-shrink-0"
-      />
-    </template>
-    <template #titleExtra="{ content }">
-      <view class="d-flex flex-col">
-        <IntroBlock 
-          small
-          :descItems="[
-            {
-              label: '项目级别',
-              value: content.levelText ,
-            },
-            {
-              label: '项目类别',
-              value: content.ichTypeText,
-            },
-            {
-              label: '批次时间',
-              value: content.batchText,
-            },
-            {
-              label: '所属区域',
-              value: content.regionText ,
-            },
-            {
-              label: '保护单位',
-              value: content.unit 
-            },
-            {
-              label: '地址',
-              value: content.address,
-            },
-            {
-              label: '其他级别保护单位',
-              value: content.otherLevel && content.otherLevel.length > 0 ? `${content.otherLevel.length}个` : ''
-            },
-            {
-              label: '字号名称',
-              value: content.fontName,
-            },
-            {
-              label: '认定类型',
-              value: content.brandType,
-            },
-          ]"
-        />
-        <!-- 同级别非遗项目显示 -->
-        <view v-if="content.otherLevel && content.otherLevel.length > 0" class="mt-2">
-          <view 
-            v-for="(item, k) in content.otherLevel"
-            :key="k"
-            class="d-flex flex-row align-center justify-between p-3 radius-base bg-light"
-            @click="navTo('/pages/inhert/intangible/details', {
-              id: item.id,
-            })"
-          >
-            <view class="d-flex flex-row align-center">
-              <Tag
-                :text="StringUtils.cutString(item.levelText as string, 3)"
-                size="small" scheme="light" type="primary"
-                class="flex-shrink-0"
-              />
-              <view class="d-flex flex-col ml-2">
-                <view class="d-flex flex-row align-center">
-                  <text>{{ item.title }}</text>
-                  <text v-if="item.regionText" class="ml-2">({{ item.regionText }})</text>
-                </view>
-                <text v-if="item.unit" class="size-s color-second">{{ item.unit }}</text>
-              </view>
-            </view>
-            <text class="iconfont icon-arrow-right"></text>
-          </view>
-        </view>
-      </view>
-    </template>
-  </DetailTabPage>
-</template>
-<script setup lang="ts">
-import { ref } from "vue";
-import { useLoadQuerys } from "@/common/composeabe/LoadQuerys";
-import { useTabId } from "@/common/composeabe/TabControl";
-import { navTo } from "@/components/utils/PageAction";
-import { StringUtils } from "@imengyu/imengyu-utils";
-import DetailTabPage from "@/pages/article/common/DetailTabPage.vue";
-import ProjectsContent from "@/api/inheritor/ProjectsContent";
-import CommonListPage from "@/pages/article/common/CommonListPage.vue";
-import IntroBlock from "@/pages/article/common/IntroBlock.vue";
-import InheritorContent from "@/api/inheritor/InheritorContent";
-import ProductsContent from "@/api/inheritor/ProductsContent";
-import SeminarContent from "@/api/inheritor/SeminarContent";
-import ImagesUrls from "@/common/config/ImagesUrls";
-import Tag from "@/components/display/Tag.vue";
-import Parse from "@/components/display/parse/Parse.vue";
-import type { DetailTabPageProps, DetailTabPageTabsArray } from "./DetailTabPage";
-
-export interface DetailsCommonProps extends DetailTabPageProps {
-  commonRefName?: string;
-  commonRefTarget?: string;
-}
-
-const props = withDefaults(defineProps<DetailsCommonProps>(), {	
-  commonRefName: '',
-  commonRefTarget: '',
-});
-
-const { nextId } = useTabId({ idStart: 4 });
-const TAB_ID_ICH_SITES = nextId();
-const TAB_ID_INHERITORS = nextId();
-const TAB_ID_PEDIGREE = nextId();
-const TAB_ID_WORKS = nextId();
-const TAB_ID_ASSOCIATION_ME = nextId();
-const TAB_ID_LOCATION = nextId();
-
-async function load(id: number, tabsArray: DetailTabPageTabsArray) {
-  const d = await ProjectsContent.getContentDetail(
-    id, 
-    undefined, 
-    querys.value.modelId > 0 ? querys.value.modelId : undefined
-  );
-  tabsArray.getTabById(TAB_ID_ICH_SITES)!.visible = Boolean(d.ichSitesList && (d.ichSitesList as any[]).length > 0);
-  tabsArray.getTabById(TAB_ID_INHERITORS)!.visible = Boolean(d.inheritorsList && (d.inheritorsList as any[]).length > 0);
-  tabsArray.getTabById(TAB_ID_PEDIGREE)!.visible = Boolean(d.pedigree);
-  tabsArray.getTabById(TAB_ID_WORKS)!.visible = false && Boolean(d.worksList && (d.worksList as any[]).length > 0);
-  tabsArray.getTabById(TAB_ID_ASSOCIATION_ME)!.visible = Boolean(d.associationMeList && (d.associationMeList as any[]).length > 0);
-  tabsArray.getTabById(TAB_ID_LOCATION)!.visible = Boolean(d.longitude && d.latitude);
-  return d;
-}
-async function loadSubList(page: number, pageSize: number, content: any, subList: string) {
-  let list = (content[subList] as any[] || [])
-    .slice((page - 1) * pageSize, page * pageSize);
-
-  if (subList == 'associationMeList') {
-    //list.filter((p) => p.modelId == ProjectsContent.modelId)
-  } else if (subList == 'worksList') {
-    list.forEach((p) => {
-      p.bottomTags = [
-        p.levelText,
-        p.ichTypeText,
-        p.batchText,
-      ];
-    })
-  } else if (subList == 'ichSitesList') {
-    list.forEach((p) => {
-      p.bottomTags = [
-        content.ichTypeText,
-      ];
-    })
-  } else if (subList == 'inheritorsList') {
-    list.forEach((p) => {
-      p.bottomTags = [
-        p.levelText,
-        p.nation,
-        content.ichTypeText,
-      ];
-    }) 
-  }
-  return {
-    list,
-    total: list.length,
-  }
-}
-
-function handleNavTo(content: any) {
-  if (!content?.latitude || !content?.longitude) 
-    return;
-  uni.openLocation({
-    latitude: Number(content.latitude),  
-    longitude: Number(content.longitude),  
-  }) 
-}
-
-const page = ref();
-
-const { querys } = useLoadQuerys({ modelId: 0 })
-
-defineExpose({
-  getPageShareData() {
-    return page.value.getPageShareData();
-  } 
-})
-</script>
-
-<style lang="scss">
-
-</style>

+ 8 - 38
src/pages/article/data/DefaultCategory.json

@@ -14,72 +14,42 @@
               "title": "常识一点通",
               "icon": "https://mncdn.wenlvti.net/app_static/minnan/images/home/Button11.png",
               "size": 50,
-              "link": [
-                "/pages/article/data/list",
-                {
-                  "pageConfigName": "explore"
-                }
-              ],
+              "link": "/pages/article/data/list?pageConfigName=explore",
               "style": "large-bg"
             },
             {
-              "title": "闽南新鲜事",
+              "title": "闽南新鲜事", 
               "icon": "https://mncdn.wenlvti.net/app_static/minnan/images/home/Button4.png",
               "size": 50,
-              "link": [
-                "/pages/article/data/list",
-                {
-                  "pageConfigName": "news"
-                }
-              ],
+              "link": "/pages/article/data/list?pageConfigName=news",
               "style": "large-bg"
             },
             {
               "title": "遗产报你知",
               "icon": "https://mncdn.wenlvti.net/app_static/minnan/images/home/Button12.png",
               "size": 50,
-              "link": [
-                "/pages/article/data/list",
-                {
-                  "pageConfigName": "inhert"
-                }
-              ],
+              "link": "/pages/article/data/list?pageConfigName=inhert",
               "style": "large-bg"
             },
             {
               "title": "文化新视角",
               "icon": "https://mncdn.wenlvti.net/app_static/minnan/images/home/Button14.png",
               "size": 50,
-              "link": [
-                "/pages/article/data/list",
-                {
-                  "pageConfigName": "research"
-                }
-              ],
+              "link": "/pages/article/data/list?pageConfigName=research",
               "style": "large-bg"
             },
             {
               "title": "世界走透透",
               "icon": "https://mncdn.wenlvti.net/app_static/minnan/images/home/Button15.png",
               "size": 50,
-              "link": [
-                "/pages/article/data/list",
-                {
-                  "pageConfigName": "communicate"
-                }
-              ],
+              "link": "/pages/article/data/list?pageConfigName=communicate",
               "style": "large-bg"
             },
             {
               "title": "来厦门䢐迌",
               "icon": "https://mncdn.wenlvti.net/app_static/minnan/images/home/Button16.png",
               "size": 50,
-              "link": [
-                "/pages/article/data/list",
-                {
-                  "pageConfigName": "travel"
-                }
-              ],
+              "link": "/pages/article/data/list?pageConfigName=travel",
               "style": "large-bg"
             }
           ],
@@ -678,7 +648,7 @@
                   },
                   "detailsPage": "byContent",
                   "type": "large-grid2",
-                  "visible": false
+                  "visible": true
                 },
                 {
                   "text": "美食动态",

+ 5 - 0
src/pages/article/data/defines/Blocks.ts

@@ -20,6 +20,11 @@ export interface IHomeCommonCategoryBlockStatsProps {
      * @default true
      */
     visible?: boolean,
+    /**
+     * 显示总数文本
+     * @default "1"
+     */
+    showTotalText?: "1"|"2";
   }[]
 }
 

+ 13 - 2
src/pages/article/data/defines/List.ts

@@ -200,8 +200,19 @@ export function CommonCategoryListTabNestCategoryDataToContent(
   if (!data)
     return null;
   switch (data.type) {
-    case 'serializedApi':
-      return CommonCategoryDynamicDataSerializedApi(data);
+    case 'serializedApi': {
+      const api = CommonCategoryDynamicDataSerializedApi(data);
+      return {
+        title: define.text,
+        mainBodyColumnId: data.params?.mainBodyColumnId ?? api.mainBodyColumnId,
+        modelId: api.modelId,
+        itemType: define.itemType,
+        detailsPage: define.detailsPage || 'byContent',
+        count: define.count,
+        params: (define.data as IHomeCommonCategoryDynamicDataCommonContent).otherParams || {},
+        dataSolve: define.dataSolve || [],
+      } as HomeCommonCategoryBlockProps;
+    }
     case 'detailContent':
       return data;
     case 'parentKey':

+ 3 - 1
src/pages/article/data/editor/editors/HomePropsEditor.vue

@@ -34,7 +34,9 @@
             <a-form-item label="按钮尺寸%">
               <a-input-number v-model:value="btn.size" :min="1" style="width: 100%" />
             </a-form-item>
-            <LinkPathEditor v-model="btn.link" />
+            <a-form-item label="跳转链接">
+              <LinkPathEditor v-model="btn.link" />
+            </a-form-item>
             <a-popconfirm title="确定要删除这个按钮吗?" @confirm="removeHomeButton(i)">
               <a-button type="text" danger size="small" @click.stop="">
                 <DeleteOutlined title="删除" />

+ 2 - 2
src/pages/article/details.vue

@@ -205,8 +205,8 @@ function goArchive(id: number) {
     }
     case 'htm': 
     case 'html': 
-      navTo('/pages/document/details', { 
-        id,
+      navTo('/pages/article/web/ewebview', { 
+        url: archiveUrl,
       });
     default:
       uni.showToast({

+ 5 - 2
src/pages/blocks/StatsBlock.vue

@@ -1,14 +1,16 @@
 <template>
   <!-- 数据统计 -->
   <SimplePageContentLoader :loader="statsLoader">
-    <view class="d-flex flex-col">
+    <view class="d-flex flex-col mt-2">
       <template v-for="value in statsLoader.content.value" :key="value.type">
-        <view class="border-top-light-primary pt-2 mt-3"></view>
         <StatsText
           :title="value.title" 
           :data="value.datas" 
           :type="value.type" 
         />
+        <HorizontalScrollText v-if="value.showTotalText == '1'" :text="statsText1" color="text.second" :fontSize="25" innerClass="mt-2" />
+        <HorizontalScrollText v-else-if="value.showTotalText == '2'" :text="statsText2" color="text.second" :fontSize="25" innerClass="mt-2" />
+        <view class="border-top-light-primary pt-2 mt-3"></view>
       </template>
     </view>
   </SimplePageContentLoader>
@@ -118,6 +120,7 @@ const statsLoader = useSimpleDataLoader(async () => {
     }),
   } as Record<string, StatsTextItem[]>;
 
+  
   return props.statsNameConfig.map((item: any) => {
     return {
       ...item,

+ 0 - 44
src/pages/document/details.vue

@@ -1,44 +0,0 @@
-<template>
-  <web-view v-if="loader.content.value" :src="loader.content.value?.archives || ''"  />
-</template>
-
-<script setup lang="ts">
-import type { GetContentDetailItem } from "@/api/CommonContent";
-import { useSimplePageContentLoader } from "@/common/composeabe/SimplePageContentLoader";
-import { useLoadQuerys } from "@/common/composeabe/LoadQuerys";
-import { onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
-import NewsIndexContent from "@/api/news/NewsIndexContent";
-
-const loader = useSimplePageContentLoader<
-  GetContentDetailItem, 
-  { id: number }
->(async (params) => {
-  if (!params)
-    throw new Error("!params");
-  const res = await NewsIndexContent.getContentDetail(params.id);
-  uni.setNavigationBarTitle({ title: res.title });
-  return res;
-});
-
-function getPageShareData() {
-  if (!loader.content.value)
-    return { title: '文章详情', imageUrl: '' }
-  return {
-    title: loader.content.value.title,
-    imageUrl: loader.content.value.images[0],
-  }
-}
-onShareTimeline(() => {
-  return getPageShareData(); 
-})
-onShareAppMessage(() => {
-  return getPageShareData();
-})
-
-const { querys } = useLoadQuerys({ 
-  id: 0
-}, (t) => loader.loadData(t));
-</script>
-
-<style lang="scss">
-</style>

+ 0 - 141
src/pages/inhert/artifact/details.vue

@@ -1,141 +0,0 @@
-<template>
-  <DetailTabPage
-    ref="pageRef"
-    :load="load"
-    :extraTabs="[
-      {
-        id: TAB_ID_VR,
-        text: 'VR参观',
-        width: 180,
-        visible: true,
-      },
-      {
-        id: TAB_ID_PROTECTED_AREA,
-        text: '保护范围',
-        width: 180,
-        visible: true,
-      },
-      {
-        id: TAB_ID_ENVIRONMENT,
-        text: '建筑环境',
-        width: 180,
-        visible: true,
-      },
-      {
-        id: TAB_ID_VALUE,
-        text: '价值评估',
-        width: 180,
-        visible: true,
-      },
-    ]"
-  >
-    <template #extraTabs="{ content, tabCurrentId }">
-      <template v-if="tabCurrentId==TAB_ID_VR">
-        <!-- VR参观 -->
-        <view class="d-flex flex-row justify-center p-5">
-          <Button @click="handleGoToVr(content.vr as string)">
-            <text class="iconfont icon-go"></text>
-            点击参观
-          </Button>
-        </view>
-      </template>
-      <template v-if="tabCurrentId==TAB_ID_PROTECTED_AREA">
-        <!-- 保护范围 -->
-        <Parse :content="content.protectedArea" />
-      </template>
-      <template v-if="tabCurrentId==TAB_ID_ENVIRONMENT">
-        <!-- 建筑环境 -->
-        <Parse :content="content.environment" />
-      </template>
-      <template v-if="tabCurrentId==TAB_ID_VALUE">
-        <!-- 价值评估 -->
-        <Parse :content="content.value" />
-      </template>
-    </template>
-    <template #titleEnd="{ content }">
-      <Tag
-        v-if="content.levelText"
-        :text="(content.levelText as string)"
-        size="small" scheme="light" type="primary"
-        class="flex-shrink-0"
-      />
-    </template>
-    <template #titleExtra="{ content }">
-      <IntroBlock 
-        small
-        :address="(content.address as string)"
-        :descItems="[
-          {
-            label: '开放时间',
-            value: content.openStatusText
-          },
-          {
-            label: '年代',
-            value: content.age 
-          },
-          {
-            label: '级别',
-            value: content.levelText 
-          },
-          {
-            label: '所属区域',
-            value: content.regionText ,
-          },
-          {
-            label: '文物类型',
-            value: content.crTypeText, 
-          }
-        ]"
-        @navTo="handleNavTo(content)"
-      />
-    </template>
-  </DetailTabPage>
-</template>
-<script setup lang="ts">
-import { useTabId, type TabControlItem } from "@/common/composeabe/TabControl";
-import { ref, type Ref } from "vue";
-import { navTo } from "@/components/utils/PageAction";
-import UnmoveableContent from "@/api/inheritor/UnmoveableContent";
-import IntroBlock from "@/pages/article/common/IntroBlock.vue";
-import DetailTabPage, { type DetailTabPageTabsArray } from "@/pages/article/common/DetailTabPage.vue";
-import { onShareTimeline, onShareAppMessage } from "@dcloudio/uni-app";
-import Parse from "@/components/display/parse/Parse.vue";
-import Button from "@/components/basic/Button.vue";
-import Tag from "@/components/display/Tag.vue";
-
-const { nextId } = useTabId({ idStart: 5 });
-const TAB_ID_VR = nextId();
-const TAB_ID_PROTECTED_AREA = nextId();
-const TAB_ID_ENVIRONMENT = nextId();
-const TAB_ID_VALUE = nextId();
-
-async function load(id: number, tabsArray: DetailTabPageTabsArray) {
-  const d = await UnmoveableContent.getContentDetail(id);
-  tabsArray.getTabById(TAB_ID_VR)!.visible = Boolean(d.vr);
-  tabsArray.getTabById(TAB_ID_PROTECTED_AREA)!.visible = Boolean(d.protectedArea);
-  tabsArray.getTabById(TAB_ID_ENVIRONMENT)!.visible = Boolean(d.environment);
-  tabsArray.getTabById(TAB_ID_VALUE)!.visible = Boolean(d.value); 
-  return d;
-}
-
-function handleGoToVr(vr: string) {
-  navTo('/pages/article/web/ewebview', { url: vr })
-}
-function handleNavTo(content: any) {
-  if (!content?.latitude || !content?.longitude) 
-    return;
-  uni.openLocation({
-    latitude: Number(content.latitude),  
-    longitude: Number(content.longitude),  
-  }) 
-}
-
-const pageRef = ref();
-
-onShareTimeline(() => {
-  return pageRef.value?.getPageShareData() || {}; 
-})
-onShareAppMessage(() => {
-  return pageRef.value?.getPageShareData() || {};
-})
-</script>

+ 0 - 26
src/pages/inhert/intangible/details.vue

@@ -1,26 +0,0 @@
-<template>
-  <DetailsCommon 
-    ref="pageRef"
-    commonRefName="作品"
-    commonRefTarget="product" 
-    :overrideInternalTabsName="{
-      [TAB_ID_VIDEO]: '资料影像',
-    }"
-  />
-</template>
-
-<script setup lang="ts">
-import { ref } from 'vue';
-import { TAB_ID_VIDEO } from '@/pages/article/common/DetailTabPage';
-import DetailsCommon from '@/pages/article/common/DetailsCommon.vue';
-import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app';
-
-const pageRef = ref();
-
-onShareTimeline(() => {
-  return pageRef.value?.getPageShareData() || {}; 
-})
-onShareAppMessage(() => {
-  return pageRef.value?.getPageShareData() || {};
-})
-</script>

+ 1 - 1
src/pages/inhert/language/list.vue

@@ -81,7 +81,7 @@ import Tabs from '@/components/nav/Tabs.vue';
 import SearchBar from '@/components/form/SearchBar.vue';
 
 const tabs = useSimpleDataLoader(async () => {
-  const res = await CommonContent.getModelColumList(5, undefined, 1, 50);
+  const res = await CommonContent.getModelColumList(5, 313, 1, 50);
   setTimeout(() => {
     tab.value = 0
   }, 200);