|
|
@ -85,8 +85,13 @@ |
|
|
|
<wybPopup ref="popup" type="center" height="850" width="600" bgColor="" radius="6" :showCloseIcon="true"> |
|
|
|
<wybPopup ref="popup" type="center" height="850" width="600" bgColor="" radius="6" :showCloseIcon="true"> |
|
|
|
<image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image> |
|
|
|
<image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image> |
|
|
|
</wybPopup> |
|
|
|
</wybPopup> |
|
|
|
<button open-type="contact"> |
|
|
|
<button open-type="contact"> |
|
|
|
<image :src="imagewxUrl+imgadres4" mode="widthFix" class="xfimg"></image> |
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
|
|
|
<image :src="imagewxUrl+imgadres4" mode="widthFix" class="H5xfimg"></image> |
|
|
|
|
|
|
|
<!-- #endif --> |
|
|
|
|
|
|
|
<!-- #ifdef MP--> |
|
|
|
|
|
|
|
<image :src="imagewxUrl+imgadres4" mode="widthFix" class="xfimg"></image> |
|
|
|
|
|
|
|
<!-- #endif --> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<view class="height40"></view> |
|
|
|
<view class="height40"></view> |
|
|
|
<!-- <official-account bindload="bindload" binderror="binderror"></official-account> --> |
|
|
|
<!-- <official-account bindload="bindload" binderror="binderror"></official-account> --> |
|
|
@ -349,6 +354,9 @@ |
|
|
|
app.globalData.latitude = res.latitude; |
|
|
|
app.globalData.latitude = res.latitude; |
|
|
|
app.globalData.longitude = res.longitude; |
|
|
|
app.globalData.longitude = res.longitude; |
|
|
|
// that.findByLatAndLng(res.longitude, res.latitude); |
|
|
|
// that.findByLatAndLng(res.longitude, res.latitude); |
|
|
|
|
|
|
|
// #ifdef H5 |
|
|
|
|
|
|
|
that.getUserLocation(res.longitude, res.latitude); |
|
|
|
|
|
|
|
//#endif |
|
|
|
// #ifdef MP |
|
|
|
// #ifdef MP |
|
|
|
uni.request({ |
|
|
|
uni.request({ |
|
|
|
url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude + |
|
|
|
url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude + |
|
|
@ -464,9 +472,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//金纬度转 |
|
|
|
//H5金纬度转 |
|
|
|
getUserLocation(long, lat) { |
|
|
|
getUserLocation(long, lat) { |
|
|
|
let vm = this; |
|
|
|
let that = this; |
|
|
|
let url = |
|
|
|
let url = |
|
|
|
'https://apis.map.qq.com/ws/geocoder/v1?coord_type=5&get_poi=1&output=jsonp&poi_options=page_size=1;page_index=1'; |
|
|
|
'https://apis.map.qq.com/ws/geocoder/v1?coord_type=5&get_poi=1&output=jsonp&poi_options=page_size=1;page_index=1'; |
|
|
|
let locationObj = lat + ',' + long; |
|
|
|
let locationObj = lat + ',' + long; |
|
|
@ -475,12 +483,25 @@ |
|
|
|
location: locationObj |
|
|
|
location: locationObj |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
.then(res => { |
|
|
|
vm.city = res.result.address_component.city.replace(/市/g, ''); |
|
|
|
// vm.city = res.result.address_component.city.replace(/市/g, ''); |
|
|
|
app.globalData.cityName = res.result.address_component.city.replace(/市/g, ''); |
|
|
|
// app.globalData.cityName = res.result.address_component.city.replace(/市/g, ''); |
|
|
|
app.globalData.cityId = res.result.ad_info.adcode; |
|
|
|
// app.globalData.cityId = res.result.ad_info.adcode; |
|
|
|
vm.getCouponListArea(); |
|
|
|
// vm.getCouponListArea(); |
|
|
|
vm.getCouponListgold(); |
|
|
|
// vm.getCouponListgold(); |
|
|
|
uni.hideLoading() |
|
|
|
// uni.hideLoading() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
|
|
that.city = res.result.address_component.city; |
|
|
|
|
|
|
|
app.globalData.cityName = res.result.address_component |
|
|
|
|
|
|
|
.city; |
|
|
|
|
|
|
|
app.globalData.cityId = res.result.ad_info.adcode; |
|
|
|
|
|
|
|
// app.globalData.cityId = '500100'; |
|
|
|
|
|
|
|
that.getCouponListArea(); |
|
|
|
|
|
|
|
that.getCouponListgold(); |
|
|
|
|
|
|
|
that.getCmsContent(); |
|
|
|
|
|
|
|
that.getCmsAactibity(); |
|
|
|
|
|
|
|
that.getCmsContentcmshome(); |
|
|
|
|
|
|
|
that.getCmsContentcmsContent(); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
.catch(err => { |
|
|
|
uni.hideLoading() |
|
|
|
uni.hideLoading() |
|
|
@ -738,6 +759,13 @@ |
|
|
|
.popImg { |
|
|
|
.popImg { |
|
|
|
width: 300px; |
|
|
|
width: 300px; |
|
|
|
height: 440px; |
|
|
|
height: 440px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.H5xfimg{ |
|
|
|
|
|
|
|
width: 80rpx; |
|
|
|
|
|
|
|
bottom: 140rpx; |
|
|
|
|
|
|
|
position: fixed; |
|
|
|
|
|
|
|
right: 40rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.xfimg { |
|
|
|
.xfimg { |
|
|
|