Browse Source

[首页 用户专享修改]

tags/广东版3.2.1
meo 6 years ago
parent
commit
8d7d0f43fb
4 changed files with 9 additions and 55 deletions
  1. BIN
      assets/img/new.png
  2. +1
    -3
      pages/index/index.wxml
  3. +3
    -44
      pages/index/index.wxss
  4. +5
    -8
      pages/passCar/passCar.js

BIN
assets/img/new.png View File

Before After
Width: 1420  |  Height: 360  |  Size: 256 KiB

+ 1
- 3
pages/index/index.wxml View File

@@ -5,9 +5,7 @@
<!-- 小游戏暂时注释 -->
<view class='game' bindtap="gotogame" wx-if="{{showIf}}">
<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>
<c-coupons id="lists" bind:myevent="onGetCode" loadingtext="{{loadingtext}}" loading="{{loading}}" />


+ 3
- 44
pages/index/index.wxss View File

@@ -19,57 +19,16 @@ page {
overflow-x: hidden;
}


.txt {
margin-left: 20rpx;
}
.game-entry{
width: 690rpx;
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{
position: absolute;
right: 25rpx;
top: -14rpx;
width: 250rpx;
}
.game text {
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%;
left: 0;
right: 0;
top: 0;
bottom: 0;
} */
height: 140rpx;
}

+ 5
- 8
pages/passCar/passCar.js View File

@@ -545,16 +545,14 @@ Page({
}
};
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 => {
console.log(error)
wx.showModal({
title: '提示',
content: error.message,
@@ -564,7 +562,6 @@ Page({
stopFees: {}
})
});
console.log(that.data.extraData)
},
/**


Loading…
Cancel
Save