wpfw_ewei_wxapp/pages/order/store/map.js
2023-02-26 08:10:18 +08:00

36 lines
809 B
JavaScript

var t = getApp().requirejs("core");
Page({
data: {
storeid: 0,
merchid: 0,
markers: [],
store: {}
},
onLoad: function(t) {
this.setData({
storeid: t.id,
merchid: t.merchid
}), this.getInfo();
},
getInfo: function() {
var e = this;
t.get("store/map", {
id: this.data.storeid,
merchid: this.data.merchid
}, function(t) {
e.setData({
store: t.store,
markers: [ {
id: 1,
latitude: Number(t.store.lat),
longitude: Number(t.store.lng)
} ],
show: !0
});
});
},
phone: function(e) {
t.phone(e);
}
});