소스 검색

展商详情

zhaosm 1 일 전
부모
커밋
a1acc9dc6b

+ 1 - 1
pages/activity/components/activity-recommend.vue

@@ -44,7 +44,7 @@
 				activityList: [],
 				activityListParams: {
 					page: 1,
-					page_size: 4,
+					page_size: 3,
 					exhibitors_id: 0
 				},
 				activityListLoading: false

+ 2 - 2
pages/exhibitor/components/exhibit-recommend.vue

@@ -2,7 +2,7 @@
 	<view class="exhibit-recommend">
 		<view class="exhibit-list">
 			<template v-for="(item, index) in productList">
-				<view v-if="index < limit" class="exhibit-item" hover-class="active" :key="index" @click="onClickExhibit(item)">
+				<view class="exhibit-item" hover-class="active" :key="index" @click="onClickExhibit(item)">
 					<view class="exhibit-image">
 						<image :src="item.pic + '?x-oss-process=image/resize,w_400'" mode="aspectFit"/>
 					</view>
@@ -69,7 +69,7 @@
 						} else {
 							this.productList = res.data.data
 						}
-						if (this.productListParams.page <= res.data.last_page) {
+						if (this.productListParams.page >= res.data.last_page) {
 							this.showExhibitMore = false
 						}
 					}

+ 1 - 1
pages/news/components/news-recommend.vue

@@ -48,7 +48,7 @@
 				newsList: [],
 				newsListParams: {
 					page: 1,
-					page_size: 4,
+					page_size: 3,
 					exhibitors_id: 0
 				},
 				newsListLoading: false

+ 1 - 2
pages/news/index.vue

@@ -7,7 +7,7 @@
 				<van-empty v-if="newsList.length === 0" description="暂无数据" />
 				<view v-else class="news-list">
 					<template v-for="(item, index) in newsList">
-						<news-item :item="item" :key="index" />
+						<news-item :item="item" :key="index" :type="tabActive" />
 					</template>
 				</view>
 				<disclaimer-text></disclaimer-text>
@@ -59,7 +59,6 @@
 			if (options.type) {
 				this.tabActive = options.type
 			}
-			this.getList()
 		},
 		created() {
 		},