-
-
-
{{ ticket.departure_time }}
-
{{ ticket.departure_station }}
-
-
-
{{ ticket.trainno }}
-
{{ ticket.date }}
-
-
-
{{ ticket.arrival_time }}
-
{{ ticket.arrival_station }}
-
+
+
+
{{ departure_time }}
+
{{ departure }}
+
+
+
{{ ticketno }}
+
{{ date }}
+
+
+
{{ arrival_time }}
+
{{ arrival }}
-
-
-
-
乘车人选择
-
+
+
+
+
+
+
二等座
+
¥{{ ticketData.secondseatprice }}
+
{{ ticketData.secondseatnum }}
+
+
+
+
+
一等座
+
¥{{ ticketData.firstseatprice }}
+
{{ ticketData.firstseatnum }}
+
+
+
+
+
商务座
+
¥{{ ticketData.businessseatprice }}
+
{{ ticketData.businessseatnum }}
+
+
+
+
+
无座
+
¥{{ ticketData.noseatprice }}
+
{{ ticketData.noseatnum }}
+
+
+
+
+
+
+
+
+ {{ passenger.name }} - {{ passenger.passengerstate }} - {{ passenger.idcardno }} - {{ passenger.mobileno }}
+
+
+
@@ -73,7 +186,8 @@ h1 {
margin-bottom: 20px;
}
-.ticket-box {
+
+.ticket-info {
display: flex;
justify-content: space-between;
align-items: center;
@@ -90,15 +204,15 @@ h1 {
text-align: center;
}
-.time {
- font-size: 8px; /* 设置时间的字体大小 */
+.time .num,.price {
+ font-size: 12px; /* 设置时间的字体大小 */
}
.station {
font-size: 16px; /* 设置车站名称的字体大小 */
}
-.train-no {
+.train-no,{
font-size: 20px; /* 设置车次的字体大小 */
}
@@ -106,36 +220,44 @@ h1 {
font-size: 10px; /* 设置日期的字体大小 */
}
-.seat-selection {
+.container {
display: flex;
- justify-content: center;
- margin-top: 20px;
+ justify-content: space-between; /* 均匀分布每个子元素 */
}
-.seat-options {
+.container > div { /* 选择 container 中的每一个直接子元素 */
+ flex: 1; /* 每个子元素平分父容器的宽度 */
+ border: 1px solid #ccc;
+ padding: 10px;
+ margin-right: 10px;
display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ box-sizing: border-box;
}
-.seat-option {
- border: 1px solid #ccc;
- padding: 10px 20px;
- border-radius: 8px;
- cursor: pointer;
- transition: background-color 0.3s, border-color 0.3s;
- margin-right: 10px;
+.container > div:last-child {
+ margin-right: 0; /* 移除最后一个子元素的右边距 */
}
-.seat-option:last-child {
- margin-right: 0;
+.container {
+ display: flex;
+ flex-wrap: wrap;
}
-.seat-option input[type="radio"] {
- display: none;
+.seat-box {
+ width: 100px;
+ padding: 10px;
+ margin: 10px;
+ border: 1px solid #ccc;
+ text-align: center;
+ cursor: pointer;
}
-.seat-option.active {
- border-color: #007bff;
- background-color: #d0e6ff;
+.seat-box.selected {
+ background-color: #4cd964;; /* 选中的座位框变绿 */
+ color: white;
}
.submit-btn {
diff --git a/src/Mini-12306前端开发/pages/index/index.vue b/src/Mini-12306前端开发/pages/index/index.vue
index d0281863..73dfe62f 100644
--- a/src/Mini-12306前端开发/pages/index/index.vue
+++ b/src/Mini-12306前端开发/pages/index/index.vue
@@ -11,14 +11,6 @@
+
+
\ No newline at end of file
diff --git a/src/Mini-12306前端开发/pages/index/passenge-list.vue b/src/Mini-12306前端开发/pages/index/passenge-list.vue
new file mode 100644
index 00000000..e41cad85
--- /dev/null
+++ b/src/Mini-12306前端开发/pages/index/passenge-list.vue
@@ -0,0 +1,92 @@
+
+
+ 选择乘客
+
+
+
+
+
+ 姓名:{{ passenger.name }}
+ 乘客类型:{{ passenger.passengerstate }}
+ 身份证号:{{ passenger.idcardno }}
+ 电话号码:{{ passenger.mobileno }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Mini-12306前端开发/pages/index/search-results.vue b/src/Mini-12306前端开发/pages/index/search-results.vue
index 5ec8a4c7..a09dd122 100644
--- a/src/Mini-12306前端开发/pages/index/search-results.vue
+++ b/src/Mini-12306前端开发/pages/index/search-results.vue
@@ -41,8 +41,8 @@ export default {
methods: {
handleBookClick(ticket) {
uni.navigateTo({
- url: '/pages/index/confirm-order'
- });
+ url: `/pages/index/confirm-order?ticketno=${ticket.trainno}&date=${ticket.date}&departure=${ticket.departure_station}&arrival=${ticket.arrival_station}&departure_time=${ticket.departure_time}&arrival_time=${ticket.arrival_time}`
+ });
}
}
};
@@ -73,7 +73,7 @@ h1 {
}
.time {
- font-size: 10px; /* 设置时间的字体大小 */
+ font-size: 12px; /* 设置时间的字体大小 */
}
.station {
diff --git a/src/Mini-12306前端开发/pages/index/ticket.vue b/src/Mini-12306前端开发/pages/index/ticket.vue
index 5e37c276..7e372e48 100644
--- a/src/Mini-12306前端开发/pages/index/ticket.vue
+++ b/src/Mini-12306前端开发/pages/index/ticket.vue
@@ -46,11 +46,15 @@ export default {
},
rescheduleTicket() {
// 改签车票的逻辑处理
- alert('改签功能暂未开放,敬请期待!');
+ uni.navigateTo({
+ url: '/pages/index/refund'
+ });
},
refundTicket() {
// 退票的逻辑处理
- alert('退票功能暂未开放,敬请期待!');
+ uni.navigateTo({
+ url: '/pages/index/Change'
+ });
}
},
mounted() {
diff --git a/src/Mini-12306前端开发/pages/index/user-center.vue b/src/Mini-12306前端开发/pages/index/user-center.vue
index 840c6584..7a4a3bc1 100644
--- a/src/Mini-12306前端开发/pages/index/user-center.vue
+++ b/src/Mini-12306前端开发/pages/index/user-center.vue
@@ -1,88 +1,89 @@
-
-
-
-
用户名: {{ userInfo.username }}
-
手机号: {{ userInfo.phone }}
-
邮箱: {{ userInfo.email }}
-
-
-
-
订单号: {{ order.orderId }}
-
出发地: {{ order.departure }}
-
目的地: {{ order.destination }}
-
出发时间: {{ order.departureTime }}
-
到达时间: {{ order.arrivalTime }}
-
价格: {{ order.price }} 元
-
-
-
+
+
+
+ {{ userName }}
+
+
+
+
+
+
+
+
+
+
--
2.34.1