优化添加组件及页面

This commit is contained in:
wangxiaowei
2025-09-01 17:28:32 +08:00
parent 6ac45bef6b
commit d05eeebdb1
18 changed files with 695 additions and 95 deletions

View File

@ -0,0 +1,47 @@
<route lang="jsonc" type="page">
{
"layout": "default",
"style": {
"navigationStyle": "custom"
}
}
</route>
<template>
<view class="">
<view>
<navbar :title="title" custom-class='!bg-[#F6F7F8]'></navbar>
</view>
<view class="text-[#909399] text-26rpx leading-36rpx mx-102rpx mb-40rpx">
<text class="" v-if="orderType === OrderStatus.ToUse">请在2025.12.31()前使用</text>
<text class="" v-if="orderType === OrderStatus.Finished">感谢购买期待再次光临</text>
<text class="" v-if="orderType === OrderStatus.AfterSaleApply">请耐心等待我们会尽快处理您的请求</text>
</view>
<view class="mx-30rpx">
<combo :type="'GroupBuying'" :order-type="orderType"></combo>
</view>
</view>
</template>
<script lang="ts" setup>
import Combo from '@/components/order/Combo.vue'
import { OrderStatus, OrderStatusText } from '@/utils/order'
const title = ref<string>('')
const type = ref<string>('') // 订单类型:团购、抖音等
const orderType = ref<string>('') // 订单状态:待使用、退款等
onLoad((args) => {
title.value = OrderStatusText[args.orderType]
type.value = args.type
orderType.value = args.orderType
})
</script>
<style lang="scss" scoped>
page {
background-color: $cz-page-background;
}
</style>