|
@@ -4,7 +4,7 @@
|
|
<view class="box defaultBgc">
|
|
<view class="box defaultBgc">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<view>
|
|
<view>
|
|
- <SwiperAd :list="swiperAdList" imgUrlKey="img" :strType="false" @click="handleToDetails"></SwiperAd>
|
|
|
|
|
|
+ <SwiperAd v-if="swiperAdList.length" :list="swiperAdList" imgUrlKey="img" :strType="false" @click="handleToDetails"></SwiperAd>
|
|
<!-- 五宫格菜单 -->
|
|
<!-- 五宫格菜单 -->
|
|
<view class="white-bgc ss-p-t-10">
|
|
<view class="white-bgc ss-p-t-10">
|
|
<uni-grid :column="5" @change="handleGrid" :showBorder="false">
|
|
<uni-grid :column="5" @change="handleGrid" :showBorder="false">
|
|
@@ -39,7 +39,9 @@
|
|
<uni-load-more :status="more" />
|
|
<uni-load-more :status="more" />
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
- <AdvertisePop></AdvertisePop>
|
|
|
|
|
|
+
|
|
|
|
+ <AdvertisePop v-if="showAdvertisePop" />
|
|
|
|
+
|
|
<uni-popup ref="inputDialog" type="dialog">
|
|
<uni-popup ref="inputDialog" type="dialog">
|
|
<view class="shareQrCodePopupContent">
|
|
<view class="shareQrCodePopupContent">
|
|
<view class="ss-m-b-10">请前往网页版门墩儿查看</view>
|
|
<view class="ss-m-b-10">请前往网页版门墩儿查看</view>
|
|
@@ -97,10 +99,13 @@ const inputDialog = ref()
|
|
const more = ref('more')
|
|
const more = ref('more')
|
|
|
|
|
|
// 获取轮播图
|
|
// 获取轮播图
|
|
|
|
+const showAdvertisePop = ref(false)
|
|
const swiperAdList = ref([])
|
|
const swiperAdList = ref([])
|
|
const getSystemWebContent = async () => {
|
|
const getSystemWebContent = async () => {
|
|
const { data } = await getWebContent()
|
|
const { data } = await getWebContent()
|
|
swiperAdList.value = data.appHomeCarousel || []
|
|
swiperAdList.value = data.appHomeCarousel || []
|
|
|
|
+ // 是否展示弹窗广告
|
|
|
|
+ showAdvertisePop.value = data && data.appAdvertisement && data.appAdvertisement.length ? true : false
|
|
}
|
|
}
|
|
getSystemWebContent()
|
|
getSystemWebContent()
|
|
|
|
|