Browse Source

项目日志:1.12 兑换详情广告位优化

gubai 2 years ago
parent
commit
3d2e728468
2 changed files with 17 additions and 17 deletions
  1. 15 15
      pages/my/prize/exchangeDetail.vue
  2. 2 2
      setting.js

+ 15 - 15
pages/my/prize/exchangeDetail.vue

xqd xqd xqd 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="">
@@ -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
+						}
 					}
 				})
 			},
@@ -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;
@@ -404,7 +404,7 @@
 		.content {
 			width: 690rpx;
 			height: 92rpx;
-			position: absolute;
+			// position: absolute;
 			bottom: 0;
 			margin-top: -9rpx;;
 			@include flexlayout();

+ 2 - 2
setting.js

xqd
@@ -3,8 +3,8 @@
  */
 const IS_DEV = process.env.NODE_ENV === 'development1'
 
-const URL = 'https://t9.9026.com'
-// const URL = 'https://ihg.9026.com'
+// const URL = 'https://t9.9026.com'
+const URL = 'https://ihg.9026.com'
 
 	
 module.exports = {