From 45d3e88c4340f32d04317448694d0417e2384ec2 Mon Sep 17 00:00:00 2001 From: shidongli Date: Thu, 20 Oct 2022 19:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=A7=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/baseurl.js | 2 +- api/modifyAddress/modifyAddress.js | 27 +- pages.json | 135 ++++--- pages/CommodityDetails/CommodityDetails.vue | 36 +- .../InformationFilling/InformationFilling.vue | 4 - pages/ProductList/ProductList.vue | 44 +-- pages/modifyAddress/modifyAddress.vue | 340 ++++++++++++++++++ pages/shopping/shopping.vue | 5 +- 8 files changed, 507 insertions(+), 86 deletions(-) create mode 100644 pages/modifyAddress/modifyAddress.vue diff --git a/api/baseurl.js b/api/baseurl.js index ff0cce3..22ea003 100644 --- a/api/baseurl.js +++ b/api/baseurl.js @@ -1,2 +1,2 @@ -var baseurl = "http://192.168.16.94:8081"; +var baseurl = "http://192.168.16.81:8080"; export default baseurl diff --git a/api/modifyAddress/modifyAddress.js b/api/modifyAddress/modifyAddress.js index 3d204f7..36a0739 100644 --- a/api/modifyAddress/modifyAddress.js +++ b/api/modifyAddress/modifyAddress.js @@ -6,11 +6,36 @@ export function goodPatientInfo(patientId){ method: 'GET' }) } -// 新增被护理人基本信息 +// 新增基本信息 export function addnursingStation(data){ return request({ url: '/nurseApplet/nursingStationGoods/add', method: 'POST', data, }) +} + +// 修改基本信息 + +export function updatenursingStation(data){ + return request({ + url: '/nurseApplet/nursingStationGoods/edit', + method: 'POST', + data, + }) +} +// 修改反显 +export function nursingStationGoodsinfo(id){ + return request({ + url: '/nurseApplet/nursingStationGoods/' + id, + method: 'GET' + }) +} + +// 删除 +export function delnursingStation(id) { + return request({ + url: '/nurseApplet/nursingStationGoods/' + id, + method: 'delete' + }) } \ No newline at end of file diff --git a/pages.json b/pages.json index a7e2dc6..50e3da6 100644 --- a/pages.json +++ b/pages.json @@ -3,26 +3,52 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path" : "pages/nursestation/nursestation", - "style" : - { - "navigationBarTitleText": "护理站详情", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" - } - - },{ - "path" : "pages/appointmenttime/appointmenttime", - "style" : - { - "navigationBarTitleText": "预约时间", - "enablePullDownRefresh": false, + { + "path": "pages/modifyAddress/modifyAddress", + "style": { + "navigationBarTitleText": "修改地址", + "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" //背景颜色 - } + } + + }, + { + "path": "pages/InformationFilling/InformationFilling", + "style": { + "navigationBarTitleText": "信息填写与确认", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" //背景颜色 + } + }, + + { + "path": "pages/nursestation/nursestation", + "style": { + "navigationBarTitleText": "护理站详情", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } - }, - { + }, + { + "path": "pages/appointmenttime/appointmenttime", + "style": { + "navigationBarTitleText": "预约时间", + "enablePullDownRefresh": false + } + }, + + + { + "path": "pages/shopping/shopping", + "style": { + "navigationBarTitleText": "医路优品", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" //背景颜色 + } + + }, + { "path": "pages/site/site", "style": { "navigationBarTitleText": "附近护理站", @@ -32,7 +58,22 @@ }, + // { + // "path": "pages/information/information", + // "style": { + // "navigationBarTitleText": "请完善个人信息", + // "enablePullDownRefresh": false, + // "navigationBarBackgroundColor": "#ffffff" + // } + // }, { + "path": "pages/Doctordetails/Doctordetails", + "style": { + "navigationBarTitleText": "医生信息", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } + }, { "path": "pages/login/login", "style": { "navigationBarTitleText": "", @@ -46,23 +87,28 @@ "navigationStyle": "custom" } }, { - "path" : "pages/appointment/appointment", - "style" : - { - "navigationBarTitleText": "选择时间", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" - } - - }, - { - "path": "pages/detail/detail", + "path": "pages/site/site", "style": { - "navigationBarTitleText": "护理站简介", + "navigationBarTitleText": "附近护理站", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" //背景颜色 } }, { + "path": "pages/doctorslist/doctorslist", + "style": { + "navigationBarTitleText": "预约医生", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } + }, + // { + // "path": "pages/appointment/appointment", + // "style": { + // "navigationBarTitleText": "选择时间", + // "enablePullDownRefresh": false + // } + // }, + { "path": "pages/homepage/homepage", "style": { "navigationBarTitleText": "泉医到家", @@ -78,14 +124,15 @@ } }, + // { + // "path": "pages/homepage/homepage", + // "style": { + // "navigationBarTitleText": "商品详情", + // "enablePullDownRefresh": false, + // "navigationBarBackgroundColor": "#ffffff" + // } + // }, { - "path": "pages/homepage/homepage", - "style": { - "navigationBarTitleText": "商品详情", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" - } - }, { "path": "pages/startup/startup", "style": { "navigationBarTitleText": "", @@ -108,7 +155,7 @@ }, { "path": "pages/ProductList/ProductList", "style": { - "navigationBarTitleText": "医路优品", + "navigationBarTitleText": "特医食品", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" } @@ -119,10 +166,16 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" } + }, + { + "path": "pages/medicine/medicine", + "style": { + "navigationBarTitleText": "就医", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } } - - - ], + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "", diff --git a/pages/CommodityDetails/CommodityDetails.vue b/pages/CommodityDetails/CommodityDetails.vue index b89d76c..1cbe8fb 100644 --- a/pages/CommodityDetails/CommodityDetails.vue +++ b/pages/CommodityDetails/CommodityDetails.vue @@ -10,18 +10,18 @@ - + - 酒精棉片 + {{item.goodsName}} - 200片 + 200{{item.goodsUnit}} - ¥36.0 + ¥{{item.goodsPrice}} - + 已选 @@ -102,9 +102,16 @@ diff --git a/pages/InformationFilling/InformationFilling.vue b/pages/InformationFilling/InformationFilling.vue index e67846f..9cd9d5f 100644 --- a/pages/InformationFilling/InformationFilling.vue +++ b/pages/InformationFilling/InformationFilling.vue @@ -193,15 +193,11 @@ width: 390px; height: 130rpx; font-size: 42rpx; - font-family: Adobe Heiti Std; - font-weight: normal; color: #000000; line-height: 130rpx; text-align: center; margin: 0 auto; - // margin-top: 49rpx; border-bottom: 1rpx solid #D8D4D4; - image { width: 31rpx; height: 31rpx; diff --git a/pages/ProductList/ProductList.vue b/pages/ProductList/ProductList.vue index 004fe2a..efc2607 100644 --- a/pages/ProductList/ProductList.vue +++ b/pages/ProductList/ProductList.vue @@ -1,43 +1,17 @@ @@ -67,15 +41,21 @@ //获取传值 console.log(options) this.title = options.title + this.goodsCategoryId = options.goodsCategoryId this.goodsListinfo() }, methods: { + // 查询商品列表 goodsListinfo(){ - goodsList(this.pageSize, this.pageNum,this.goodsCategoryId).then(res => { + goodsList(this.patientId).then(res => { + res.data.forEach(e => { + e.goodsPictureUrl = baseurl + e.goodsPictureUrl + }) this.goodsList = res.data console.log(this.goodsCategoryList) }) }, + //跳转详情页 goCommodityDetails() { uni.navigateTo({ diff --git a/pages/modifyAddress/modifyAddress.vue b/pages/modifyAddress/modifyAddress.vue new file mode 100644 index 0000000..e881132 --- /dev/null +++ b/pages/modifyAddress/modifyAddress.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/pages/shopping/shopping.vue b/pages/shopping/shopping.vue index 39091d2..1bedb99 100644 --- a/pages/shopping/shopping.vue +++ b/pages/shopping/shopping.vue @@ -1,3 +1,4 @@ +