zhaosm 2 日 前
コミット
e5734a9bcf
2 ファイル変更6 行追加1 行削除
  1. 1 1
      pages/exhibitor/detail.vue
  2. 5 0
      pages/index/index.vue

+ 1 - 1
pages/exhibitor/detail.vue

@@ -79,7 +79,7 @@
 				<u-panel title="展商活动">
 					<activity-recommend recommend-type="detail" :exhibitorId="exhibitorId" />
 				</u-panel>
-				<view class="click-more"><van-button type="primary" @click="navigateTo('/pages/exhibitor/index')">点击查看更多展商信息</van-button></view>
+				<view class="click-more"><van-button type="primary" @click="navigateTo('/pages/index/index?tab=exhibitor')">点击查看更多展商信息</van-button></view>
 				<disclaimer-text></disclaimer-text>
 			</view>
 		</u-scroll-view>

+ 5 - 0
pages/index/index.vue

@@ -37,6 +37,11 @@
 				shareInfo: null
 			}
 		},
+		onLoad(options) {
+			if (options.tab) {
+				this.tabbarActive = options.tab
+			}
+		},
 		created() {
 			
 		},