2025-02-20 03:35:23 +00:00
|
|
|
<script setup>
|
2025-03-04 11:06:01 +00:00
|
|
|
import { orderQuery } from "~/api/goods/index.js";
|
2025-02-20 03:35:23 +00:00
|
|
|
definePageMeta({
|
2025-03-04 11:06:01 +00:00
|
|
|
i18n: "payment.text1",
|
|
|
|
});
|
|
|
|
const router = useRouter();
|
|
|
|
const { t } = useI18n();
|
2025-02-20 03:35:23 +00:00
|
|
|
const route = useRoute();
|
2025-03-04 11:06:01 +00:00
|
|
|
const resData = ref({});
|
|
|
|
const res = await orderQuery({
|
|
|
|
orderNo: route.query.orderNo,
|
|
|
|
});
|
|
|
|
if (res.status === 0) {
|
|
|
|
resData.value = res.data;
|
2025-02-20 03:35:23 +00:00
|
|
|
}
|
2025-03-04 11:06:01 +00:00
|
|
|
const statusLabel = {
|
|
|
|
1: t("payment.text2"),
|
|
|
|
2: t("payment.text3"),
|
|
|
|
3: t("payment.text4"),
|
|
|
|
4: t("payment.text5"),
|
|
|
|
};
|
|
|
|
const goHome = () => {
|
|
|
|
router.push("/");
|
|
|
|
};
|
2025-02-20 03:35:23 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2025-03-04 11:06:01 +00:00
|
|
|
<div
|
|
|
|
class="w-[100vw] h-screen-nav bg-[url('@/static/images/3532@2x.png')] bg-cover grow-1 flex flex-col items-center px-30px"
|
|
|
|
>
|
2025-02-20 03:35:23 +00:00
|
|
|
<div class="flex flex-col items-center mt-150px">
|
2025-03-04 11:06:01 +00:00
|
|
|
<img
|
|
|
|
class="w-119px h-120px mb-36px"
|
|
|
|
src="@/static/images/5554@2x1.png"
|
|
|
|
alt=""
|
|
|
|
/>
|
|
|
|
<div class="text-#000 text-16px mb-25px">
|
|
|
|
{{ statusLabel[resData.status] }}!
|
|
|
|
</div>
|
|
|
|
<div class="text-#999 text-16px">
|
|
|
|
{{ resData.currency }}{{ resData.money }}
|
|
|
|
</div>
|
2025-02-20 03:35:23 +00:00
|
|
|
</div>
|
2025-03-04 11:06:01 +00:00
|
|
|
<!-- <div class="w-full mt-auto mb-40px">
|
2025-02-20 03:35:23 +00:00
|
|
|
<van-button type="primary" block @click="goHome">
|
|
|
|
回到首页
|
|
|
|
</van-button>
|
|
|
|
</div>-->
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2025-03-04 11:06:01 +00:00
|
|
|
<style scoped></style>
|