| @@ -7,26 +7,30 @@ Page({ | |||||
| couponId: null, | couponId: null, | ||||
| orderId: '' | orderId: '' | ||||
| }, | }, | ||||
| onLoad(e) { | |||||
| console.log(e) | |||||
| onLoad(options) { | |||||
| console.log("00000000000000----------"); | |||||
| console.log(options); | |||||
| let that = this; | |||||
| wx.showLoading({ | wx.showLoading({ | ||||
| title: '加载中...', | |||||
| }) | |||||
| if (e.flag == 'pay') { | |||||
| title: "加载中..." | |||||
| }); | |||||
| if (options.flag == "pay") { | |||||
| this.orderFunc(); | this.orderFunc(); | ||||
| } else { | } else { | ||||
| Http.get({ | Http.get({ | ||||
| url: config.api.couponDetail, | url: config.api.couponDetail, | ||||
| data: { | data: { | ||||
| id: e.id | |||||
| id: options.id | |||||
| } | } | ||||
| }).then(res => { | }).then(res => { | ||||
| console.log(res); | |||||
| wx.hideLoading(); | wx.hideLoading(); | ||||
| this.setData({ | |||||
| data: res, | |||||
| couponId: e.id | |||||
| }) | |||||
| }) | |||||
| that.setData({ | |||||
| data: res.data, | |||||
| couponId: options.id | |||||
| }); | |||||
| }); | |||||
| } | } | ||||
| }, | }, | ||||
| /** | /** | ||||
| @@ -14,6 +14,8 @@ | |||||
| <text>¥{{data.priceStr}}</text> | <text>¥{{data.priceStr}}</text> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <!-- 未解决 商场的名称 --> | |||||
| <view class='posi'> | <view class='posi'> | ||||
| <view class='posi_logo'> | <view class='posi_logo'> | ||||
| <view> | <view> | ||||
| @@ -6,6 +6,7 @@ | |||||
| position: relative; | position: relative; | ||||
| display: flex; | display: flex; | ||||
| flex-direction: column; | flex-direction: column; | ||||
| overflow: hidden; | |||||
| } | } | ||||
| .coupons-body{ | .coupons-body{ | ||||
| flex: 1; | flex: 1; | ||||
| @@ -1,5 +1,5 @@ | |||||
| //index.js | //index.js | ||||
| const util = require('../../utils/util'); | |||||
| const util = require('../../../utils/util'); | |||||
| Page({ | Page({ | ||||
| @@ -15,11 +15,10 @@ | |||||
| <text>{{item.subTitle}}</text> | <text>{{item.subTitle}}</text> | ||||
| </view> | </view> | ||||
| <view> | <view> | ||||
| <text>有效期至:</text>{{item.expiredTime}}</view> | |||||
| <view> | |||||
| <text></text> | |||||
| <text>立即使用</text> | |||||
| <text class="txt1">有效期至:</text> | |||||
| <text class="txt2">{{item.expiredTime}}</text> | |||||
| </view> | </view> | ||||
| <view class="btns">立即使用</view> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -29,14 +29,14 @@ | |||||
| } | } | ||||
| .logo { | .logo { | ||||
| width: 248rpx; | |||||
| width: 348rpx; | |||||
| height: 184rpx; | height: 184rpx; | ||||
| border-radius: 30rpx; | |||||
| } | } | ||||
| .logo image { | .logo image { | ||||
| width: 100%; | width: 100%; | ||||
| height: 100%; | height: 100%; | ||||
| border-radius: 15rpx; | |||||
| } | } | ||||
| .info view:nth-child(1) { | .info view:nth-child(1) { | ||||
| @@ -70,14 +70,24 @@ | |||||
| justify-content: space-between; | justify-content: space-between; | ||||
| } | } | ||||
| .info view:nth-child(3) text:nth-child(2) { | |||||
| width: 170rpx; | |||||
| height: 50rpx; | |||||
| color: #fff; | |||||
| line-height: 50rpx; | |||||
| .btns{ | |||||
| width: 200rpx; | |||||
| height: 60rpx; | |||||
| line-height: 60rpx; | |||||
| text-align: center; | text-align: center; | ||||
| background: #00c0ff; | |||||
| border-radius: 10px; | |||||
| font-size: 28rpx; | |||||
| margin-top: 40rpx; | |||||
| background: #00C0FF; | |||||
| color: #fff; | |||||
| float: right; | |||||
| border-radius:15rpx; | |||||
| font-size: 30rpx; | |||||
| } | |||||
| .txt1{ | |||||
| font-size: 22rpx; | |||||
| color: #999; | |||||
| } | |||||
| .txt2{ | |||||
| font-size: 22rpx; | |||||
| color: red; | |||||
| } | } | ||||
| @@ -1,8 +1,10 @@ | |||||
| <view class="index-position"> | |||||
| <navigator url="/pages/market/index" > | |||||
| <text class="iconfont icon-dingweib"></text> {{market.name}} <text class="iconfont icon-choose"></text> | |||||
| </navigator> | |||||
| </view> | |||||
| <c-banner imgUrls="{{imgUrls}}" /> | |||||
| <c-rushToBuy /> | |||||
| <c-coupons /> | |||||
| <view class="container"> | |||||
| <view class="index-position"> | |||||
| <navigator url="/pages/market/index"> | |||||
| <text class="iconfont icon-dingweib txt"></text> {{market.name}} <text class="iconfont icon-choose"></text> | |||||
| </navigator> | |||||
| </view> | |||||
| <c-banner imgUrls="{{imgUrls}}" /> | |||||
| <c-rushToBuy /> | |||||
| <c-coupons /> | |||||
| </view> | |||||
| @@ -1,14 +1,21 @@ | |||||
| .index-position { | .index-position { | ||||
| background: rgba(0, 0, 0, 0.5); | |||||
| height: 88rpx; | |||||
| position: absolute; | |||||
| top: 0; | |||||
| width: 100%; | |||||
| font-family: PingFangSC-Semibold; | |||||
| font-size: 30rpx; | |||||
| color: #FFFFFF; | |||||
| letter-spacing: 0.75rpx; | |||||
| z-index: 9; | |||||
| line-height: 88rpx; | |||||
| padding: 0 30rpx; | |||||
| background: rgba(0, 0, 0, 0.5); | |||||
| height: 88rpx; | |||||
| position: absolute; | |||||
| top: 0; | |||||
| width: 100%; | |||||
| font-family: PingFangSC-Semibold; | |||||
| font-size: 30rpx; | |||||
| color: #ffffff; | |||||
| letter-spacing: 0.75rpx; | |||||
| z-index: 9; | |||||
| line-height: 88rpx; | |||||
| overflow: hidden; | |||||
| } | |||||
| page { | |||||
| width: 100%; | |||||
| overflow-x: hidden; | |||||
| } | |||||
| .txt{ | |||||
| margin-left: 20rpx; | |||||
| } | } | ||||
| @@ -50,7 +50,7 @@ | |||||
| .user-btns .user-btn>view { | .user-btns .user-btn>view { | ||||
| flex: 1; | flex: 1; | ||||
| padding: 0 32px; | |||||
| padding: 0 10px 0 32rpx; | |||||
| } | } | ||||
| .user-btns .user-btn>view:last-child { | .user-btns .user-btn>view:last-child { | ||||
| @@ -61,7 +61,7 @@ | |||||
| .user-btns .user-btn>view:last-child .iconfont { | .user-btns .user-btn>view:last-child .iconfont { | ||||
| color: #A8A8A8; | color: #A8A8A8; | ||||
| font-size: 75rpx; | |||||
| font-size: 44rpx; | |||||
| } | } | ||||
| .user-out-btn { | .user-out-btn { | ||||