增加跳转地图
This commit is contained in:
@ -125,7 +125,7 @@
|
|||||||
v-if="orderInfo.shippingType === 2 && orderInfo.paid === 1"
|
v-if="orderInfo.shippingType === 2 && orderInfo.paid === 1"
|
||||||
>
|
>
|
||||||
<div>自提地址信息</div>
|
<div>自提地址信息</div>
|
||||||
<div class="place cart-color acea-row row-center-wrapper" @click="showChang">
|
<div class="place cart-color acea-row row-center-wrapper" @click="showChang(orderInfo.systemStore)">
|
||||||
<span class="iconfont icon-weizhi"></span>查看位置
|
<span class="iconfont icon-weizhi"></span>查看位置
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -494,25 +494,29 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
showChang: function() {
|
showChang: function(data) {
|
||||||
// 这里判断是不是微信小程序
|
// 这里判断是不是微信小程序
|
||||||
if (isWeixin()) {
|
this.$yrouter.push({
|
||||||
let config = {
|
path: "/pages/map/index",
|
||||||
latitude: this.system_store.latitude,
|
query: data
|
||||||
longitude: this.system_store.longitude,
|
});
|
||||||
name: this.system_store.name,
|
// if (isWeixin()) {
|
||||||
address: this.system_store.address
|
// let config = {
|
||||||
};
|
// latitude: this.system_store.latitude,
|
||||||
} else {
|
// longitude: this.system_store.longitude,
|
||||||
if (!this.mapKey)
|
// name: this.system_store.name,
|
||||||
uni.showToast({
|
// address: this.system_store.address
|
||||||
title: "暂无法使用查看地图,请配置您的腾讯地图key",
|
// };
|
||||||
icon: "none",
|
// } else {
|
||||||
duration: 2000
|
// if (!this.mapKey)
|
||||||
});
|
// uni.showToast({
|
||||||
return;
|
// title: "暂无法使用查看地图,请配置您的腾讯地图key",
|
||||||
this.mapShow = true;
|
// icon: "none",
|
||||||
}
|
// duration: 2000
|
||||||
|
// });
|
||||||
|
// return;
|
||||||
|
// this.mapShow = true;
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
if (this.name === "MyOrder") {
|
if (this.name === "MyOrder") {
|
||||||
|
@ -29,38 +29,6 @@
|
|||||||
</view>
|
</view>
|
||||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||||
</view>
|
</view>
|
||||||
<!-- <div>
|
|
||||||
<iframe
|
|
||||||
v-if="locationShow && !isWeixin"
|
|
||||||
ref="geoPage"
|
|
||||||
width="0"
|
|
||||||
height="0"
|
|
||||||
frameborder="0"
|
|
||||||
style="display:none;"
|
|
||||||
scrolling="no"
|
|
||||||
:src="
|
|
||||||
'https://apis.map.qq.com/tools/geolocation?key=' +
|
|
||||||
mapKey +
|
|
||||||
'&referer=myapp'
|
|
||||||
"
|
|
||||||
></iframe>
|
|
||||||
</div>
|
|
||||||
<div class="geoPage" v-if="mapShow">
|
|
||||||
<iframe
|
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
frameborder="0"
|
|
||||||
scrolling="no"
|
|
||||||
:src="
|
|
||||||
'https://apis.map.qq.com/uri/v1/geocoder?coord=' +
|
|
||||||
system_store.latitude +
|
|
||||||
',' +
|
|
||||||
system_store.longitude +
|
|
||||||
'&referer=' +
|
|
||||||
mapKey
|
|
||||||
"
|
|
||||||
></iframe>
|
|
||||||
</div>-->
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -98,6 +66,12 @@ export default {
|
|||||||
!this.loading && this.getOrderList();
|
!this.loading && this.getOrderList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showMaoLocation(data) {
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: "/pages/map/index",
|
||||||
|
query: data
|
||||||
|
});
|
||||||
|
},
|
||||||
// 选中门店
|
// 选中门店
|
||||||
checked(e) {
|
checked(e) {
|
||||||
if (this.goName === "orders") {
|
if (this.goName === "orders") {
|
||||||
|
Reference in New Issue
Block a user