Showing
2 changed files
with
13 additions
and
2 deletions
| @@ -82,6 +82,17 @@ Component({ | @@ -82,6 +82,17 @@ Component({ | ||
| 82 | } | 82 | } |
| 83 | this.setData(obj) | 83 | this.setData(obj) |
| 84 | } | 84 | } |
| 85 | - } | 85 | + }, |
| 86 | + lookLocation:function(){ | ||
| 87 | + wx.openLocation({ | ||
| 88 | + latitude:Number(this.data.seller.lat), | ||
| 89 | + longitude:Number(this.data.seller.long), | ||
| 90 | + scale:17, | ||
| 91 | + address:this.data.detail.map_address, | ||
| 92 | + success:function (res) { | ||
| 93 | + console.log(res) | ||
| 94 | + } | ||
| 95 | + }) | ||
| 96 | + }, | ||
| 86 | } | 97 | } |
| 87 | }) | 98 | }) |
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | <view class="value">{{tableSubInfo}}</view> | 25 | <view class="value">{{tableSubInfo}}</view> |
| 26 | </view> | 26 | </view> |
| 27 | </view> | 27 | </view> |
| 28 | - <view class="seller address flex-ll"> | 28 | + <view class="seller address flex-ll" catchtap="lookLocation"> |
| 29 | <view class="gps-icon"> | 29 | <view class="gps-icon"> |
| 30 | <image src="/pages/image/gps-icon.png"></image> | 30 | <image src="/pages/image/gps-icon.png"></image> |
| 31 | </view> | 31 | </view> |
-
Please register or login to post a comment