From 2da9540faa7a937cdc9aaa167fa684d3008e7bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 20 Sep 2024 15:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=98=8E=E6=98=9F=E6=8A=80?= =?UTF-8?q?=E5=B8=88=E4=B8=8D=E6=98=BE=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 122 +++++++++++++++++++++--------------------- 1 file changed, 62 insertions(+), 60 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 64d2c13..4fe5f42 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -572,7 +572,7 @@ } // #endif that.getIsVip() - that.getHomeArtificerList(); + // that.getHomeArtificerList(); that.getHomeNearbyList(); }else{ // uni.navigateTo({ @@ -1020,7 +1020,6 @@ wx.requestSubscribeMessage({ tmplIds: this.arr, success(re) { - console.log(JSON.stringify(re), 111111111111) var datas = JSON.stringify(re); if (datas.indexOf("accept") != -1) { console.log(re) @@ -1044,7 +1043,7 @@ }, goOrder(e) { - console.log('授权', uni.getStorageSync('sendMsg')) + // console.log('授权', uni.getStorageSync('sendMsg')) if (uni.getStorageSync('sendMsg')) { console.log('授权+1') wx.requestSubscribeMessage({ @@ -1163,69 +1162,72 @@ } return status; }, - getHomeNearbyList(){//附近技师 + getHomeNearbyList(){//附近技师和明星技师 var data={ - isStart: 1, - status: 1, - // city:this.cityname, - longitude:this.longitude, - latitude:this.latitude, - page: 1, - limit: 3 - } + isStart: 1, + status: 1, + // city:this.cityname, + longitude:this.longitude, + latitude:this.latitude, + page: 1, + limit: 3 + } this.$Request.get("/app/artificer/getHomeArtificerList",data).then(res => { if (res.code == 0) { - 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 a.dingwei - b.dingwei); - // this.classifyId = res.data[0].id; - // this.getorderlist('') - } - }); - }, - getHomeArtificerList(){//明星技师 - var data={ - isStart: 1, - status: 1, - // city:this.cityname, - longitude:this.longitude, - latitude:this.latitude, - page: 1, - limit: 3 - } - this.$Request.get("/app/artificer/getHomeArtificerList",data).then(res => { - if (res.code == 0) { - this.starTechnician = res.startData.list; - // for(var i=0;i a.dingwei - b.dingwei); + // this.classifyId = res.data[0].id; + // this.getorderlist('') } }); }, + // getHomeArtificerList(){//明星技师 + // var data={ + // isStart: 1, + // status: 1, + // // city:this.cityname, + // longitude:this.longitude, + // latitude:this.latitude, + // page: 1, + // limit: 3 + // } + // this.$Request.get("/app/artificer/getHomeArtificerList",data).then(res => { + // console.log(res); + // if (res.code == 0) { + + // this.starTechnician = res.startData.list; + // // for(var i=0;i