|
@@ -14,6 +14,20 @@
|
|
|
<image class="icon_2" referrerpolicy="no-referrer" src="../../../static/images/quehuan.png" />
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <u-popup :show="showMap" mode="center" @close="showMap = false" @open="open">
|
|
|
+ <view class="popup flex-col justify-center ">
|
|
|
+
|
|
|
+<view class="map1_box flex-row justify-center">
|
|
|
+ <map id="map1" class="map" :latitude="markers[0].latitude" :longitude="markers[0].longitude" :markers="markers"
|
|
|
+ @regionchange="regionChange">
|
|
|
+ </map>
|
|
|
+</view>
|
|
|
+<view class="btn_box flex-row justify-center">
|
|
|
+ <u-button @click="closePopup">取消</u-button>
|
|
|
+ <u-button @click="closePopup">确定</u-button>
|
|
|
+</view>
|
|
|
+</view>
|
|
|
+ </u-popup>
|
|
|
<!-- 轮播 -->
|
|
|
<view class="swiper-group">
|
|
|
<u-swiper :list="swiperList" @change="e => current = e.current" :autoplay="false">
|
|
@@ -45,20 +59,6 @@
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
</view>
|
|
|
- <uni-popup ref="popup" type="top">
|
|
|
- <view class="popup flex-col justify-center ">
|
|
|
-
|
|
|
- <view class="map1_box flex-row justify-center">
|
|
|
- <map id="map1" class="map" :latitude="markers[0].latitude" :longitude="markers[0].longitude" :markers="markers"
|
|
|
- @regionchange="regionChange">
|
|
|
- </map>
|
|
|
- </view>
|
|
|
- <view class="btn_box flex-row justify-center">
|
|
|
- <u-button @click="closePopup">取消</u-button>
|
|
|
- <u-button @click="closePopup">确定</u-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-popup>
|
|
|
|
|
|
<u-popup :round="15" :show="showTips" class="TipsPop" mode="center" @close="showTips = false" @open="() => { }">
|
|
|
<view class="tips">
|
|
@@ -114,6 +114,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
showTips: true,
|
|
|
+ showMap: false,
|
|
|
markers: [{
|
|
|
id: 1,
|
|
|
latitude: '',//纬度,必填
|
|
@@ -231,11 +232,11 @@ export default {
|
|
|
|
|
|
|
|
|
closePopup () {
|
|
|
- this.$refs.popup.close()
|
|
|
+ this.showMap = false
|
|
|
},
|
|
|
|
|
|
changeAddress () {
|
|
|
- this.$refs.popup.open('top')
|
|
|
+ this.showMap = true
|
|
|
},
|
|
|
// 通过自带的方法获取到当前的经纬度,调用方法获取到地址获取到地址的中文信息
|
|
|
getCurrentLocation () {
|
|
@@ -277,13 +278,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
pullResh () {
|
|
|
- if (this.current == 0) {
|
|
|
- uni.showLoading({ title: '刷新中' });
|
|
|
- this.getAdsList()
|
|
|
- this.getLatestGroupon()
|
|
|
- } else {
|
|
|
- this.$refs.latestGroupBuying.getGoodsPage()
|
|
|
- }
|
|
|
+ // if (this.current == 0) {
|
|
|
+ // uni.showLoading({ title: '刷新中' });
|
|
|
+ // this.getAdsList()
|
|
|
+ // this.getLatestGroupon()
|
|
|
+ // } else {
|
|
|
+ // this.$refs.latestGroupBuying.getGoodsPage()
|
|
|
+ // }
|
|
|
},
|
|
|
getLatestGroupon () {
|
|
|
// let that = this;
|