소스 검색

测试看看分享

小彬 2 년 전
부모
커밋
03cb007364
2개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 1
      pages/pcWebViev/pcWebViev.vue
  2. 7 5
      reportPages/IndustryReport/IndustryReport.vue

+ 2 - 1
pages/pcWebViev/pcWebViev.vue

@@ -59,7 +59,8 @@ export default {
         "chartPage",
         "specialDetail",
         "specialResearchPage",
-        'purchaser'
+        'purchaser',
+        'IndustryReport'
       ];
       if (JSON.stringify(optios) !== "{}" && optios.path) {
         let pathUrl = optios.path.split("/")[2];

+ 7 - 5
reportPages/IndustryReport/IndustryReport.vue

@@ -38,7 +38,7 @@
       <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
       <text>暂时没有报告的内容</text>
     </view>
-   <freeCharge class="free-charge" :isShowFreeBtn="isShowFree"/>
+    <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
   </view>
 </template>
 
@@ -46,7 +46,7 @@
 import { Mine } from "@/config/api.js"; //模拟
 import { Reports } from "@/config/api.js"; //模拟
 import { Throttle } from "@/config/util.js";
-import freeCharge  from '@/components/freeCharge'
+import freeCharge from "@/components/freeCharge";
 let app = getApp({ allowDefault: true });
 export default {
   data() {
@@ -71,6 +71,7 @@ export default {
       totalPage: "",
       toggleTabIndex: 0,
       titleReport: "",
+      pcTabActive: "",
     };
   },
   onLoad(option) {
@@ -82,7 +83,7 @@ export default {
     this.$store.dispatch("statistics", { PageType: "IndustryList", IndustrialManagementId: this.industrialManagementId });
   },
   components: {
-    freeCharge
+    freeCharge,
   },
   watch: {
     //监听tabs的变化
@@ -138,6 +139,7 @@ export default {
           this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
           this.totalPage = res.Data.Paging.Pages; //总页数
           if (this.page_no === 1) {
+            this.pcTabActive = res.Data.ChartPermissionId;
             this.collectList = res.Data.List || [];
             this.haveData = this.collectList.length ? true : false;
             if (this.refresh) {
@@ -194,8 +196,8 @@ export default {
    */
   onShareAppMessage: function (res) {
     return {
-      title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" :  this.titleReport,
-      path: "/reportPages/IndustryReport/IndustryReport?id=" + this.industrialManagementId + "&tab=" + this.tabAct_id,
+      title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : this.titleReport,
+      path: "/reportPages/IndustryReport/IndustryReport?id=" + this.industrialManagementId + "&tab=" + this.tabAct_id + "&tabs=" + this.pcTabActive,
       success: (res) => {},
       fail: (err) => {},
     };