Browse Source

Merge branch 'zhaosm' of http://120.26.79.179/luxf/mp_exhibitor_miniprog into zhaosm

xiaokuang 2 days ago
parent
commit
8191caf36c
4 changed files with 8 additions and 10 deletions
  1. 1 1
      pages/exhibitor/detail.vue
  2. 0 4
      pages/exhibitor/exhibit.vue
  3. 2 5
      pages/exhibitor/index.vue
  4. 5 0
      pages/index/index.vue

+ 1 - 1
pages/exhibitor/detail.vue

@@ -79,7 +79,7 @@
 				<u-panel title="展商活动">
 				<u-panel title="展商活动">
 					<activity-recommend recommend-type="detail" :exhibitorId="exhibitorId" />
 					<activity-recommend recommend-type="detail" :exhibitorId="exhibitorId" />
 				</u-panel>
 				</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>
 				<disclaimer-text></disclaimer-text>
 			</view>
 			</view>
 		</u-scroll-view>
 		</u-scroll-view>

+ 0 - 4
pages/exhibitor/exhibit.vue

@@ -132,10 +132,6 @@
 				this.getList()
 				this.getList()
 			},
 			},
 			getList() {
 			getList() {
-				if (this.exhibitListLoading === true) {
-					return
-				}
-				this.exhibitListLoading = true
 				exhibitorsProductList(this.exhibitParams).then(res => {
 				exhibitorsProductList(this.exhibitParams).then(res => {
 					if (res.data.data) {
 					if (res.data.data) {
 						if (this.exhibitParams.page > 1) {
 						if (this.exhibitParams.page > 1) {

+ 2 - 5
pages/exhibitor/index.vue

@@ -24,7 +24,8 @@
 				<van-empty v-if="exhibitorList.length === 0" description="暂无数据" />
 				<van-empty v-if="exhibitorList.length === 0" description="暂无数据" />
 				<view v-else class="exhibitor-list">
 				<view v-else class="exhibitor-list">
 					<template v-for="(item, index) in exhibitorList">
 					<template v-for="(item, index) in exhibitorList">
-            <exhibitor-item :item="item" :key="index" :pollShow="pollShow.exhibitors_poll_show" @share="(e) => $emit('share', e)" @updateItemValue="updateItemValue()" />					</template>
+						<exhibitor-item :item="item" :key="index" :pollShow="pollShow.exhibitors_poll_show" @share="(e) => $emit('share', e)" @updateItemValue="updateItemValue()" />					
+					</template>
 				</view>
 				</view>
 				<disclaimer-text></disclaimer-text>
 				<disclaimer-text></disclaimer-text>
 			</view>
 			</view>
@@ -141,10 +142,6 @@
 				this.getExhibitorsList()
 				this.getExhibitorsList()
 			},
 			},
 			getExhibitorsList() {
 			getExhibitorsList() {
-				if (this.exhibitorListLoading === true) {
-					return
-				}
-				this.exhibitorListLoading = true
 				exhibitorsList(this.exhibitorsParams).then(res => {
 				exhibitorsList(this.exhibitorsParams).then(res => {
 					if (res.data.data) {
 					if (res.data.data) {
 						if (this.exhibitorsParams.page > 1) {
 						if (this.exhibitorsParams.page > 1) {

+ 5 - 0
pages/index/index.vue

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