|
@ -1,6 +1,6 @@ |
|
|
<script setup> |
|
|
<script setup> |
|
|
import { onLoad } from '@dcloudio/uni-app'; |
|
|
import { onLoad } from '@dcloudio/uni-app'; |
|
|
import { reactive, ref } from "vue"; |
|
|
|
|
|
|
|
|
import { reactive, ref, computed } from "vue"; |
|
|
import textLine from "../components/detail/text_line.vue"; |
|
|
import textLine from "../components/detail/text_line.vue"; |
|
|
import detailGoods from "../components/detail/goods.vue"; |
|
|
import detailGoods from "../components/detail/goods.vue"; |
|
|
import detailVerify from "../components/detail/verify.vue"; |
|
|
import detailVerify from "../components/detail/verify.vue"; |
|
@ -11,12 +11,10 @@ import { get_zh_day } from "@/utils"; |
|
|
const orderInfo = ref({}); |
|
|
const orderInfo = ref({}); |
|
|
// order_type 0场地 1/2次卡 |
|
|
// order_type 0场地 1/2次卡 |
|
|
onLoad(options => { |
|
|
onLoad(options => { |
|
|
|
|
|
|
|
|
orderGet({ |
|
|
orderGet({ |
|
|
data: { |
|
|
data: { |
|
|
brand_id: options?.brand_id ?? '', |
|
|
brand_id: options?.brand_id ?? '', |
|
|
order_no: options?.order_no ?? '', |
|
|
order_no: options?.order_no ?? '', |
|
|
from_platform: 'weixin' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.then(res=>{ |
|
|
.then(res=>{ |
|
@ -49,15 +47,33 @@ function zh_selectedSpacs(specsArr){ |
|
|
return specsArr.join('+') || ''; |
|
|
return specsArr.join('+') || ''; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const orderStatusTxt = computed(() => { |
|
|
|
|
|
return ZH_status(orderInfo.value); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 订单状态 |
|
|
|
|
|
function ZH_status(e){ |
|
|
|
|
|
if(e?.pay_status === 3&&e?.is_active_release)return '已失效*'; |
|
|
|
|
|
return e.pay_status_text ? e.pay_status_text : order_zh_status(e?.pay_status); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 预约,场次/场时订单状态 |
|
|
|
|
|
function order_zh_status(status){ |
|
|
|
|
|
if(status == undefined || status == '' || status == null)return '-' |
|
|
|
|
|
if(status == -1)return '已失效'; |
|
|
|
|
|
if(status == 8)return '使用中'; // 20210521 新增状态 |
|
|
|
|
|
return ['未支付','待使用','已使用','已失效','已退款'][status] || ''; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<view class="order-detail"> |
|
|
|
|
|
|
|
|
<view class="order-detail" v-if="orderInfo?.order_no"> |
|
|
<view class="od-box od-header"> |
|
|
<view class="od-box od-header"> |
|
|
<view class="oh-stadium"> |
|
|
<view class="oh-stadium"> |
|
|
<image class="os-logo" mode="aspectFit" :src="orderInfo?.stadium_logo ?? ''"></image> |
|
|
<image class="os-logo" mode="aspectFit" :src="orderInfo?.stadium_logo ?? ''"></image> |
|
|
<view class="os-name">{{ orderInfo?.stadium_name ?? '-' }}</view> |
|
|
<view class="os-name">{{ orderInfo?.stadium_name ?? '-' }}</view> |
|
|
<view class="os-status">已核销</view> |
|
|
|
|
|
|
|
|
<view class="os-status">{{ orderStatusTxt }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="oh-line">订单编号:{{ orderInfo?.order_no ?? '-' }}</view> |
|
|
<view class="oh-line">订单编号:{{ orderInfo?.order_no ?? '-' }}</view> |
|
|
<view class="oh-line">创建时间:{{ orderInfo?.success_time ?? '-' }}</view> |
|
|
<view class="oh-line">创建时间:{{ orderInfo?.success_time ?? '-' }}</view> |
|
@ -95,7 +111,7 @@ function zh_selectedSpacs(specsArr){ |
|
|
</template> |
|
|
</template> |
|
|
</venue-info-async> |
|
|
</venue-info-async> |
|
|
</view> |
|
|
</view> |
|
|
<view class="od-box od-code" v-if="orderInfo.verify_qrcode"> |
|
|
|
|
|
|
|
|
<view class="od-box od-code" v-if="orderInfo.order_type === 0 && (orderInfo.pay_status==1 || orderInfo.pay_status==8)"> |
|
|
<!-- 二维码 --> |
|
|
<!-- 二维码 --> |
|
|
<image |
|
|
<image |
|
|
mode="aspectFit" |
|
|
mode="aspectFit" |
|
@ -135,9 +151,12 @@ function zh_selectedSpacs(specsArr){ |
|
|
</view> |
|
|
</view> |
|
|
<view class="od-box"> |
|
|
<view class="od-box"> |
|
|
<!-- 抖音商品信息 --> |
|
|
<!-- 抖音商品信息 --> |
|
|
<detail-goods></detail-goods> |
|
|
|
|
|
|
|
|
<detail-goods |
|
|
|
|
|
:dyOrder="orderInfo?.extension?.douyin_toolkit_info" |
|
|
|
|
|
:imgUrl="orderInfo?.image" |
|
|
|
|
|
></detail-goods> |
|
|
</view> |
|
|
</view> |
|
|
<view class="od-fixed"> |
|
|
|
|
|
|
|
|
<view class="od-fixed" v-if="orderInfo.pay_status == 1&&orderInfo.is_refundable"> |
|
|
<view class="of-refund">申请退款</view> |
|
|
<view class="of-refund">申请退款</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|