xiaokuang hai 3 meses
pai
achega
43dddc69ae
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      pages/index/home.vue

+ 9 - 3
pages/index/home.vue

@@ -49,7 +49,7 @@
 				</u-panel>
 			</view>
 			<view class="panel-group logo-group">
-				<u-panel title="战略合作方" m-title="*排名不分先后">
+				<u-panel title="战略合作方" m-title="*排名不分先后" v-if="!part1_ishide">
 					<u-swiper :items="part1" useComponentName="logoSwiper" image-mode="aspectFit" key="logoSwiper" :autoplay="false" :height="getPartHeight(part1)">
 						<template v-slot="{ scope }">
 							<view class="partners">
@@ -62,7 +62,7 @@
 						</template>
 					</u-swiper>
 				</u-panel>
-				 <u-panel title="推荐展商" link="/pages/exhibitor/index" m-title="*排名不分先后">
+				 <u-panel title="推荐展商" link="/pages/exhibitor/index" m-title="*排名不分先后" v-if="!part3_ishide">
           <u-swiper :items="part3" useComponentName="logoSwiper" image-mode="aspectFit" key="logoSwiper" :autoplay="false" :height="getPartHeight(part3)">
             <template v-slot="{ scope }">
               <view class="partners">
@@ -75,7 +75,7 @@
             </template>
           </u-swiper>
         </u-panel>
-				<u-panel title="合作媒体" link="https://www.productronicachina.com.cn/partners" m-title="*排名不分先后">
+				<u-panel title="合作媒体" link="https://www.productronicachina.com.cn/partners" m-title="*排名不分先后" v-if="!part2_ishide">
 					<u-swiper :items="part2" key="logoSwiper2" image-mode="aspectFit" useComponentName="logoSwiper" :autoplay="false" :height="getPartHeight(part2)">
 						<template v-slot="{ scope }">
 							<view class="partners">
@@ -194,6 +194,9 @@
 				part1: [],
 				part2: [],
 				part3: [],
+				part1_ishide: false,
+				part2_ishide: false,
+				part3_ishide: false,
 				adInfo: {
 					ad_file: ''
 				},
@@ -265,6 +268,9 @@
 					this.part1 = res.data.module4.part1.logo
 					this.part2 = res.data.module4.part2.logo
 					this.part3 = res.data.module4.part3.logo
+					this.part1_ishide = res.data.module4.part1.is_hide
+					this.part2_ishide = res.data.module4.part2.is_hide
+					this.part3_ishide = res.data.module4.part3.is_hide
 				})
 			},
 			onLogoClick(item) {