From f4d3a468d151ce6ff4ef6b2158c2b13ebae18d43 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 19 三月 2025 18:05:13 +0800
Subject: [PATCH] fix: 三期需求
---
apps/taro/src/subpackages/order/order/InnerPage.vue | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/apps/taro/src/subpackages/order/order/InnerPage.vue b/apps/taro/src/subpackages/order/order/InnerPage.vue
index 0bdfd9d..fbe3cba 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() {
- Taro.navigateTo({
- url: RouterPath.selectPayType,
+const orderType = ref('1');
+
+function goApplyRefund(id: string) {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.orderApplyRefund}?id=${id}`,
+ // events: {
+ // submitApplyRefund: function () {},
+ // },
+ });
+}
+function goRefundDetail(orderNo: string) {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.orderRefundResult}?orderNo=${orderNo}`,
});
}
</script>
--
Gitblit v1.9.1