acdr/acdr-ui/src/modules/mall/order/aftersale/log.vue

40 lines
831 B
Vue
Raw Normal View History

2024-09-05 14:05:15 +08:00
<!-- 售后日志列表 -->
<template>
<s-layout title="售后进度">
<view class="log-box">
<view v-for="(item, index) in state.list" :key="item.id">
<log-item :item="item" :index="index" :data="state.list" />
</view>
</view>
</s-layout>
</template>
<script setup>
2024-09-08 14:01:29 +08:00
import { onLoad } from '@dcloudio/uni-app'
import { reactive } from 'vue'
import logItem from './log-item.vue'
import AfterSaleApi from '@/sheep/api/trade/afterSale'
2024-09-05 14:05:15 +08:00
2024-09-08 14:01:29 +08:00
const state = reactive({
list: [],
})
2024-09-05 14:05:15 +08:00
2024-09-08 14:01:29 +08:00
async function getDetail(id) {
const { data } = await AfterSaleApi.getAfterSaleLogList(id)
state.list = data
}
2024-09-05 14:05:15 +08:00
2024-09-08 14:01:29 +08:00
onLoad((options) => {
state.aftersaleId = options.id
getDetail(options.id)
})
2024-09-05 14:05:15 +08:00
</script>
<style lang="scss" scoped>
2024-09-08 14:01:29 +08:00
.log-box {
padding: 24rpx 24rpx 24rpx 40rpx;
background-color: #fff;
}
2024-09-05 14:05:15 +08:00
</style>