xiaokuang há 4 meses atrás
pai
commit
2462e77c1b
2 ficheiros alterados com 8 adições e 3 exclusões
  1. 4 2
      pages/index/home.vue
  2. 4 1
      pages/video/index.vue

+ 4 - 2
pages/index/home.vue

@@ -63,12 +63,12 @@
 					</u-swiper>
 				</u-panel>
 				 <u-panel title="推荐展商" link="/pages/exhibitor/index">
-          <u-swiper :items="exhibitorList" useComponentName="logoSwiper" image-mode="aspectFit" key="logoSwiper" :autoplay="false" :height="getPartHeight(exhibitorList)">
+          <u-swiper :items="part3" useComponentName="logoSwiper" image-mode="aspectFit" key="logoSwiper" :autoplay="false" :height="getPartHeight(part3)">
             <template v-slot="{ scope }">
               <view class="partners">
                 <template v-for="(item, index) in scope">
                   <view class="partner" :key="index" @tap="onLogoClick(item)">
-                    <image mode="aspectFit" :src="item.logo" />
+                    <image mode="aspectFit" :src="item.url" />
                   </view>
                 </template>
               </view>
@@ -259,6 +259,8 @@
 					this.albumPics = res.data.module3.image
 					this.part1 = res.data.module4.part1.logo
 					this.part2 = res.data.module4.part2.logo
+					this.part3 = res.data.module4.part3.logo
+					console.log(res.data);
 				})
 			},
       getExhibitorsList() {

+ 4 - 1
pages/video/index.vue

@@ -11,9 +11,12 @@
 								<view class="iconfont icon-playcircle"></view>
 							</view>
 						</view>
-						<view class="video-title">
+						<view class="video-title" v-if="item.title">
 							{{item.title}}
 						</view>
+						<view class="video-title" v-else>
+							视频标题
+						</view>
 					</view>
 				</view>
 				<van-overlay :show="showOverlay" @tap="onClickHideOverlay">