Showing
3 changed files
with
9 additions
and
17 deletions
This diff is collapsed. Click to expand it.
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-12-20 14:11:11 | 2 | * @Date: 2023-12-20 14:11:11 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-27 18:21:06 | 4 | + * @LastEditTime: 2023-12-28 13:40:59 |
| 5 | * @FilePath: /meihuaApp/src/components/payCard.vue | 5 | * @FilePath: /meihuaApp/src/components/payCard.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -78,8 +78,6 @@ watch( | ... | @@ -78,8 +78,6 @@ watch( |
| 78 | id.value = props.data.id; | 78 | id.value = props.data.id; |
| 79 | price.value = props.data.price; | 79 | price.value = props.data.price; |
| 80 | remain_time.value = props.data.remain_time; | 80 | remain_time.value = props.data.remain_time; |
| 81 | - } else { | ||
| 82 | - | ||
| 83 | } | 81 | } |
| 84 | } | 82 | } |
| 85 | ) | 83 | ) |
| ... | @@ -149,7 +147,7 @@ const goToPay = async () => { | ... | @@ -149,7 +147,7 @@ const goToPay = async () => { |
| 149 | // if (current_page === 'pages/my/index') { // 我的页面打开 | 147 | // if (current_page === 'pages/my/index') { // 我的页面打开 |
| 150 | // // 刷新当前页面 | 148 | // // 刷新当前页面 |
| 151 | // Taro.reLaunch({ | 149 | // Taro.reLaunch({ |
| 152 | - // url: '/pages/my/index?tab_index=1' | 150 | + // url: '/pages/my/index?tab_index=5' |
| 153 | // }); | 151 | // }); |
| 154 | // } | 152 | // } |
| 155 | // if (current_page === 'pages/detail/index') { // 订房确认页打开 | 153 | // if (current_page === 'pages/detail/index') { // 订房确认页打开 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-12-13 11:13:13 | 2 | * @Date: 2023-12-13 11:13:13 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-27 19:45:07 | 4 | + * @LastEditTime: 2023-12-28 13:40:29 |
| 5 | * @FilePath: /meihuaApp/src/pages/my/index.vue | 5 | * @FilePath: /meihuaApp/src/pages/my/index.vue |
| 6 | * @Description: 我的页面 | 6 | * @Description: 我的页面 |
| 7 | --> | 7 | --> |
| ... | @@ -72,17 +72,11 @@ onMounted(async () => { | ... | @@ -72,17 +72,11 @@ onMounted(async () => { |
| 72 | } | 72 | } |
| 73 | }); | 73 | }); |
| 74 | 74 | ||
| 75 | -const onPay = ({ id, remain_time }) => { | 75 | +const onPay = ({ id, remain_time, price }) => { // 发送订单支付信息到支付组件 |
| 76 | - console.warn(id); | 76 | + show_pay.value = true; // 打开支付组件 |
| 77 | - // Taro.showToast({ | 77 | + payData.value.id = id; // ID |
| 78 | - // title: '支付已超时', | 78 | + payData.value.price = price; // 价格 |
| 79 | - // icon: 'error', | 79 | + payData.value.remain_time = remain_time; // 剩余时间 |
| 80 | - // duration: 2000 | ||
| 81 | - // }); | ||
| 82 | - show_pay.value = true; | ||
| 83 | - payData.value.id = '123'; | ||
| 84 | - payData.value.price = 1200; | ||
| 85 | - payData.value.remain_time = remain_time; | ||
| 86 | } | 80 | } |
| 87 | 81 | ||
| 88 | const onPayClose = () => { | 82 | const onPayClose = () => { |
| ... | @@ -156,7 +150,7 @@ export default { | ... | @@ -156,7 +150,7 @@ export default { |
| 156 | this.indexCoverHeight = windowHeight - navHeight - avatarHeight - titleHeight - 50; | 150 | this.indexCoverHeight = windowHeight - navHeight - avatarHeight - titleHeight - 50; |
| 157 | if (this.$refs.refScrollView) { | 151 | if (this.$refs.refScrollView) { |
| 158 | Taro.hideLoading(); | 152 | Taro.hideLoading(); |
| 159 | - console.warn('加载完成'); | 153 | + // console.warn('加载完成'); |
| 160 | } | 154 | } |
| 161 | }); | 155 | }); |
| 162 | // 默认勾选栏目 | 156 | // 默认勾选栏目 | ... | ... |
-
Please register or login to post a comment