| xqd
@@ -27,7 +27,7 @@
|
|
|
<!-- 加入会员 -->
|
|
|
<view class="bottomCard">
|
|
|
<!-- 广告图 -->
|
|
|
- <view class="home-banner">
|
|
|
+ <view class="home-banner" v-if="advertis.length != 0 ">
|
|
|
<view class="home-banner-img" v-if="in_page==3 && type == 1"
|
|
|
@click="goOtherPage(jump_type,jump_config)">
|
|
|
<image style="width: 100%; height: 492rpx;border-radius: 12rpx 12rpx 0 0;" :src="advData.img" mode="">
|
| xqd
@@ -144,18 +144,19 @@
|
|
|
this.advertis = res.data.advertises.filter(item => {
|
|
|
return item.in_page == 3
|
|
|
})
|
|
|
- this.advData = this.advertis[0];
|
|
|
- console.log(this.advData.img, '------>this.advData');
|
|
|
- if (this.advertis[0].type == 1) {
|
|
|
- this.in_page = 3
|
|
|
- this.type = 1
|
|
|
- this.jump_type = this.advData.jump_type
|
|
|
- this.jump_config = this.advData.jump_config
|
|
|
- } else if (this.advertis[0].type == 2) {
|
|
|
- this.in_page = 3
|
|
|
- this.type = 2
|
|
|
- this.videoCoverImg = this.advertis[0].video_cover
|
|
|
- this.videoSrc = this.advertis[0].video
|
|
|
+ if(this.advertis.length != 0 ){
|
|
|
+ this.advData = this.advertis[0];
|
|
|
+ if (this.advertis[0].type == 1) {
|
|
|
+ this.in_page = 3
|
|
|
+ this.type = 1
|
|
|
+ this.jump_type = this.advData.jump_type
|
|
|
+ this.jump_config = this.advData.jump_config
|
|
|
+ } else if (this.advertis[0].type == 2) {
|
|
|
+ this.in_page = 3
|
|
|
+ this.type = 2
|
|
|
+ this.videoCoverImg = this.advertis[0].video_cover
|
|
|
+ this.videoSrc = this.advertis[0].video
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
| xqd
@@ -387,7 +388,6 @@
|
|
|
|
|
|
.bottomCard {
|
|
|
width: 690rpx;
|
|
|
- height: 584rpx;
|
|
|
background: #FFFFFF;
|
|
|
box-shadow: 0px 8rpx 16rpx 0px rgba(220, 222, 229, 0.71);
|
|
|
border-radius: 20rpx;
|
| xqd
@@ -404,7 +404,7 @@
|
|
|
.content {
|
|
|
width: 690rpx;
|
|
|
height: 92rpx;
|
|
|
- position: absolute;
|
|
|
+ // position: absolute;
|
|
|
bottom: 0;
|
|
|
margin-top: -9rpx;;
|
|
|
@include flexlayout();
|