From de3fd182464281149b69d9bbd7e503229a2fc636 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Sun, 23 Mar 2025 10:10:33 +0800 Subject: [PATCH] 250323 --- src/api/user/index.ts | 4 + src/package/booking/checkout.vue | 17 +- src/package/booking/confirm.vue | 7 +- src/package/order/detail.vue | 6 +- src/package/user/card-detail-record.vue | 100 ++-- src/package/user/card-detail.vue | 2 +- src/package/user/card.vue | 41 +- src/package/user/ic-card-detail-record.vue | 105 ++++ src/package/user/ic-card-detail.vue | 453 ++++++++++++++++++ src/pages.json | 14 + src/pages/order.vue | 16 +- src/pages/user.vue | 149 ++---- .../components/ws-user-card/ws-user-card.vue | 7 +- 13 files changed, 756 insertions(+), 165 deletions(-) create mode 100644 src/package/user/ic-card-detail-record.vue create mode 100644 src/package/user/ic-card-detail.vue diff --git a/src/api/user/index.ts b/src/api/user/index.ts index df7b5db..ca20afc 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -12,3 +12,7 @@ export async function authUser(data: User) { } return Promise.reject(new Error(res.data.message)); } + +export const loginByPhoneReq = (data: User) => { + return request.post('/system/user/loginByPhoneForTest', data); +} \ No newline at end of file diff --git a/src/package/booking/checkout.vue b/src/package/booking/checkout.vue index 3122afb..b0857ec 100644 --- a/src/package/booking/checkout.vue +++ b/src/package/booking/checkout.vue @@ -211,12 +211,12 @@ export default { } }, methods: { - async reload() { + async reload(resetDate = true) { // 请求数据 uni.showLoading({ title: '数据读取中.' }) - this.setDateList() + this.setDateList(resetDate) await this.getMerchant() await this.getTimeList() await this.getFieldList() @@ -260,7 +260,7 @@ export default { // uni.hideLoading() // }) }, - setDateList() { + setDateList(resetDate = true) { this.next7day = [] let day = 7 if (this.merchantId === 37) day = 1 @@ -273,7 +273,7 @@ export default { value: day.format('MM月DD日') }) } - this.dateTime = dayjs().format('YYYY-MM-DD') + if (resetDate) this.dateTime = dayjs().format('YYYY-MM-DD') this.week = dayjs().format('d') === '0' ? '7' : dayjs().format('d') }, async getTimeList() { @@ -328,6 +328,7 @@ export default { this.disabled = !this.disabled; }, onDateTime(e) { + this.selection = [] this.periodList = [] if (![37, 44, 32].includes(this.merchantId)) { const date = dayjs().format('d') @@ -371,6 +372,7 @@ export default { }, onType(e) { const index = e.currentIndex + this.selection = [] if (index === 0) { this.type = 1; this.isHalf = 0; @@ -379,7 +381,7 @@ export default { this.type = 2; this.isHalf = 1; } - this.reload() + this.reload(false) }, async getMerchant() { this.merchant = await getThinkSite(this.merchantId) @@ -444,6 +446,8 @@ export default { const siteTime = field.periodVoList.find(d => d.period === item.timePeriod) // 添加到购物车 const week = parseInt(this.week) === 7 ? 0 : this.week + console.log(item) + console.log('this.type', this.type) app.selection.push({ key, sid: this.merchantId, @@ -466,8 +470,9 @@ export default { siteTimeId: siteTime.id, dateTime: `${this.dateTime}`, comments: `${this.dateTime}(${getWeek(week)})${item.timePeriod}`, + week }) - // console.log(app.selection); + console.log(app.selection); // console.log('period: ', period); // 是否支持儿童票 // console.log('item.isChildren: ', item.isChildren); diff --git a/src/package/booking/confirm.vue b/src/package/booking/confirm.vue index 32cd2a2..b2943ac 100644 --- a/src/package/booking/confirm.vue +++ b/src/package/booking/confirm.vue @@ -24,8 +24,8 @@ - - - - - - - + + + + 订单号: {{ item.orderNum }} + + + 已取消 + + + 已完成 + + + 已支付 + + + 未支付 + + + + + + + + + + + + 合计:¥{{ item.totalPrice }} + + + + @@ -18,41 +41,38 @@ - + \ No newline at end of file diff --git a/src/package/user/card-detail.vue b/src/package/user/card-detail.vue index c75b1ba..5350752 100644 --- a/src/package/user/card-detail.vue +++ b/src/package/user/card-detail.vue @@ -86,7 +86,7 @@ - +