bding hace 9 meses
padre
commit
35a2c9c6af
Se han modificado 2 ficheros con 15 adiciones y 3 borrados
  1. 3 0
      pages/index/index.vue
  2. 12 3
      pages/reportForm/reportForm.vue

+ 3 - 0
pages/index/index.vue

@@ -665,7 +665,10 @@ export default {
     .item {
       background-color: #f8f8fa;
       border-radius: 200rpx;
+      justify-content: center;
       height: 64rpx;
+      width: 92rpx;
+      padding: 0;
     }
   }
 }

+ 12 - 3
pages/reportForm/reportForm.vue

@@ -11,7 +11,7 @@
           </view>
         </template>
       </search-bar>
-      <view class="global_one_tabs">
+      <view class="global_one_tabs tabs-box">
         <view :class="['item', item.ChartPermissionId == tabAct_id && 'tabs-active']" v-for="(item, index) in tabBars" :key="item.ChartPermissionId" @click="toggleTab(item, index)">
           {{ item.PermissionName }}
           <!-- <view class="active" v-if="item.ChartPermissionId == tabAct_id"></view> -->
@@ -332,12 +332,14 @@ export default {
     //tabs切换事件
     toggleTab(item, index) {
       this.strategyIndex = index;
+      console.log(this.strategyIndex);
       this.tabAct_idTwo = "";
       this.deepCoverFocus = [];
       this.labelListData = [];
       this.tabBarsTow = [];
       if (this.tabAct_id !== item.ChartPermissionId) {
         this.tabAct_id = item.ChartPermissionId;
+        console.log(this.tabAct_id, "this.tabAct_id");
         this.$store.dispatch("statistics", {
           PageType: "Report",
           ChartPermissionId: Number(this.tabAct_id),
@@ -505,7 +507,7 @@ export default {
     },
     /* 初始 */
     initList() {
-      if (this.tabAct_id && this.strategyIndex !== 4 && this.strategyIndex !== 5) {
+      if (this.tabAct_id && this.strategyIndex > 4) {
         this.page_no = 1;
         this.refresh = true;
         this.getIndustryList();
@@ -517,6 +519,7 @@ export default {
     /* 页面加载 */
     loadList(option) {
       app.globalData.isSx = true;
+      this.strategyIndex = option.strategyIndex || "";
       this.tabAct_id = option.tab || "";
       if (option.tabs !== "" && option.tabs) {
         this.strategyIndex = 4;
@@ -525,6 +528,7 @@ export default {
       if (this.tabAct_id == 31) {
         this.strategyIndex = 5;
       }
+
       this.getClassify();
     },
     goSecretDetail(type) {
@@ -667,7 +671,7 @@ export default {
   onShareAppMessage: function (res) {
     return {
       title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "深度研究",
-      path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo,
+      path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo + "&strategyIndex=" + this.strategyIndex,
       success: (res) => {},
       fail: (err) => {},
     };
@@ -789,6 +793,11 @@ export default {
       }
     }
   }
+  .tabs-box {
+    .item {
+      width: 108rpx;
+    }
+  }
 }
 .content-intimate {
   position: fixed;