Files
pj_h5_cloud/src/pages/refund/history.vue
T
2024-11-18 17:39:39 +08:00

54 lines
1.4 KiB
Vue

<script setup lang="ts">
import { ref, reactive } from "vue";
import { onLoad, onShow } from "@dcloudio/uni-app";
import { isEmpty } from "radash"
import { hooks } from "@@/index"
import { refundApi } from "@@/api"
const data = {
}
const state = reactive<any>({
detailId: null,
historyList: []
})
onLoad((options: any) => {
if (!isEmpty(options.id)) {
state.detailId = options.id
}
});
onShow(() => {
getHistory()
})
const getHistory = async () => {
if (isEmpty(state.detailId)) return
const _pa = { id: state.detailId };
const { data } = await refundApi.history(_pa)
state.historyList = data
}
</script>
<template>
<crud-layout mainIsScroll title="售后进度" bg="/static/page/blue-bg.png">
<view class="h-30rpx" />
<view class="flex card p-30rpx m-b-20rpx" v-for="(v, i) in state.historyList" :key="i">
<view :class="[v.afterStatus == 62 ? 'bg-red' : 'bg-green']" class="m-t-10rpx size-12rpx rounded-full" />
<view class="m-l-15rpx">
<view class="sub-text-28">
<view>{{ v.content }}</view>
</view>
<view class="m-t-10rpx second-text-26">
{{ hooks.useTime(v.updateTime, "") }}
</view>
</view>
</view>
<view class="h-30rpx" />
</crud-layout>
</template>
<style lang="scss" scoped></style>