Browse Source

Merge branch 'master' of https://git.nanodreamtech.com/Boss/yizhizan-h5

wkw 7 tháng trước cách đây
mục cha
commit
e6a86c1b26
1 tập tin đã thay đổi với 15 bổ sung2 xóa
  1. 15 2
      my/jilu/mianshiDetail.vue

+ 15 - 2
my/jilu/mianshiDetail.vue

@@ -58,9 +58,10 @@
             <view class="msg-label">备注</view>
             <view class="msg-value">{{info.remarks}}</view>
           </view>
-          <view class="msg-item">
+          <view class="msg-item" @tap.stop="gotoMap()">
             <view class="msg-label">地址</view>
             <view class="msg-value">{{info.address}} {{info.detailedAddress}}</view>
+			<u-icon name="arrow-right"></u-icon>
           </view>
         </view>
         <view class="map-box">
@@ -330,7 +331,19 @@ export default {
 				})
 			}
 		})
-	}
+	},
+	//拉起地图导航
+	gotoMap() {
+		let that = this
+		uni.openLocation({
+			latitude: that.info.lat,
+			longitude: that.info.lng,
+			address: that.info.address+that.info.detailedAddress,
+			complete(ret) {
+	
+			}
+		})
+	},
   },
 };
 </script>