From d495c39534e3296ffe27eb998757ada8ee837c87 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 25 Jun 2024 22:25:43 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E5=9B=BE=E7=89=87=20=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 96cd271..595b7a9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -145,7 +145,7 @@ - + 助眠解压 From f26341c57b2e26a2e5ab605f2b771a75a64ffddc Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 25 Jun 2024 22:28:53 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=99=84=E8=BF=91?= =?UTF-8?q?=E6=8A=80=E5=B8=88=E6=98=BE=E7=A4=BA=E8=B7=9D=E7=A6=BB=E9=9A=90?= =?UTF-8?q?=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 595b7a9..81c882c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -118,10 +118,10 @@ - + From 6ca920531e5c5769f1660c88fd1ddea9c819ef3f Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 25 Jun 2024 22:48:55 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20=E9=99=84=E8=BF=91?= =?UTF-8?q?=E6=8A=80=E5=B8=88=E5=AE=9A=E4=BD=8D=E8=B7=9D=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 51 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 81c882c..e447122 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -118,10 +118,10 @@ - + {{item.dingwei}}km + @@ -479,6 +479,23 @@ // } }, methods: { + calculateDistance(lat1, lon1, lat2, lon2) { + // 将经纬度转换为弧度 + const radLat1 = lat1 * (Math.PI / 180); + const radLat2 = lat2 * (Math.PI / 180); + const radLon1 = lon1 * (Math.PI / 180); + const radLon2 = lon2 * (Math.PI / 180); + const a = radLat1 - radLat2; + const b = radLon1 - radLon2; + + // 使用海里公式计算距离 + const Haversine = Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2); + const distance = 2 * 6371 * Math.atan2(Math.sqrt(Haversine), Math.sqrt(1 - Haversine)); + + // 返回单位为公里的距离 + return distance; + + }, // 开启订阅消息 openMsg() { console.log('订阅消息') @@ -749,8 +766,32 @@ this.$Request.get("/app/artificer/getHomeArtificerList",data).then(res => { if (res.code == 0) { this.starTechnician = res.startData.list; - this.nearbyTechnician=res.nearData.list - console.log("starTechnician",res.startData.list) + this.nearbyTechnician=res.nearData.list; + const myLatitude = this.latitude; // 当前位置纬度 + const myLongitude = this.longitude; // 当前位置经度 + // const targetLatitude = 39.919; // 目标位置纬度 + // const targetLongitude = 116.486; // 目标位置经度 + const targetLatitude = ''; // 目标位置纬度 + const targetLongitude =''; // 目标位置经度 + for(var i=0;i",this.nearbyTechnician) // this.classifyId = res.data[0].id; // this.getorderlist('') } From ad75e5f94891839ee744bf12ec41615e251bfcd2 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 25 Jun 2024 22:50:23 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=99=84=E8=BF=91?= =?UTF-8?q?=E6=8A=80=E5=B8=88=E5=AE=9A=E4=BD=8D=E8=B7=9D=E7=A6=BB=E6=89=93?= =?UTF-8?q?=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index e447122..9d62e24 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -767,15 +767,13 @@ if (res.code == 0) { this.starTechnician = res.startData.list; this.nearbyTechnician=res.nearData.list; - const myLatitude = this.latitude; // 当前位置纬度 - const myLongitude = this.longitude; // 当前位置经度 + // const myLatitude = this.latitude; // 当前位置纬度 + // const myLongitude = this.longitude; // 当前位置经度 // const targetLatitude = 39.919; // 目标位置纬度 // const targetLongitude = 116.486; // 目标位置经度 - const targetLatitude = ''; // 目标位置纬度 - const targetLongitude =''; // 目标位置经度 + // const targetLatitude = ''; // 目标位置纬度 + // const targetLongitude =''; // 目标位置经度 for(var i=0;i",this.nearbyTechnician) // this.classifyId = res.data[0].id; // this.getorderlist('') From dfb998f2e36d3b95b97993b6c3865177cbead0db Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 25 Jun 2024 23:07:20 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E6=89=BE=E4=BA=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 +++--- pages/index/index.vue | 7 ++++++- pages/therapist/therapist.vue | 11 +++++++---- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/pages.json b/pages.json index b7cb449..7206c3d 100644 --- a/pages.json +++ b/pages.json @@ -454,7 +454,7 @@ "path": "pages/therapist/therapist", "style": { "navigationBarTitleText": "理疗师", - "enablePullDownRefresh": true, + "enablePullDownRefresh": false, "app-plus": { "titleNView": false } @@ -466,7 +466,7 @@ "path": "pages/therapist/therapist", "style": { "navigationBarTitleText": "理疗师", - "enablePullDownRefresh": true, + "enablePullDownRefresh": false, "app-plus": { "titleNView": false } @@ -484,7 +484,7 @@ "path": "pages/therapist/orderDetail", "style": { "navigationBarTitleText": "理疗师详情", - "enablePullDownRefresh": true, + "enablePullDownRefresh": false, "app-plus": { "titleNView": false } diff --git a/pages/index/index.vue b/pages/index/index.vue index 9d62e24..fa15d8c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -59,7 +59,7 @@ 盛安套餐 - + 盛安技师 @@ -597,6 +597,11 @@ } }) }, + goNavs(e){ + uni.switchTab({ + url:e + }) + }, goNav(e){ if(e!=undefined){ uni.navigateTo({ diff --git a/pages/therapist/therapist.vue b/pages/therapist/therapist.vue index 456612f..7251cc4 100644 --- a/pages/therapist/therapist.vue +++ b/pages/therapist/therapist.vue @@ -1215,14 +1215,17 @@ import permision from "@/components/permission.js"; this.page = this.page + 1; this.getlist() }, - onPullDownRefresh: function() { - this.page = 1; - this.getlist() - }, + // onPullDownRefresh: function() { + // this.page = 1; + // this.getlist() + // }, }