From 17555f37c0bb32a5e8f8c43000d7de75455d6bc1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Mon, 17 Oct 2022 11:21:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 58 +++-
api/baseurl.js | 2 +-
api/disease/index.js | 8 +
api/information/index.js | 19 ++
manifest.json | 30 +-
pages.json | 81 ++++--
pages/CommodityDetails/CommodityDetails.vue | 22 --
pages/Doctordetails/Doctordetails.vue | 104 +++++++
pages/Personal/Personal.vue | 37 ---
pages/ProductList/ProductList.vue | 5 -
pages/disease/disease.vue | 122 +++++++++
pages/doctorslist/doctorslist.vue | 111 ++++++++
pages/homepage/homepage.vue | 63 ++---
pages/information/information.vue | 287 ++++++++++++++++++++
pages/login/login.vue | 4 -
pages/medicine/medicine.vue | 49 ++++
pages/register/register.vue | 4 -
pages/shopping/shopping.vue | 50 +---
pages/site/site.vue | 180 ++++++------
static/chaxun.png | Bin 0 -> 3273 bytes
static/information.png | Bin 0 -> 4526 bytes
static/yuyue.png | Bin 0 -> 2378 bytes
22 files changed, 949 insertions(+), 287 deletions(-)
create mode 100644 api/disease/index.js
create mode 100644 api/information/index.js
create mode 100644 pages/Doctordetails/Doctordetails.vue
create mode 100644 pages/disease/disease.vue
create mode 100644 pages/doctorslist/doctorslist.vue
create mode 100644 pages/information/information.vue
create mode 100644 pages/medicine/medicine.vue
create mode 100644 static/chaxun.png
create mode 100644 static/information.png
create mode 100644 static/yuyue.png
diff --git a/App.vue b/App.vue
index ea9eff2..dc7413f 100644
--- a/App.vue
+++ b/App.vue
@@ -1,16 +1,10 @@
-
-
+
@@ -18,4 +12,54 @@
diff --git a/api/baseurl.js b/api/baseurl.js
index 7f01d55..ff0cce3 100644
--- a/api/baseurl.js
+++ b/api/baseurl.js
@@ -1,2 +1,2 @@
-var baseurl = "http://192.168.16.94:8080";
+var baseurl = "http://192.168.16.94:8081";
export default baseurl
diff --git a/api/disease/index.js b/api/disease/index.js
new file mode 100644
index 0000000..ed3c3ac
--- /dev/null
+++ b/api/disease/index.js
@@ -0,0 +1,8 @@
+import request from "../request.js"
+
+export function getDiseaseInfo() {
+ return request({
+ url: `/nurseApplet/login/getDiseaseInfo`,
+ method: 'GET'
+ })
+}
diff --git a/api/information/index.js b/api/information/index.js
new file mode 100644
index 0000000..f392702
--- /dev/null
+++ b/api/information/index.js
@@ -0,0 +1,19 @@
+import request from "../request.js"
+
+//区街道list
+export function getRegionAndStreetInfo() {
+ return request({
+ url: `/nurseApplet/login/getRegionAndStreetInfo`,
+ method: 'GET'
+ })
+}
+
+
+
+//查询护理类型信息
+export function getNurseType() {
+ return request({
+ url: `/nurseApplet/login/getNurseTypeInfo`,
+ method: 'GET'
+ })
+}
diff --git a/manifest.json b/manifest.json
index 6d00163..5b8053d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -17,9 +17,7 @@
"delay" : 0
},
/* 模块配置 */
- "modules" : {
- "Geolocation" : {}
- },
+ "modules" : {},
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
@@ -42,14 +40,21 @@
"maps" : {
"amap" : {
"appkey_ios" : "",
- "appkey_android" : ""
+ "appkey_android" : "b38c6aa0cb9a6323f48b05ea6462aed5"
}
},
"geolocation" : {
+ "amap" : {
+ "__platform__" : [ "android" ],
+ "appkey_ios" : "",
+ "appkey_android" : "b38c6aa0cb9a6323f48b05ea6462aed5"
+ },
"system" : {
- "__platform__" : [ "ios", "android" ]
+ "__platform__" : [ "android" ]
}
- }
+ },
+ "push" : {},
+ "payment" : {}
},
"splashscreen" : {
"androidStyle" : "default",
@@ -84,5 +89,16 @@
"uniStatistics" : {
"enable" : false
},
- "vueVersion" : "2"
+ "vueVersion" : "2",
+ "h5" : {
+ "sdkConfigs" : {
+ "maps" : {
+ "amap" : {
+ "key" : "08e138f3f5e8595453526cbbeed38124",
+ "securityJsCode" : "e50d5cf4e75c0a2b3f5cbfcc96cc4d8f",
+ "serviceHost" : ""
+ }
+ }
+ }
+ }
}
diff --git a/pages.json b/pages.json
index 2c76f6d..fcfe5b7 100644
--- a/pages.json
+++ b/pages.json
@@ -4,12 +4,61 @@
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
+ "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": "",
"navigationStyle": "custom"
// "enablePullDownRefresh": false
}
+ },{
+ "path": "pages/shopping/shopping",
+ "style": {
+ "navigationBarTitleText": "医路优品",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
+ }, {
+ "path": "pages/doctorslist/doctorslist",
+ "style": {
+ "navigationBarTitleText": "预约医生",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
+ }, {
+ "path": "pages/homepage/homepage",
+ "style": {
+ "navigationBarTitleText": "泉医到家",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
+ }, {
+ "path": "pages/disease/disease",
+ "style": {
+ "navigationBarTitleText": "疾病信息选择",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
+ }, {
+ "path": "pages/CommodityDetails/CommodityDetails",
+ "style": {
+ "navigationBarTitleText": "商品详情",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
}, {
"path": "pages/register/register",
"style": {
@@ -24,29 +73,13 @@
"navigationBarBackgroundColor": "#ffffff" //背景颜色
}
}, {
- "path": "pages/homepage/homepage",
- "style": {
- "navigationBarTitleText": "泉医到家",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff"
- }
- }, {
- "path": "pages/CommodityDetails/CommodityDetails",
- "style": {
- "navigationBarTitleText": "商品详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff"
- }
- },
- {
"path": "pages/detail/detail",
"style": {
"navigationBarTitleText": "护理站简介",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //背景颜色
}
- },
- {
+ }, {
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "商品详情",
@@ -66,13 +99,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
- }, {
- "path": "pages/shopping/shopping",
- "style": {
- "navigationBarTitleText": "医路优品",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff"
- }
}, {
"path": "pages/ProductList/ProductList",
"style": {
@@ -87,6 +113,13 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
+ }, {
+ "path": "pages/medicine/medicine",
+ "style": {
+ "navigationBarTitleText": "就医",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
}
],
"globalStyle": {
diff --git a/pages/CommodityDetails/CommodityDetails.vue b/pages/CommodityDetails/CommodityDetails.vue
index 63064d0..b89d76c 100644
--- a/pages/CommodityDetails/CommodityDetails.vue
+++ b/pages/CommodityDetails/CommodityDetails.vue
@@ -8,12 +8,6 @@
-
-
-
-
-
-
@@ -115,10 +109,6 @@
//轮播内容
info: [{
content: '内容 A'
- }, {
- content: '内容 B'
- }, {
- content: '内容 C'
}],
current: 0, //轮播初始下标
mode: 'dot', //轮播点样式
@@ -141,19 +131,7 @@
diff --git a/pages/Personal/Personal.vue b/pages/Personal/Personal.vue
index 1c7d31a..2ffce85 100644
--- a/pages/Personal/Personal.vue
+++ b/pages/Personal/Personal.vue
@@ -36,49 +36,12 @@
diff --git a/pages/doctorslist/doctorslist.vue b/pages/doctorslist/doctorslist.vue
new file mode 100644
index 0000000..e3a5133
--- /dev/null
+++ b/pages/doctorslist/doctorslist.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ 某某某
+
+
+
+
+
+
+ 某某某
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index a4352f6..7548e43 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -7,7 +7,7 @@
护理站
-
+
就医
@@ -34,38 +34,35 @@
+
+
diff --git a/pages/login/login.vue b/pages/login/login.vue
index a9ef3b2..6ffa40e 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -258,10 +258,6 @@
diff --git a/pages/register/register.vue b/pages/register/register.vue
index efe1255..f89c1b3 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -62,10 +62,6 @@
diff --git a/pages/site/site.vue b/pages/site/site.vue
index dbe7fc2..1b3f14b 100644
--- a/pages/site/site.vue
+++ b/pages/site/site.vue
@@ -1,13 +1,18 @@
-
+
+
+
+
+
@@ -15,15 +20,11 @@
济南护万家护理有限公司
距离您800米
-
-
-
-
-
- 泉医通
- 济卫护理联盟NO.1
-
-
+
+
+
+ 泉医通
+ 济卫护理联盟NO.1
点击了解
@@ -57,11 +58,9 @@
-
请打开系统定位
-
取消
去打开
@@ -99,87 +98,100 @@
pageNum: 1,
pageSize: 10,
mask: false,
+
+ id: 0, // 使用 marker点击事件 需要填写id
+ title: 'map',
+ latitude: 36.661634,
+ longitude: 117.025323,
+ covers: [{
+ latitude: 39.909,
+ longitude: 116.39742,
+
+ }, {
+ latitude: 39.90,
+ longitude: 116.39,
+
+ }]
}
},
onReachBottom() {
- this.pageNum++;
- if (this.nurseTypeCode != undefined) {
- nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseTypeCode, this.iptVal)
- .then(res => {
- if (res.total == this.nearbylist.length) {
+ // this.pageNum++;
+ // if (this.nurseTypeCode != undefined) {
+ // nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseTypeCode, this.iptVal)
+ // .then(res => {
+ // if (res.total == this.nearbylist.length) {
- } else {
- res.rows.forEach(e => {
- this.nearbylist.push(e)
- })
- }
- })
- } else {
- uni.request({
- url: baseurl +
- `/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${this.pageSize}&pageNum=${this.pageNum}&homeLongitude=${this.longitude}&homeLatitude=${this.latitude}&nurseStationName=${this.iptVal}`, //仅为示例,并非真实接口地址。
- success: (res) => {
- if (res.data.total == this.nearbylist.length) {} else {
- res.data.rows.forEach(e => {
- this.nearbylist.push(e)
- })
- }
- console.log(this.nearbylist)
- }
- });
- }
+ // } else {
+ // res.rows.forEach(e => {
+ // this.nearbylist.push(e)
+ // })
+ // }
+ // })
+ // } else {
+ // uni.request({
+ // url: baseurl +
+ // `/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${this.pageSize}&pageNum=${this.pageNum}&homeLongitude=${this.longitude}&homeLatitude=${this.latitude}&nurseStationName=${this.iptVal}`, //仅为示例,并非真实接口地址。
+ // success: (res) => {
+ // if (res.data.total == this.nearbylist.length) {} else {
+ // res.data.rows.forEach(e => {
+ // this.nearbylist.push(e)
+ // })
+ // }
+ // console.log(this.nearbylist)
+ // }
+ // });
+ // }
},
watch: {
- iptVal() {
- this.requestinfo()
- },
+ // iptVal() {
+ // this.requestinfo()
+ // },
},
onShow() {},
onLoad(options) {
- console.log(options)
- console.log(baseurl)
- this.baseurl = baseurl;
- this.nurseTypeCode = options.nurseTypeCode
- var that = this
- uni.getStorage({
- key: 'openid',
- success(res) {
- console.log(res)
- that.openid = res.data
- getPatientInfo(that.openid).then(res => {
- // console.log(res)
- if (res.code == 200) {
- that.latitude = res.data.homeLatitude
- that.longitude = res.data.homeLongitude
- console.log(that.latitude, that.longitude)
- if (!that.latitude) {
- that.latitude = 36.661634
- }
- if (!that.longitude) {
- that.longitude = 117.025323
- }
- that.markers.push({
- id: 3,
- latitude: res.data.homeLatitude,
- longitude: res.data.homeLongitude,
- width: 20,
- height: 25,
- iconPath: "../../static/location.png"
- })
- }
- })
- }
- })
- that.requestinfo()
+ // console.log(options)
+ // console.log(baseurl)
+ // this.baseurl = baseurl;
+ // this.nurseTypeCode = options.nurseTypeCode
+ // var that = this
+ // uni.getStorage({
+ // key: 'openid',
+ // success(res) {
+ // console.log(res)
+ // that.openid = res.data
+ // getPatientInfo(that.openid).then(res => {
+ // // console.log(res)
+ // if (res.code == 200) {
+ // that.latitude = res.data.homeLatitude
+ // that.longitude = res.data.homeLongitude
+ // console.log(that.latitude, that.longitude)
+ // if (!that.latitude) {
+ // that.latitude = 36.661634
+ // }
+ // if (!that.longitude) {
+ // that.longitude = 117.025323
+ // }
+ // that.markers.push({
+ // id: 3,
+ // latitude: res.data.homeLatitude,
+ // longitude: res.data.homeLongitude,
+ // width: 20,
+ // height: 25,
+ // iconPath: "../../static/location.png"
+ // })
+ // }
+ // })
+ // }
+ // })
+ // that.requestinfo()
},
methods: {
- detailed(){
- uni.navigateTo({
- url: `/pages/detail/detail`
- })
- },
+ detailed() {
+ uni.navigateTo({
+ url: `/pages/detail/detail`
+ })
},
// getsite() {
// let data={};
@@ -218,8 +230,8 @@
url: `/pages/details/details?id=${item.nurseStationId}`
})
},
- }
-
+ },
+ }