no message

This commit is contained in:
2024-03-20 18:16:30 +08:00
parent 6fe05463fa
commit edc6a1df50
8 changed files with 106 additions and 81 deletions

View File

@@ -30,7 +30,7 @@ Page({
return t.next = 2, o.getlocation();
case 2:
a = t.sent, console.log("result:", a), a && (o.latitude = a.latitude, o.longitude = a.longitude),
a = t.sent, console.log("result:", a), a && (o.latitude = a.latitude, o.longitude = a.longitude),
o.getData();
case 6:
@@ -88,9 +88,9 @@ Page({
latitude: this.latitude
}).then(function(e) {
wx.hideLoading(), 200 == e.code ? (e.data.list.forEach(function(t, e) {
t.id = e, t.width = 32, t.height = 32, t.latitude = 1 * t.latitude, t.longitude = 1 * t.longitude,
t.id = e, t.width = 32, t.height = 32, t.latitude = 1 * t.latitude, t.longitude = 1 * t.longitude,
t.iconPath = "/img/location-blue.png", t.callout = {
content: t.t_name
content: t.name
};
}), t.setData({
weather: e.data.weather,
@@ -114,7 +114,7 @@ Page({
t.iconPath = "/img/location-blue.png";
});
for (var e = 0; e < this.data.markers.length; e++) if (this.data.markers[e].id == t.detail.markerId) {
console.log(e), this.data.markers[e].iconPath = "/img/location-red.png", this.data.markers[e].width = 50,
console.log(e), this.data.markers[e].iconPath = "/img/location-red.png", this.data.markers[e].width = 50,
this.data.markers[e].height = 50, this.setData({
shop: Object.assign({}, this.data.markers[e]),
showshop: !0
@@ -157,7 +157,7 @@ Page({
wx.openLocation({
latitude: this.data.shop.latitude,
longitude: this.data.shop.longitude,
name: this.data.shop.t_name,
name: this.data.shop.name,
address: this.data.shop.address
});
}

View File

@@ -23,7 +23,7 @@
</cover-view>
</cover-view>
<cover-view class="{{showshop?'showshop shop':'shop'}}">
<cover-view class="name">{{shop.t_name}}</cover-view>
<cover-view class="name">{{shop.name}}</cover-view>
<cover-view class="border"></cover-view>
<cover-view class="add">
<cover-view class="l">