فهرست منبع

fix: app分享到微信pathname调整

cuiyalong 8 ماه پیش
والد
کامیت
1a2f85c2d5
1فایلهای تغییر یافته به همراه18 افزوده شده و 8 حذف شده
  1. 18 8
      apps/mobile/src/views/article/content.vue

+ 18 - 8
apps/mobile/src/views/article/content.vue

@@ -53,7 +53,10 @@
                   class="content-abstract-module"
                   :beforeLeavePage="beforeLeavePage"
                 />
-                <section class="content-abstract-other bg-white" v-if="!IsSunPublishContent">
+                <section
+                  class="content-abstract-other bg-white"
+                  v-if="!IsSunPublishContent"
+                >
                   <ContentAbstractEntList
                     v-if="!IsCustomTopNet"
                     class="content-abstract-ent-list-module"
@@ -141,7 +144,10 @@
           />
         </div>
         <div class="j-footer article-content-footer">
-          <TabActions :beforeLeavePage="beforeLeavePage" v-if="showTabActions" />
+          <TabActions
+            :beforeLeavePage="beforeLeavePage"
+            v-if="showTabActions"
+          />
         </div>
       </div>
     </van-skeleton>
@@ -352,12 +358,12 @@ export default {
       if (this.IsSunPublishContent) {
         return {
           show: this.content.isCanRead, // 是否展示全部内容
-          showContentModule: this.hasPowerToReadSunPublishContent,
+          showContentModule: this.hasPowerToReadSunPublishContent
         }
       } else {
         return {
           show: this.content.isCanRead,
-          showContentModule: true,
+          showContentModule: true
         }
       }
     },
@@ -377,12 +383,14 @@ export default {
       return this.mainModel.moduleShow
     },
     advancedModuleShow() {
-      const { tbService, customerRecommend, timeline, zbRecommend } = this.expandModel.moduleShow
+      const { tbService, customerRecommend, timeline, zbRecommend } =
+        this.expandModel.moduleShow
       return Object.assign({}, this.expandModel.moduleShow, {
-        tbService: (this.IsCustomTopNet || this.IsSunPublishContent) ? false : tbService,
+        tbService:
+          this.IsCustomTopNet || this.IsSunPublishContent ? false : tbService,
         customerRecommend: this.IsSunPublishContent ? false : customerRecommend,
         timeline: this.IsSunPublishContent ? false : timeline,
-        zbRecommend: this.IsSunPublishContent ? false : zbRecommend,
+        zbRecommend: this.IsSunPublishContent ? false : zbRecommend
       })
     },
     // 客户推荐模块是否展示
@@ -740,7 +748,9 @@ export default {
         .replace(/ /g, '')
       if (shareType === 1) {
         // 分享给微信好友
-        link = location.pathname.replace(import.meta.env.VITE_APP_BASE_URL, '')
+        link = location.pathname
+          .replace(import.meta.env.VITE_APP_BASE_URL, '')
+          .replace('/jyapp', '')
         if (location.search) {
           link += `${location.search}&source=app_infocontentshare&from=${
             this.shareInfoRes.userId || ''