This commit is contained in:
weiwei committed 2025-05-08 14:58:52 +08:00
1 parent 83a8fe4032
commit 80bda75548
2 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -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<any>({
detailId: null,
@@ -38,8 +39,8 @@ const getDetail = async () => {
<view class="flex-col justify-between card p-y-20rpx p-x-30rpx">
<view class="flex-row items-center justify-between">
<view class="flex-row items-center">
<view class="second-text-46 color-#f63a36!">¥{{ state.detail.price }}</view>
<view class="m-l-20rpx second-text-28 line-through">¥{{ state.detail.marketPrice }}</view>
<view class="second-text-46 color-#f63a36!">¥{{ hooks.useMoney(state.detail.price) }}</view>
<view class="m-l-20rpx second-text-28 line-through">¥{{ hooks.useMoney(state.detail.marketPrice) }}</view>
</view>
<view class="second-text-26">已售{{ state.detail.salesCount }}</view>
</view>
+3 -2
View File
@@ -39,7 +39,7 @@
</view>
</view>
</view>
<view class="p-40rpx fixed bottom-30rpx left-0 right-0 font-bold">
<view v-if="getLaunchParam()" class="p-40rpx fixed bottom-30rpx left-0 right-0 font-bold">
<tm-button :block="true" @click="goBack">完成</tm-button>
</view>
</view>
@@ -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)
}
</script>