Ver código fonte

展商详情

zhaosm 2 dias atrás
pai
commit
e5734a9bcf
2 arquivos alterados com 6 adições e 1 exclusões
  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() {
 			
 		},