diff --git a/src/pages/canteen/product-detail.vue b/src/pages/canteen/product-detail.vue index 5df0695..c5f2426 100644 --- a/src/pages/canteen/product-detail.vue +++ b/src/pages/canteen/product-detail.vue @@ -4,6 +4,7 @@ import { onLoad, onShow } from "@dcloudio/uni-app" import { isEmpty } from "radash" import { productApi } from "@@/api" import { filePath } from "@@/utils/file" +import { hooks } from "@@/index" const state = reactive({ detailId: null, @@ -38,8 +39,8 @@ const getDetail = async () => { - ¥{{ state.detail.price }} - ¥{{ state.detail.marketPrice }} + ¥{{ hooks.useMoney(state.detail.price) }} + ¥{{ hooks.useMoney(state.detail.marketPrice) }} 已售{{ state.detail.salesCount }} diff --git a/src/pages/pay/payComplete.vue b/src/pages/pay/payComplete.vue index 0921925..0d970d5 100644 --- a/src/pages/pay/payComplete.vue +++ b/src/pages/pay/payComplete.vue @@ -39,7 +39,7 @@ - + 完成 @@ -50,6 +50,7 @@ import { ref } from "vue" import { onShow } from "@dcloudio/uni-app" import { router } from "@@/index" import { usePayStore } from "@/sheep/stores/pay" +import getLaunchParam from "@/sheep/utils/getLaunchParam" const payData = ref<{ id?: string; name?: string; customPrice?: number }>({}) @@ -59,6 +60,6 @@ onShow(() => { }) const goBack = () => { - router.back() + router.jump("/pages/tabbar/my", {}, 2) }