From 2599c98b0d76c29af8b45104d2e76b89d7107912 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Tue, 27 Jul 2021 18:04:16 +0800 Subject: [PATCH] add occupy --- src/components/site/order_modal/order_modal.vue | 124 ++++++++++++++++++++--- src/js/api.js | 7 +- src/pages/site/confirm/confirm.vue | 7 +- src/pages/site/manage/manage.vue | 15 +-- src/pages/site/occupy_share/occupy_share.vue | 37 +++++-- src/pages/site/occupy_success/occupy_success.vue | 47 ++++++++- 6 files changed, 200 insertions(+), 37 deletions(-) diff --git a/src/components/site/order_modal/order_modal.vue b/src/components/site/order_modal/order_modal.vue index a4a4c17..c2c3a2b 100644 --- a/src/components/site/order_modal/order_modal.vue +++ b/src/components/site/order_modal/order_modal.vue @@ -1,7 +1,7 @@ @@ -203,19 +203,19 @@ export default { getVenueStatusnInfo(info){ switch(info.type){ case 'no_price_venue': - return { zh_text: '无法订场', type: info.type, className: 'grey', } + return { zh_text: info.message || '无法订场', type: info.type, className: 'grey', } case 'empty_venue': return { zh_text: info.message, type: info.type, className: '', } case 'mini_program': - return { zh_text: '小程序订场', type: info.type, className: 'green', } + return { zh_text: info.message || '小程序订场', type: info.type, className: 'green', } case 'take_up_venue': - return { zh_text: '管理员占用', type: info.type, className: 'black', } + return { zh_text: info.message || '管理员占用', type: info.type, className: 'black', } case 'course_venue': - return { zh_text: '课程预定', type: info.type, className: 'pistac', } + return { zh_text: info.message || '课程预定', type: info.type, className: 'pistac', } case 'pay_venue': - return { zh_text: '约玩占用', type: info.type, className: 'black', } + return { zh_text: info.message || '约玩占用', type: info.type, className: 'black', } case 'fixed_venue': - return { zh_text: '固定场', type: info.type, className: 'blue', } + return { zh_text: info.message || '固定场锁定', type: info.type, className: 'blue', } default: return {} @@ -263,6 +263,7 @@ export default { try{ util.showLoad(); this.venueList = []; + this.boardInfo = null; let _res = await this.getVenueList({ type_key: curTypeInfo.key || '', stadium_id: curStoreInfo.id || '', diff --git a/src/pages/site/occupy_share/occupy_share.vue b/src/pages/site/occupy_share/occupy_share.vue index 6947d37..81cfc36 100644 --- a/src/pages/site/occupy_share/occupy_share.vue +++ b/src/pages/site/occupy_share/occupy_share.vue @@ -2,12 +2,12 @@ - - 欧轩智能场馆(羽毛球馆永泰店) + + {{ shareInfo.stadium_name || '-' }} 地址: - 广州市白云区永平街道学山塘街世联空间D2座5楼 + {{ shareInfo.stadium_address || '-' }} @@ -17,15 +17,40 @@ ③ 接收微信消息,领取入场码 ④ 领取成功后仅限本人使用 - + 注:此码非入场码 @@ -50,7 +75,6 @@ export default { margin-right: 10upx; width: 34upx; height: 34upx; - background-color: skyblue; } >view{ line-height: 40upx; @@ -101,7 +125,6 @@ export default { margin-bottom: 12upx; width: 300upx; height: 300upx; - background-color: skyblue; } } .os-tip{ diff --git a/src/pages/site/occupy_success/occupy_success.vue b/src/pages/site/occupy_success/occupy_success.vue index 5515267..88a473c 100644 --- a/src/pages/site/occupy_success/occupy_success.vue +++ b/src/pages/site/occupy_success/occupy_success.vue @@ -1,9 +1,9 @@