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