|
|
@@ -1,4 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
|
+import { filterDay, timeFormat } from '../utils'
|
|
|
import { StaticUrl } from '@/config'
|
|
|
|
|
|
definePage({
|
|
|
@@ -44,6 +45,12 @@ async function getData(orderNo: string) {
|
|
|
// const res = await Apis.film.filmOrderDetail({ data: { id } })
|
|
|
|
|
|
orderInfo.value = res.data
|
|
|
+ orderInfo.value.codeList = orderInfo.value.orderMovieItems[0].ticketCode.split(',')
|
|
|
+}
|
|
|
+function call() {
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: orderInfo.value.phone,
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
onLoad((options) => {
|
|
|
@@ -75,11 +82,14 @@ onLoad((options) => {
|
|
|
|
|
|
<!-- 取票码 -->
|
|
|
<view class="ticket-info block">
|
|
|
- <view v-for="(item, index) in orderInfo.orderMovieItems" :key="index" class="ticket-item">
|
|
|
+ <view class="ticket-item">
|
|
|
<view class="seat">
|
|
|
- 座位:6排4座
|
|
|
+ 座位:
|
|
|
+ <view v-for="(item, index) in orderInfo.orderMovieItems" :key="index">
|
|
|
+ {{ `${item.name} ` }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="code-box">
|
|
|
+ <!-- <view class="code-box">
|
|
|
<view class="code">
|
|
|
取票码:{{ item.ticketCode || '暂无' }}
|
|
|
</view>
|
|
|
@@ -87,20 +97,25 @@ onLoad((options) => {
|
|
|
</view>
|
|
|
<view class="notice">
|
|
|
(前为取票码,后为验票码)
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="qrcode-box">
|
|
|
- <view class="qrcode" />
|
|
|
+ <view class="qrcode">
|
|
|
+ <!-- <uqrcode value="test" canvas-id="qrcode" />
|
|
|
+ -->
|
|
|
+ </view>
|
|
|
+ <Qrcode content="https://example.com/测试中文内容" :size="260" color="#333333" error-level="H" />
|
|
|
+
|
|
|
<view class="download-btn" @click="downloadImg">
|
|
|
下载到手机
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="open-box">
|
|
|
+ <!-- <view class="open-box">
|
|
|
<view class="text">
|
|
|
展开(共{{ orderInfo.orderMovieItems.length }}个)
|
|
|
</view>
|
|
|
<image class="arrow" :src="`${StaticUrl}/film-black-arrow.png`" mode="scaleToFill" />
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
<!-- 退款信息 -->
|
|
|
@@ -165,13 +180,14 @@ onLoad((options) => {
|
|
|
|
|
|
<!-- 影片信息 -->
|
|
|
<view class="movie-info block">
|
|
|
- <image class="img" :src="`${StaticUrl}/film-ing-icon.png`" />
|
|
|
+ <image class="img" :src="orderInfo.orderImage" />
|
|
|
<view class="title-box">
|
|
|
<view class="title">
|
|
|
{{ orderInfo.movieName }}
|
|
|
</view>
|
|
|
+
|
|
|
<view class="time-box">
|
|
|
- {{ orderInfo.movieName }}(今天)11:50-15:08 英语3D
|
|
|
+ {{ filterDay(orderInfo.session) == '今天' ? '今天' : timeFormat(orderInfo.session) }} 英语3D
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -188,7 +204,7 @@ onLoad((options) => {
|
|
|
导航
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="icon-item">
|
|
|
+ <view class="icon-item" @click="call">
|
|
|
<image class="icon" :src="`${StaticUrl}/film-phone.png`" />
|
|
|
<view class="text">
|
|
|
电话
|
|
|
@@ -249,13 +265,13 @@ onLoad((options) => {
|
|
|
<view class="line" />
|
|
|
<view class="total-box">
|
|
|
<view class="reduce">
|
|
|
- 总计¥159.9 共减¥159
|
|
|
+ 总计¥{{ orderInfo.orderMoney }}共减¥{{ orderInfo.offsetPoints / 100 }}
|
|
|
</view>
|
|
|
<view class="text">
|
|
|
实际付款
|
|
|
</view>
|
|
|
<view class="total">
|
|
|
- ¥10.9
|
|
|
+ ¥{{ orderInfo.total }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -269,8 +285,8 @@ onLoad((options) => {
|
|
|
订单编号
|
|
|
</view>
|
|
|
<view class="value">
|
|
|
- 1234567890
|
|
|
- <image class="icon" :src="`${StaticUrl}/film-copy.png`" @click="handleCopy('1234567890')" />
|
|
|
+ {{ orderInfo.orderNumber }}
|
|
|
+ <image class="icon" :src="`${StaticUrl}/film-copy.png`" @click="handleCopy(orderInfo.orderNumber)" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
@@ -286,7 +302,7 @@ onLoad((options) => {
|
|
|
支付时间
|
|
|
</view>
|
|
|
<view class="value">
|
|
|
- 2024-12-13 11:12:30
|
|
|
+ {{ orderInfo.payTime }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
@@ -294,7 +310,7 @@ onLoad((options) => {
|
|
|
下单时间
|
|
|
</view>
|
|
|
<view class="value">
|
|
|
- 2024-12-13 11:12:30
|
|
|
+ {{ orderInfo.createTime }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -380,6 +396,7 @@ onLoad((options) => {
|
|
|
font-weight: bold;
|
|
|
font-size: 28rpx;
|
|
|
color: #222222;
|
|
|
+ display: flex;
|
|
|
}
|
|
|
.code-box{
|
|
|
display: flex;
|