From db365a5eff31c040c42463df4966bf34a5de6a6d Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 12 三月 2025 15:00:42 +0800 Subject: [PATCH] fix: 二期需求 --- apps/taro/src/subpackages/order/order/InnerPage.vue | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/apps/taro/src/subpackages/order/order/InnerPage.vue b/apps/taro/src/subpackages/order/order/InnerPage.vue index 0bdfd9d..971f795 100644 --- a/apps/taro/src/subpackages/order/order/InnerPage.vue +++ b/apps/taro/src/subpackages/order/order/InnerPage.vue @@ -1,20 +1,38 @@ <template> - <ContentScrollView :paddingH="false"> - <Order /> - </ContentScrollView> + <ProTabs v-model="orderType" name="user-home-tabs" class="user-home-tabs" flexTitle fullHeight> + <ProTabPane title="璇濊垂璁㈠崟" pane-key="1"> + <PhoneOrder @goApplyRefund="goApplyRefund" @goRefundDetail="goRefundDetail" /> + </ProTabPane> + <ProTabPane title="鐢佃垂璁㈠崟" pane-key="2"> + <ElectricOrder @goApplyRefund="goApplyRefund" @goRefundDetail="goRefundDetail" /> + </ProTabPane> + <ProTabPane title="鐕冩皵璁㈠崟" pane-key="3"> + <GasOrder @goApplyRefund="goApplyRefund" @goRefundDetail="goRefundDetail" /> + </ProTabPane> + </ProTabs> </template> <script setup lang="ts"> -import { Order } from '@life-payment/components'; +import { PhoneOrder, ElectricOrder, GasOrder } from '@life-payment/components'; import Taro from '@tarojs/taro'; defineOptions({ name: 'InnerPage', }); -function goPay() { +const orderType = ref('1'); + +function goApplyRefund(id: string) { Taro.navigateTo({ - url: RouterPath.selectPayType, + url: `${RouterPath.orderApplyRefund}?id=${id}`, + // events: { + // submitApplyRefund: function () {}, + // }, + }); +} +function goRefundDetail(orderNo: string) { + Taro.navigateTo({ + url: `${RouterPath.orderRefundResult}?orderNo=${orderNo}`, }); } </script> -- Gitblit v1.9.1