|
@@ -52,9 +52,10 @@
|
|
|
<script>
|
|
|
|
|
|
</script>
|
|
|
-<script>
|
|
|
+<script>
|
|
|
+
|
|
|
//引入js sdk的封装
|
|
|
- // import * as jwx from '../../util/jssdk.js'
|
|
|
+ import * as jwx from '../../util/jssdk.js'
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -113,7 +114,7 @@
|
|
|
mapLocation(item) {
|
|
|
|
|
|
//h5 地图导航
|
|
|
- window.location.href = 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+parseFloat(item.latitude)+','+parseFloat(item.longitude)+''
|
|
|
+ // window.location.href = 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+parseFloat(item.latitude)+','+parseFloat(item.longitude)+''
|
|
|
|
|
|
//app导航
|
|
|
// uni.openLocation({
|
|
@@ -125,16 +126,16 @@
|
|
|
// });
|
|
|
|
|
|
// 微信公众号导航
|
|
|
- // jwx.configWeiXin(jweixin => {
|
|
|
- // let shareInfo = {
|
|
|
- // latitude: parseFloat(item.latitude), // 纬度,浮点数,范围为90 ~ -90
|
|
|
- // longitude: parseFloat(item.longitude), // 经度,浮点数,范围为180 ~ -180。
|
|
|
- // name: item.siteName, // 位置名
|
|
|
- // address: item.address, // 地址详情说明
|
|
|
- // scale: 15, // 地图缩放级别,整型值,范围从1~28。默认为最大
|
|
|
- // };
|
|
|
- // jweixin.openLocation(shareInfo);
|
|
|
- // });
|
|
|
+ jwx.configWeiXin(jweixin => {
|
|
|
+ let shareInfo = {
|
|
|
+ latitude: parseFloat(item.latitude), // 纬度,浮点数,范围为90 ~ -90
|
|
|
+ longitude: parseFloat(item.longitude), // 经度,浮点数,范围为180 ~ -180。
|
|
|
+ name: item.siteName, // 位置名
|
|
|
+ address: item.address, // 地址详情说明
|
|
|
+ scale: 15, // 地图缩放级别,整型值,范围从1~28。默认为最大
|
|
|
+ };
|
|
|
+ jweixin.openLocation(shareInfo);
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
async setDelSite(ming = {}) {
|