|
@ -10,6 +10,7 @@ import venueInfoAsync from "@/subpackage/groupon/components/venue_info.vue"; |
|
|
import { orderGet, cancelCheck, orderCancel, getCreateOrderProxyData } from "../api"; |
|
|
import { orderGet, cancelCheck, orderCancel, getCreateOrderProxyData } from "../api"; |
|
|
import { get_zh_day } from "@/utils"; |
|
|
import { get_zh_day } from "@/utils"; |
|
|
import { showLoad, hideLoad, showNone } from "@/utils/polish"; |
|
|
import { showLoad, hideLoad, showNone } from "@/utils/polish"; |
|
|
|
|
|
import { previewBase64Image } from "@/utils"; |
|
|
const orderInfo = ref({}); |
|
|
const orderInfo = ref({}); |
|
|
const cancelModalRef = ref(null); |
|
|
const cancelModalRef = ref(null); |
|
|
// order_type 0场地 1/2次卡 |
|
|
// order_type 0场地 1/2次卡 |
|
@ -30,7 +31,7 @@ function getOrderInfo({ brand_id, order_no }){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function previewImg(img){ |
|
|
function previewImg(img){ |
|
|
uni.previewImage({ urls: [ img ] }); |
|
|
|
|
|
|
|
|
previewBase64Image(img) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function phoneClick(){ |
|
|
function phoneClick(){ |
|
@ -214,6 +215,17 @@ function imError(e){ |
|
|
></detail-verify> |
|
|
></detail-verify> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="od-box od-code" v-if="orderInfo?.order_type === 0&&(orderInfo.pay_status==1 || orderInfo.pay_status==8)"> |
|
|
|
|
|
<!-- 二维码 --> |
|
|
|
|
|
<image |
|
|
|
|
|
mode="aspectFit" |
|
|
|
|
|
class="oc-code-img" |
|
|
|
|
|
:src="orderInfo.verify_qrcode" |
|
|
|
|
|
@click="previewImg(orderInfo.verify_qrcode)" |
|
|
|
|
|
></image> |
|
|
|
|
|
<view class="oc-tip">点击二维码可放大查看</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="od-box od-product" v-if="[1,2].includes(orderInfo?.order_type)"> |
|
|
<view class="od-box od-product" v-if="[1,2].includes(orderInfo?.order_type)"> |
|
|
<view class="od-title">产品信息</view> |
|
|
<view class="od-title">产品信息</view> |
|
|
<text-line label="预定项目:">{{ orderInfo?.project ?? '-' }}</text-line> |
|
|
<text-line label="预定项目:">{{ orderInfo?.project ?? '-' }}</text-line> |
|
@ -239,24 +251,7 @@ function imError(e){ |
|
|
</template> |
|
|
</template> |
|
|
</venue-info-async> |
|
|
</venue-info-async> |
|
|
</view> |
|
|
</view> |
|
|
<view class="od-box od-code" v-if="orderInfo.order_type === 0 && (orderInfo.pay_status==1 || orderInfo.pay_status==8)"> |
|
|
|
|
|
<!-- 二维码 --> |
|
|
|
|
|
<image |
|
|
|
|
|
mode="aspectFit" |
|
|
|
|
|
class="oc-code-img" |
|
|
|
|
|
:src="orderInfo.verify_qrcode" |
|
|
|
|
|
@click="previewImg(orderInfo.verify_qrcode)" |
|
|
|
|
|
></image> |
|
|
|
|
|
<view class="oc-tip">点击二维码可放大查看</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="od-box"> |
|
|
|
|
|
<!-- 联系方式/地址 --> |
|
|
|
|
|
<detail-contact |
|
|
|
|
|
:address="orderInfo?.venue_addr ?? ''" |
|
|
|
|
|
@click:phone="phoneClick" |
|
|
|
|
|
@click:nav="navClick" |
|
|
|
|
|
></detail-contact> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="od-box od-total"> |
|
|
<view class="od-box od-total"> |
|
|
<view class="ot-line"> |
|
|
<view class="ot-line"> |
|
|
<view class="ol-val">金额小计</view> |
|
|
<view class="ol-val">金额小计</view> |
|
@ -269,14 +264,15 @@ function imError(e){ |
|
|
<view class="ot-amount"><text class="oa-txt">合计支付:</text>¥{{ orderInfo?.pay_amount || '0' }}</view> |
|
|
<view class="ot-amount"><text class="oa-txt">合计支付:</text>¥{{ orderInfo?.pay_amount || '0' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="od-box od-payment"> |
|
|
|
|
|
<!-- 支付信息 --> |
|
|
|
|
|
<view class="od-title">支付信息</view> |
|
|
|
|
|
<text-line label="支付方式:">{{ orderInfo?.pay_type_text ?? '-' }}</text-line> |
|
|
|
|
|
<text-line label="支付时间:">{{ orderInfo?.pay_time ?? '-' }}</text-line> |
|
|
|
|
|
<text-line label="交易号:">{{ orderInfo?.trace_no ?? '-' }}</text-line> |
|
|
|
|
|
|
|
|
<view class="od-box"> |
|
|
|
|
|
<!-- 联系方式/地址 --> |
|
|
|
|
|
<detail-contact |
|
|
|
|
|
:address="orderInfo?.venue_addr ?? ''" |
|
|
|
|
|
@click:phone="phoneClick" |
|
|
|
|
|
@click:nav="navClick" |
|
|
|
|
|
></detail-contact> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="od-box"> |
|
|
<view class="od-box"> |
|
|
<!-- 抖音商品信息 --> |
|
|
<!-- 抖音商品信息 --> |
|
|
<detail-goods |
|
|
<detail-goods |
|
@ -284,6 +280,15 @@ function imError(e){ |
|
|
:imgUrl="orderInfo?.image" |
|
|
:imgUrl="orderInfo?.image" |
|
|
></detail-goods> |
|
|
></detail-goods> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="od-box od-payment"> |
|
|
|
|
|
<!-- 支付信息 --> |
|
|
|
|
|
<view class="od-title">支付信息</view> |
|
|
|
|
|
<text-line label="支付方式:">{{ orderInfo?.pay_type_text ?? '-' }}</text-line> |
|
|
|
|
|
<text-line label="支付时间:">{{ orderInfo?.pay_time ?? '-' }}</text-line> |
|
|
|
|
|
<text-line label="交易号:">{{ orderInfo?.trace_no ?? '-' }}</text-line> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="od-fixed"> |
|
|
<view class="od-fixed"> |
|
|
<!-- <view class="od-fixed"> --> |
|
|
<!-- <view class="od-fixed"> --> |
|
|
<button class="of-im-btn" open-type="lifeIm" @error="imError"> |
|
|
<button class="of-im-btn" open-type="lifeIm" @error="imError"> |
|
@ -439,9 +444,9 @@ function imError(e){ |
|
|
.of-im-btn{ |
|
|
.of-im-btn{ |
|
|
@include clearBtn; |
|
|
@include clearBtn; |
|
|
padding: 0 10upx; |
|
|
padding: 0 10upx; |
|
|
|
|
|
text-align: center; |
|
|
@include flcw(28upx, 40upx, #333); |
|
|
@include flcw(28upx, 40upx, #333); |
|
|
@include customerService; |
|
|
@include customerService; |
|
|
text-align: center; |
|
|
|
|
|
.oib-icon{ |
|
|
.oib-icon{ |
|
|
font-family: 'customerService'; |
|
|
font-family: 'customerService'; |
|
|
} |
|
|
} |
|
|