Преглед изворни кода

feat: 更新订单状态描述,添加新状态并调整展示逻辑

EvilDragon пре 3 месеци
родитељ
комит
f024fc93be

+ 1 - 1
packages/app/src/pages/mine/orders/detail/index.vue

@@ -9,7 +9,7 @@ import dayjs from 'dayjs'
 import { requestToast } from '../../../../core/utils/common'
 
 const id = ref()
-const status = ref({ '0': '待交付', '1': '已完成', '2': '已驳回', '3': '已撤销' })
+const status = ref({ '0': '已报名', '1': '已完成', '2': '未核销', '3': '已取消', '4': '待交付' })
 const payTypes = ref({ 0: '积分支付', 1: '现金支付' })
 const { data, run: setData } = useRequest(() => getPointsOrder(id.value), { initialData: {} })
 const handleSubmit = async () => {

+ 2 - 2
packages/app/src/pages/mine/orders/index.vue

@@ -15,7 +15,7 @@ const userStore = useUserStore()
 const { userInfo } = storeToRefs(userStore)
 const router = useRouter()
 
-const status = ref({ '0': '待交付', '1': '已完成', '2': '已驳回', '3': '已撤销' })
+const status = ref({ '0': '已报名', '1': '已完成', '2': '未核销', '3': '已取消', '4': '待交付' })
 const pageHelperRef = ref<ComponentExposed<typeof PageHelper>>()
 const handleClick = (order: PointsOrder) => {
   router.push(`/pages/mine/orders/detail/index?id=${order.id}`)
@@ -64,7 +64,7 @@ onShow(async () => {
                   </div>
                   <div>
                     <div
-                      v-if="it.gainType === 1 && it.orderStatus === '0'"
+                      v-if="it.gainType === 1 && it.orderStatus === '2'"
                       class="w-[58px] h-[26px] bg-[#020202] rounded-[20px] backdrop-blur-[10px] flex items-center justify-center"
                       @click.stop="router.push(`/pages/mine/orders/code/index?id=${it.id}`)"
                     >