From 2c700c0d07b9390bfc8dfffbf91b7c53df02d2fb Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 23 Apr 2025 10:08:29 +0800 Subject: [PATCH] url --- common/util.js | 7 + component/floatPhone/index.vue | 40 + component/serviceArchive/service-archive.vue | 2 +- main.js | 4 + package_sub/pages/AddOrder/AddOrder.vue | 76 +- package_sub/pages/AddOrder/editOrder.vue | 1211 +++++++++++++++++ package_sub/pages/OrderList/OrderList.vue | 132 +- package_sub/pages/ServeForm/ServeForm.vue | 187 ++- .../pages/ServiceDetail/ServiceDetail.vue | 26 +- package_sub/pages/ServiceList/ServiceList.vue | 2 +- package_sub/pages/UserArchive/UserArchive.vue | 2 +- pages.json | 20 +- pages/index/index.vue | 22 +- pages/me/me.vue | 53 +- pages/order/order.vue | 97 +- 15 files changed, 1721 insertions(+), 160 deletions(-) create mode 100644 component/floatPhone/index.vue create mode 100644 package_sub/pages/AddOrder/editOrder.vue diff --git a/common/util.js b/common/util.js index ed40f61..94d20a8 100644 --- a/common/util.js +++ b/common/util.js @@ -44,3 +44,10 @@ export function getSexByIdcard (idCard) { } return sexStr; } + +export function isNull (p) { + + return p == '' || p == undefined || p == null || p == 'undefined' || p == 'null'; +} + + diff --git a/component/floatPhone/index.vue b/component/floatPhone/index.vue new file mode 100644 index 0000000..13a8e0c --- /dev/null +++ b/component/floatPhone/index.vue @@ -0,0 +1,40 @@ + + + + + \ No newline at end of file diff --git a/component/serviceArchive/service-archive.vue b/component/serviceArchive/service-archive.vue index 96dc5ea..f9136a8 100644 --- a/component/serviceArchive/service-archive.vue +++ b/component/serviceArchive/service-archive.vue @@ -127,7 +127,7 @@ ...that.form }).then(res=>{ uni.showToast({ - title:"创建成功", + title:"更新成功", icon:'none', success() { that.isShow = false diff --git a/main.js b/main.js index cbc105a..82d29cd 100644 --- a/main.js +++ b/main.js @@ -32,6 +32,10 @@ Vue.prototype.$qqmapsdk = new QQMapWX({ key: 'D5EBZ-C3BWP-HZIDG-VO6BE-P2MN5-ESFZO' }); +import floatPhone from "@/component/floatPhone/index.vue" +Vue.component('floatPhone',floatPhone) + + let mpShare = require('uview-ui/libs/mixin/mpShare.js'); Vue.mixin(mpShare) diff --git a/package_sub/pages/AddOrder/AddOrder.vue b/package_sub/pages/AddOrder/AddOrder.vue index 7324330..7fa9605 100644 --- a/package_sub/pages/AddOrder/AddOrder.vue +++ b/package_sub/pages/AddOrder/AddOrder.vue @@ -101,6 +101,7 @@ - + 上传资料 - (就诊卡、病例等) + (挂号单) + @@ -430,7 +438,7 @@ ripple :custom-style="payBtnStyle" @click="addArchive" - >新增就诊人新增被服务人 @@ -608,6 +616,7 @@ + + + \ No newline at end of file diff --git a/package_sub/pages/OrderList/OrderList.vue b/package_sub/pages/OrderList/OrderList.vue index 9b8000d..14b8750 100644 --- a/package_sub/pages/OrderList/OrderList.vue +++ b/package_sub/pages/OrderList/OrderList.vue @@ -3,68 +3,72 @@ - - - - 专享半天陪诊 + + + + {{i.accompany_product?i.accompany_product.name:''}} + + {{ statusFormat(i.pay_status) }} + + + + + + + + + + + ¥{{ i.accompany_product ? i.accompany_product.price : 0 }} + 订单号 {{ i.no }} + + + + + + {{i.type == 1 ? '被服务人' : '被服务人'}} + {{ i.user_archive ? i.user_archive.name : i.user_archive_id }} + + + {{(i.type == 1 ? '就诊' : '服务') + '时间'}} + {{ i.time ? $moment(i.time).format('YYYY年MM月DD日 HH:mm') : '' }} + + + 详细地址 + {{ i.city || " " }} + + + 就诊医院 + {{ i.hospital ? i.hospital.name : '' }} + + + + + + + 下单时间: + {{ i.created_at ? $moment(i.created_at).format('YYYY年MM月DD日 HH:mm') : '' }} + + + {{ i.pay_status === 0 ? '立即支付' : '查看订单' }} + - {{ statusFormat(i.pay_status) }} - - - - - - - - - ¥{{ i.accompany_product ? i.accompany_product.price : 0 }} - - 订单号 {{ i.no }} - - - - - - 就诊城市 - {{ i.city || ((i.hospital && i.hospital.site) ? i.hospital.site.name : "") || " " }} - - - 就诊医院 - {{ i.hospital ? i.hospital.name : '' }} - - - 就诊人 - {{ i.user_archive ? i.user_archive.name : i.user_archive_id }} - - - 就诊时间 - {{ i.time ? $moment(i.time).format('YYYY年MM月DD日 HH:mm') : '' }} - - - - - - 下单时间: - {{ i.created_at ? $moment(i.created_at).format('YYYY年MM月DD日 HH:mm') : '' }} - - - {{ i.pay_status === 0 ? '立即支付' : '查看订单' }} - @@ -122,12 +126,12 @@ this.loadStatus = 'loading' const res = await this.$u.api.accompanyOrders(this.select); console.log(res); - this.total = res.total; + this.total = res.order.total; if (isRefresh) { this.list.length = 0; } - this.list.push(...res.data) - if (this.list.length >= res.total) { + this.list.push(...res.order.data) + if (this.list.length >= res.order.total) { this.loadStatus = 'nomore' } else { this.loadStatus = 'loadmore' diff --git a/package_sub/pages/ServeForm/ServeForm.vue b/package_sub/pages/ServeForm/ServeForm.vue index 20da8e1..75430c7 100644 --- a/package_sub/pages/ServeForm/ServeForm.vue +++ b/package_sub/pages/ServeForm/ServeForm.vue @@ -9,7 +9,14 @@ - + + @@ -63,12 +70,65 @@ :list="list_relationship"> + :list="list_type"> + + + + + + + + + {{ item.name }} + + + {{ item.mobile }} + + + + {{ item.address }} + + + + + + + + 新增被服务人 + + + + -