From b3b246673c725b9e2a073915257cfb207769a2a0 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Tue, 12 May 2026 18:13:56 +0800 Subject: [PATCH] 1 --- package1/index/deliveryPersonList.vue | 39 +++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/package1/index/deliveryPersonList.vue b/package1/index/deliveryPersonList.vue index ba4c0d2..4417dd0 100644 --- a/package1/index/deliveryPersonList.vue +++ b/package1/index/deliveryPersonList.vue @@ -65,7 +65,7 @@ 平均配送时长 {{worker.avgTime || 30}}分钟 + style="font-size: 30rpx;font-weight: 700;color: #000;">{{worker.avgTime | zhengshu}}分钟 @@ -83,7 +83,12 @@ - 备注:{{worker.remark || '无'}} + + 备注:{{worker.remark || '无'}} + + + 查看位置 + @@ -128,6 +133,12 @@ keyword: '' } }, + filters:{ + zhengshu(t){ + let intNum = Math.round(t); + return intNum + } + }, onReachBottom() { if (this.pageNum >= this.totalPages) return; // this.status = 'loading'; @@ -153,6 +164,29 @@ this.regionId = JSON.parse(uni.getStorageSync('area')).id }, methods: { + getLoca(item){ + console.log('aaaaa',item) + this.markers = [{ + id: 0, + latitude: item.geolocation[0], + longitude: item.geolocation[1], + title: item.workerName, + iconPath: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/801c569079da4540990c1cc634186fdd.png', // 用户位置图标 + width: 30, + height: 30, + callout: { + content: item.workerName, + color: '#333333', + fontSize: 14, + borderRadius: 10, + bgColor: '#ffffff', + padding: 6, + display: 'ALWAYS' // 可选 'BYCLICK'(点击) 或 'ALWAYS'(常显) + } + }] + this.latitude = this.markers[0].latitude + this.longitude = this.markers[0].longitude + }, getShopList() { this.loadStatus = 'loading'; // Fake request to our new endpoint @@ -419,6 +453,7 @@ line-height: 40rpx; color: #777; font-weight: 700; + display: flex; } .shop-menu-purchase {