feat:添加店铺订单详情api

This commit is contained in:
2026-06-05 13:21:40 +08:00
parent 620712828e
commit 3d795805e7
4 changed files with 19 additions and 38 deletions
+2 -23
View File
@@ -1,6 +1,6 @@
<template>
<view class="card_order bg24 size34" @click="
utils.go('/pages/order/detail', { id: props.index != 5 ? props.data.id : props.data.orderId, type: props.data.type })
utils.go('/pages/order/detail', { id: props.index != 5 ? props.data.id : props.data.orderId, type: props.data.type, source: props.data.__source })
">
<view class="flex-center ju-between createTime">
<view class="flex-center shrink">
@@ -64,15 +64,9 @@
</view>
</view>
</template>
<script setup lang="ts">
<script setup>
import {
ref,
reactive,
onMounted,
onUnmounted,
getCurrentInstance,
watch,
nextTick,
defineProps,
defineEmits,
} from 'vue';
@@ -80,13 +74,11 @@
fen2yuan,
formatOrderColor,
formatOrderStatus,
handleOrderButtons,
formatAfterSaleStatus,
} from '@/sheep/hooks/useGoods';
import card_order from './card_order.vue';
import card_orderBan from '@/components/card_orderBan/card_orderBan.vue';
import AfterSaleApi from '@/sheep/api/trade/afterSale';
import sheep from '@/sheep/index';
let emit = defineEmits(['downData']);
let { proxy } = getCurrentInstance();
let props = defineProps({
@@ -101,17 +93,6 @@
default: 0,
},
});
let data = reactive({});
watch(
() => props.data,
(val) => {
data = val;
},
{
deep: true,
immediate: true,
},
);
const downData = () => {
emit('downData');
};
@@ -146,8 +127,6 @@
border-radius: 8rpx;
}
.stateText {}
.createTime {
margin-bottom: 32rpx;
}