放开足球馆
This commit is contained in:
@@ -147,21 +147,21 @@ Page({
|
||||
this.setData({
|
||||
state: state
|
||||
})
|
||||
if (state == 3) {
|
||||
wx.showToast({
|
||||
title: '暂未开放,敬请期待',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
let list = [{
|
||||
longitude: this.data.longitude,
|
||||
latitude: this.data.latitude
|
||||
}];
|
||||
this.setData({
|
||||
includePoints: list
|
||||
})
|
||||
return;
|
||||
}
|
||||
// if (state == 3) {
|
||||
// wx.showToast({
|
||||
// title: '暂未开放,敬请期待',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
// let list = [{
|
||||
// longitude: this.data.longitude,
|
||||
// latitude: this.data.latitude
|
||||
// }];
|
||||
// this.setData({
|
||||
// includePoints: list
|
||||
// })
|
||||
// return;
|
||||
// }
|
||||
// this.getLngLat();
|
||||
this.getLocation();
|
||||
},
|
||||
@@ -177,7 +177,7 @@ Page({
|
||||
url: `/pages/basketballGym/index?id=${e.markerId}`,
|
||||
})
|
||||
}
|
||||
if (this.data.state == 2) {
|
||||
if (this.data.state == 2 || this.data.state == 3) {
|
||||
wx.navigateTo({
|
||||
url: `/pages/gymnasium/index?id=${e.markerId}`,
|
||||
})
|
||||
@@ -203,19 +203,6 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//扫描二维码
|
||||
sacnQRCode() {
|
||||
wx.scanCode({
|
||||
success (res) {
|
||||
wx.showToast({
|
||||
title: res.result,
|
||||
icon: 'none',
|
||||
duration: 5000
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转个人中心
|
||||
pushMine() {
|
||||
if (this.data.unClickBtn) {
|
||||
@@ -366,13 +353,13 @@ Page({
|
||||
// 东
|
||||
longitude: 121.7051696777,
|
||||
latitude: 31.2750297303
|
||||
},
|
||||
},
|
||||
{
|
||||
// 南
|
||||
longitude: 121.4167785645,
|
||||
latitude: 31.0317548780
|
||||
},
|
||||
{
|
||||
{
|
||||
// 西
|
||||
longitude: 121.2135314941,
|
||||
latitude: 31.2433336586
|
||||
@@ -512,4 +499,4 @@ function GetDistance(lat1, lng1, lat2, lng2) {
|
||||
s = Math.round(s * 1000) / 1; //单位修改为米,取整
|
||||
//s=s.toFixed(4);
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user