From c4d1cdf6ec23146e74765523588baa187ba4729b Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Wed, 11 Feb 2026 17:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=97=A8=E5=BA=97=E8=B5=84?= =?UTF-8?q?=E8=B4=A8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tea-room.ts | 7 +++++++ src/bundle/settle-in/tea-specialist.vue | 19 ++++++++++++++++++- src/bundle/tea-room/room.vue | 15 ++++++++++++--- src/pages.json | 10 ++++++++++ 4 files changed, 47 insertions(+), 4 deletions(-) diff --git a/src/api/tea-room.ts b/src/api/tea-room.ts index d88f1d7..40e2289 100644 --- a/src/api/tea-room.ts +++ b/src/api/tea-room.ts @@ -384,4 +384,11 @@ export function getTeaRoomPayOrderAmount(data: {id: number, pay_way: number}) { */ export function getRenewTeaRoomPayOrderAmount(data: {id: number, pay_way: number}) { return http.Post('/api/order/getOrderRenewAmount', data) +} + +/** + * 获取门店资质信息 + */ +export function getStoreQual(store_id: number) { + return http.Post('/api/teaStore/qualDetails', { store_id }) } \ No newline at end of file diff --git a/src/bundle/settle-in/tea-specialist.vue b/src/bundle/settle-in/tea-specialist.vue index 8271e11..1e02ba2 100644 --- a/src/bundle/settle-in/tea-specialist.vue +++ b/src/bundle/settle-in/tea-specialist.vue @@ -324,6 +324,7 @@ mobile: '', code: '' }) + const both = ref('1998-12-21') // 审核状态 const status = ref(-1) // 0待审核 1审核成功 2审核失败 3未提交数据 @@ -379,10 +380,23 @@ city.value = item.selectedItems.name }, + /** + * + */ + handleConfirmBoth({ value }: any) { + const d = new Date(value) + const year = d.getFullYear() + const month = d.getMonth() + 1 + const day = d.getDate() + const date = `${year}-${month < 10 ? '0' + month : month}-${day < 10 ? '0' + day : day}` + both.value = date + }, + /** * 提交申请 */ handleSubmit: async () => { + if (!form.value.username) { toast.show('请输入姓名') return false @@ -434,6 +448,9 @@ form.value.certificate = "" + "," +removeImageUrlPrefix(fileList4.value)[0] } + let data = form.value + data.both = both.value + toast.loading({ loadingType: 'ring', loadingColor: '#4C9F44', @@ -442,7 +459,7 @@ try { toast.close() - await addTeaSpecialist(form.value) + await addTeaSpecialist(data) status.value = 0 // 提交成功,变更状态为待审核 setTimeout(() => { diff --git a/src/bundle/tea-room/room.vue b/src/bundle/tea-room/room.vue index 59a621e..37e69db 100644 --- a/src/bundle/tea-room/room.vue +++ b/src/bundle/tea-room/room.vue @@ -43,15 +43,14 @@ - + {{ teaRoom.name }} - + {{ teaRoom.star }} 推荐 - 营业时间:{{ teaRoom.day_time }} {{ teaRoom.start_time }}-{{ teaRoom.end_time }} @@ -61,6 +60,16 @@ + + + + + 营业时间:{{ teaRoom.day_time }} {{ teaRoom.start_time }}-{{ teaRoom.end_time }} + + 资质信息 + + + diff --git a/src/pages.json b/src/pages.json index 3830624..f8ef412 100644 --- a/src/pages.json +++ b/src/pages.json @@ -314,6 +314,16 @@ "navigationStyle": "custom" } }, + { + "path": "tea-room/license", + "type": "page", + "needLogin": true, + "layout": "default", + "style": { + "navigationBarBackgroundColor": "#FFF", + "navigationBarTitleText": "资质信息" + } + }, { "path": "tea-room/room", "type": "page",