1
MrShi
2025-03-18 64bda9e8889704e19724eeec1811b695839a7ae5
bicycle/pages/paymentPage/paymentPage.vue
@@ -1,6 +1,6 @@
<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">
@@ -34,6 +34,9 @@
         this.getDesc()
      },
      methods: {
         fanhui() {
            uni.navigateBack({ delta: 1 });
         },
         async getDesc() {
            let res = await this.$u.api.discountDetail({ id: this.id })
            if (res.code === 200) {
@@ -52,9 +55,7 @@
                  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 });
                     }