Commit 0e4aa73baed29b499561ef7ae9d8b76e2b79eba7

Authored by wangfan
1 parent 9dbd4328

manager-invitation

@@ -68,6 +68,8 @@ Page({ @@ -68,6 +68,8 @@ Page({
68 addr:res.data.seller_address, 68 addr:res.data.seller_address,
69 image:res.data.image_url, 69 image:res.data.image_url,
70 hasCanSuccess:hasCanSuccess, 70 hasCanSuccess:hasCanSuccess,
  71 + lat:res.data.lat,
  72 + long:res.data.long,
71 } 73 }
72 } 74 }
73 if(hasOwner){ 75 if(hasOwner){
@@ -180,4 +182,16 @@ Page({ @@ -180,4 +182,16 @@ Page({
180 util.toast('赴约成功','none') 182 util.toast('赴约成功','none')
181 } 183 }
182 }, 184 },
  185 + lookLocation:function(){
  186 + //console.log(this.data.seller.lat,this.data.seller.long,this.data.detail.map_address)
  187 + wx.openLocation({
  188 + latitude:Number(this.data.seller.lat),
  189 + longitude:Number(this.data.seller.long),
  190 + scale:17,
  191 + address:this.data.seller.addr,
  192 + success:function (res) {
  193 + console.log(res)
  194 + }
  195 + })
  196 + },
183 }) 197 })
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <view class="title">时间</view> 14 <view class="title">时间</view>
15 <view class="content">{{date}}</view> 15 <view class="content">{{date}}</view>
16 <view class="title">店铺地址</view> 16 <view class="title">店铺地址</view>
17 - <view class="content flex-cc addr"> 17 + <view class="content flex-cc addr" bindtap="lookLocation">
18 <image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image> 18 <image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image>
19 {{addr}} 19 {{addr}}
20 </view> 20 </view>
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 <view class="seller flex-vc"> 47 <view class="seller flex-vc">
48 <view class="content">{{date}}</view> 48 <view class="content">{{date}}</view>
49 <view class="content">{{name}}{{room}}</view> 49 <view class="content">{{name}}{{room}}</view>
50 - <view class="content flex-cc addr"> 50 + <view class="content flex-cc addr" bindtap="lookLocation">
51 <image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image> 51 <image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image>
52 {{addr}} 52 {{addr}}
53 </view> 53 </view>