From f5986eeca5b5f884738412a631c251d368c28eff Mon Sep 17 00:00:00 2001
From: xingyy <373639591@qq.com>
Date: Wed, 20 Dec 2023 10:05:14 +0800
Subject: [PATCH] submit
---
src/http/apis.js | 6 +++
src/pages/mine/index.vue | 9 +++-
src/pages/ticket-details/index.vue | 83 +++++++++++++++++++-----------
3 files changed, 66 insertions(+), 32 deletions(-)
diff --git a/src/http/apis.js b/src/http/apis.js
index 97498efc..7bc2d172 100644
--- a/src/http/apis.js
+++ b/src/http/apis.js
@@ -79,3 +79,9 @@ export const getQrCode= (data) => {
responseType: 'arraybuffer'
})
}
+export const getTicketPerInfo= (data) => {
+ return uniReq.post({
+ url: '/api/smart/appointment/get/ticket/info',
+ data
+ })
+}
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index 58ce3f3f..fdd99c20 100644
--- a/src/pages/mine/index.vue
+++ b/src/pages/mine/index.vue
@@ -43,8 +43,7 @@
-
-
+
@@ -117,6 +116,12 @@ const statusList=ref([
value:6
}
])
+const goDetail=(item)=>{
+ uni.setStorageSync('ticket',item)
+ uni.navigateTo({
+ url: '/pages/ticket-details/index'
+ })
+}
const getData=async ()=>{
const res =await unusedTickets()
if (res.code===200){
diff --git a/src/pages/ticket-details/index.vue b/src/pages/ticket-details/index.vue
index 8a114739..d4004813 100644
--- a/src/pages/ticket-details/index.vue
+++ b/src/pages/ticket-details/index.vue
@@ -6,11 +6,11 @@
-
门票系统的某个场馆
+
{{ticket.ticketName}}
+ :src="ticket.ticketCoverPic">
@@ -21,7 +21,7 @@
- 首都博物馆门票
+ {{ticket.ticketName}}
@@ -31,7 +31,7 @@
- 192119280121
+ {{ticket.phone}}
@@ -41,7 +41,7 @@
- 2023年12月16日
+ {{dayjs(ticket.date).format('YYYY年MM月DD日')}}
@@ -51,7 +51,7 @@
- 2
+ {{ticket.number}}
@@ -61,7 +61,7 @@
*参观人的身份证信息
-
+
@@ -70,13 +70,13 @@
-
陈X
-
已过期
+
{{item.userName}}
+
{{statusList.find(x=>x.value===item.status).label}}
- 预留手机号(+86)
+ 身份证号
@@ -84,33 +84,52 @@
192119280121
-
-
- 预约时间
-
-
-
-
- 2023年12月16日
-
-
-
-
- 预约人数
-
-
-
-
- 2
-
-