|
@@ -33,7 +33,7 @@
|
|
<text>采集终端:</text>
|
|
<text>采集终端:</text>
|
|
<text>{{detailMessage.deviceCode}}</text>
|
|
<text>{{detailMessage.deviceCode}}</text>
|
|
</view>
|
|
</view>
|
|
- <view>
|
|
|
|
|
|
+ <view style="word-break:keep-all;white-space:nowrap; ">
|
|
<text>站点地址:</text>
|
|
<text>站点地址:</text>
|
|
<text>{{detailMessage.address}}<text class="icon iconfont map" @click="mapLocation()"></text></text>
|
|
<text>{{detailMessage.address}}<text class="icon iconfont map" @click="mapLocation()"></text></text>
|
|
</view>
|
|
</view>
|
|
@@ -151,7 +151,10 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
|
|
|
+<script>
|
|
|
|
+ //引入js sdk的封装
|
|
|
|
+ import * as jwx from '../../util/jssdk.js'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -300,14 +303,27 @@
|
|
|
|
|
|
mapLocation() {
|
|
mapLocation() {
|
|
|
|
|
|
- window.location.href = 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+parseFloat(this.detailMessage.latitude)+','+parseFloat(this.detailMessage.longitude)+''
|
|
|
|
|
|
+ // window.location.href = 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+parseFloat(this.detailMessage.latitude)+','+parseFloat(this.detailMessage.longitude)+''
|
|
|
|
+
|
|
// uni.openLocation({
|
|
// uni.openLocation({
|
|
// latitude: parseFloat(this.detailMessage.latitude),
|
|
// latitude: parseFloat(this.detailMessage.latitude),
|
|
// longitude: parseFloat(this.detailMessage.longitude),
|
|
// longitude: parseFloat(this.detailMessage.longitude),
|
|
// success: function() {
|
|
// success: function() {
|
|
// console.log('success');
|
|
// console.log('success');
|
|
// }
|
|
// }
|
|
- // });
|
|
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ // 微信公众号导航
|
|
|
|
+ jwx.configWeiXin(jweixin => {
|
|
|
|
+ let shareInfo = {
|
|
|
|
+ latitude: parseFloat(this.detailMessage.latitude), // 纬度,浮点数,范围为90 ~ -90
|
|
|
|
+ longitude: parseFloat(this.detailMessage.longitude), // 经度,浮点数,范围为180 ~ -180。
|
|
|
|
+ name: this.detailMessage.siteName, // 位置名
|
|
|
|
+ address: this.detailMessage.address, // 地址详情说明
|
|
|
|
+ scale: 15, // 地图缩放级别,整型值,范围从1~28。默认为最大
|
|
|
|
+ };
|
|
|
|
+ jweixin.openLocation(shareInfo);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
|
|
// 页面跳转
|
|
// 页面跳转
|