Quellcode durchsuchen

📦 详情页细节修改

imengyu vor 1 Monat
Ursprung
Commit
1926c58fdf

+ 3 - 1
src/pages/article/common/CommonContent.ts

@@ -31,7 +31,9 @@ export function useHomePageMiniCommonListGoMoreAndGoDetail(p: {
   function goList() {
     navTo('/pages/article/common/list', {
       title: p.title,
-      mainBodyColumnId: p.mainBodyColumnId,
+      mainBodyColumnId: typeof p.mainBodyColumnId == 'object' ? 
+        p.mainBodyColumnId.join(',') : 
+        p.mainBodyColumnId,
       modelId: p.modelId,
       itemType: p.itemType,
       detailsPage: p.detailsPage,

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

@@ -78,6 +78,7 @@ const loader = useSimplePageContentLoader<
     throw new Error("!params");
   const res = await NewsIndexContent.getContentDetail(params.id);
   //console.log(res);
+  uni.setNavigationBarTitle({ title: res.title });
   return res;
 });
 

+ 2 - 2
src/pages/inhert.vue

@@ -203,8 +203,8 @@ const {
   goDetail: goCourseDetail,
 } = useHomePageMiniCommonListGoMoreAndGoDetail({
   title: '闽南语在线课程',
-  mainBodyColumnId: 0,
-  modelId: 0,
+  mainBodyColumnId: [257,235,237,210],
+  modelId: 5,
   itemType: 'article-common',
   detailsPage: '/pages/video/details',
 });

+ 4 - 2
src/pages/inhert/artifact/details.vue

@@ -5,12 +5,14 @@
         <view class="banner">
           <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2000" :duration="1000">
             <swiper-item v-for="(item, key) in loader.content.value.images" :key="key">
-              <view class="item">
+              <view 
+                class="item"
+                @click="onPreviewImage(key)"
+              >
                 <ImageWrapper 
                   :src="item"
                   mode="aspectFill"
                   width="750rpx"
-                  @click="onPreviewImage(key)"
                 />
               </view>
             </swiper-item>

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

@@ -68,6 +68,7 @@ const loader = useSimplePageContentLoader<
   if (!params)
     throw new Error("!params");
   const res = await NewsIndexContent.getContentDetail(params.id);
+  uni.setNavigationBarTitle({ title: res.title });
   return res;
 });