@@ -5,9 +5,7 @@ | |||||
<!-- 小游戏暂时注释 --> | <!-- 小游戏暂时注释 --> | ||||
<view class='game' bindtap="gotogame" wx-if="{{showIf}}"> | <view class='game' bindtap="gotogame" wx-if="{{showIf}}"> | ||||
<view class='game-entry'> | <view class='game-entry'> | ||||
<image src="{{staticGamedata.imgUrl}}" class='gameimg' mode='widthFix'></image> | |||||
<text>用户专享神秘礼物</text> | |||||
<text>独家福利,抢完即止</text> | |||||
<image src="./../../assets/img/new.png" class='gameimg' mode='widthFix'></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<c-coupons id="lists" bind:myevent="onGetCode" loadingtext="{{loadingtext}}" loading="{{loading}}" /> | <c-coupons id="lists" bind:myevent="onGetCode" loadingtext="{{loadingtext}}" loading="{{loading}}" /> | ||||
@@ -19,57 +19,16 @@ page { | |||||
overflow-x: hidden; | overflow-x: hidden; | ||||
} | } | ||||
.txt { | .txt { | ||||
margin-left: 20rpx; | margin-left: 20rpx; | ||||
} | } | ||||
.game-entry{ | .game-entry{ | ||||
width: 690rpx; | width: 690rpx; | ||||
height: 140rpx; | height: 140rpx; | ||||
margin: 0 auto; | |||||
border-radius: 14rpx; | |||||
box-shadow: 1px 4px 20px #C4C4C4; | |||||
} | |||||
.game { | |||||
position: relative; | |||||
width: 750rpx; | |||||
height: 200rpx; | |||||
margin: 0 auto; | |||||
padding-top: 30rpx; | |||||
box-sizing: border-box; | |||||
margin: 10rpx auto 0; | |||||
} | } | ||||
.gameimg{ | .gameimg{ | ||||
position: absolute; | |||||
right: 25rpx; | |||||
top: -14rpx; | |||||
width: 250rpx; | |||||
} | |||||
.game text { | |||||
display: block; | display: block; | ||||
position: relative; | |||||
} | |||||
.game text:nth-of-type(1) { | |||||
display: inline-block; | |||||
padding-top: 39rpx; | |||||
padding-left: 70rpx; | |||||
font-size: 32rpx; | |||||
color: #333; | |||||
line-height: 36rpx; | |||||
} | |||||
.game text:nth-of-type(2) { | |||||
font-size: 24rpx; | |||||
color: #999; | |||||
line-height: 24rpx; | |||||
padding-left: 70rpx; | |||||
} | |||||
/* .game image { | |||||
position: absolute; | |||||
width: 100%; | width: 100%; | ||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
} */ | |||||
height: 140rpx; | |||||
} |
@@ -545,16 +545,14 @@ Page({ | |||||
} | } | ||||
}; | }; | ||||
that.setData({ | that.setData({ | ||||
extraData: extraDataStr | |||||
extraData: extraDataStr, | |||||
stopFees: res.data, | |||||
timecha: Util.timecha(res.data.exitTime, res.data.entranceTime) | |||||
}); | }); | ||||
that.setData({ | |||||
stopFees: res.data | |||||
}) | |||||
that.setData({ | |||||
timecha: Util.timecha(res.data.exitTime, res.data.entranceTime) | |||||
}) | |||||
console.log(that.data.extraData) | |||||
}) | }) | ||||
.catch(error => { | .catch(error => { | ||||
console.log(error) | |||||
wx.showModal({ | wx.showModal({ | ||||
title: '提示', | title: '提示', | ||||
content: error.message, | content: error.message, | ||||
@@ -564,7 +562,6 @@ Page({ | |||||
stopFees: {} | stopFees: {} | ||||
}) | }) | ||||
}); | }); | ||||
console.log(that.data.extraData) | |||||
}, | }, | ||||
/** | /** | ||||