| | |
| | | <template> |
| | | <view class="zf"> |
| | | <view class="zf_time">支付剩余时间 <u-count-down :time="30 * 60 * 60 * 1000" format="HH:mm"></u-count-down></view> |
| | | <view class="zf_time">支付剩余时间 <u-count-down :time="30 * 60 * 1000" format="mm:ss" @finish="fanhui"></u-count-down></view> |
| | | <view class="zf_price">¥{{info.price}}</view> |
| | | <view class="zf_tc">骑行套餐</view> |
| | | <view class="zf_list"> |
| | |
| | | this.getDesc() |
| | | }, |
| | | methods: { |
| | | fanhui() { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, |
| | | async getDesc() { |
| | | let res = await this.$u.api.discountDetail({ id: this.id }) |
| | | if (res.code === 200) { |
| | |
| | | success (res) { |
| | | if (res.errMsg = 'requestPayment:ok') { |
| | | uni.showToast({ title: '充值成功', icon: 'success', duration: 2000 }); |
| | | uni.reLaunch({ |
| | | url: '/pages/index/index' |
| | | }); |
| | | uni.navigateBack({ delta: 1 }); |
| | | } else { |
| | | uni.showToast({ title: '未支付', icon: 'error', duration: 2000 }); |
| | | } |