|
@@ -129,7 +129,7 @@ import { checkAuth } from '../../utils/auth';
|
|
|
|
|
|
|
|
const order = ref<OrderInfo | null>(null);
|
|
const order = ref<OrderInfo | null>(null);
|
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
|
-const orderId = ref<number | null>(null);
|
|
|
|
|
|
|
+const orderId = ref<string | null>(null);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取订单状态文本
|
|
* 获取订单状态文本
|
|
@@ -277,7 +277,8 @@ onMounted(() => {
|
|
|
const options = currentPage.options || {};
|
|
const options = currentPage.options || {};
|
|
|
|
|
|
|
|
if (options.orderId) {
|
|
if (options.orderId) {
|
|
|
- orderId.value = parseInt(options.orderId);
|
|
|
|
|
|
|
+ // 直接使用字符串类型的订单ID,避免精度丢失
|
|
|
|
|
+ orderId.value = String(options.orderId);
|
|
|
loadOrderDetail();
|
|
loadOrderDetail();
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -295,8 +296,9 @@ onMounted(() => {
|
|
|
*/
|
|
*/
|
|
|
const applyRefund = () => {
|
|
const applyRefund = () => {
|
|
|
if (!order.value) return;
|
|
if (!order.value) return;
|
|
|
|
|
+ // 确保订单ID以字符串形式传递,避免精度丢失
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: '/pages/refund/refund?orderId=' + order.value.id
|
|
|
|
|
|
|
+ url: '/pages/refund/refund?orderId=' + String(order.value.id)
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|