Feat: 订单流程

This commit is contained in:
LinCyJang
2025-10-19 23:15:06 +08:00
parent 6ffe3216d8
commit 9f529e00b7
9 changed files with 1277 additions and 133 deletions
+21 -3
View File
@@ -7,13 +7,20 @@
</view> -->
<view :class="refundOrder ? 'on' : ''">
<view
v-if="orderInfo.isTickets === 1 && orderInfo._status._type === 2"
v-if="isGroup && orderInfo._status._type === 2"
class="state v12-primary-text v12-font-32 v12-font-bold"
>待使用</view>
<view
v-else-if="orderInfo.isTickets === 1 && orderInfo._status._type === 2"
class="state v12-primary-text v12-font-32 v12-font-bold"
>待核销</view>
<view
v-else
class="state v12-primary-text v12-font-32 v12-font-bold"
>{{ getStatus(orderInfo) }}</view>
<view v-if="isGroup && orderInfo._status._type === 2" class="v12-mt-2 v12-font-24 v12-secondary-dark-text">
您已下单成功请联系商家确认具体的入住时间
</view>
<view
v-if="getStatus(orderInfo)!=='待付款'"
:class="{'fails-bg': orderInfo._status._type === -3}"
@@ -87,7 +94,12 @@
v-if="orderInfo.isTickets === 1 && orderInfo._status._type === 2"
class="code-box flex jc-center ai-center"
>
<view v-if="isGroup && orderInfo.verifyCode" class="v12-primary-text v12-font-28 v12-mb-2">核销码{{ orderInfo.verifyCode }}</view>
<image class="code-img" :src="orderInfo.code"/>
<view class="v12-justify-center v12-align-center v12-mt-2" v-if="isGroup">
<view class="bnt v12-dark-text v12-dark-border cancel v12-mx-1" @click="call(system_store.phone)">商家电话</view>
<view class="bnt v12-dark-text v12-dark-border cancel v12-mx-1" @click="showMerchantWechat">商家微信</view>
</view>
</view>
<template v-else>
<div
@@ -519,7 +531,7 @@
<script>
import passkeyborad from '@/components/yzc-paykeyboard/yzc-paykeyboard'
import OrderGoods from "@/components/OrderGoods";
import {orderDetail, orderDelay, aginConfirm, express, editAddress, orderExpectedArrivalTime} from "@/api/order";
import {orderDetail, orderDelay, aginConfirm, express, editAddress, orderExpectedArrivalTime, groupOrderDetail} from "@/api/order";
import Payment from "@/components/Payment";
import DataFormat from "@/components/DataFormat";
import {copyClipboard} from "@/utils";
@@ -578,6 +590,8 @@ export default {
pageKeyId: Object.freeze('userOrderInfo'),
logistics: {},
isGift: false,
isGroup: false,
key: "",
loading: true
};
},
@@ -588,7 +602,9 @@ export default {
...mapGetters(["userInfo"])
},
onLoad(opts) {
this.isGift = Number(opts.isGift || 0) === 1
this.isGift = Number(opts.isGift || 0) === 1;
this.isGroup = Number(opts.isGroup || 0) === 1;
this.key = opts.key || ''
},
onShow() {
const chooseAddress = uni.getStorageSync('chooseAddress') || {}
@@ -628,6 +644,8 @@ export default {
})
} else {
this.id = this.$yroute.query.id;
this.isGroup = Number(this.$yroute.query.isGroup || 0) === 1;
this.key = this.$yroute.query.key || '';
this.getDetail();
}
},