Commit 0e4aa73baed29b499561ef7ae9d8b76e2b79eba7

Authored by wangfan
1 parent 9dbd4328

manager-invitation

... ... @@ -68,6 +68,8 @@ Page({
addr:res.data.seller_address,
image:res.data.image_url,
hasCanSuccess:hasCanSuccess,
lat:res.data.lat,
long:res.data.long,
}
}
if(hasOwner){
... ... @@ -180,4 +182,16 @@ Page({
util.toast('赴约成功','none')
}
},
lookLocation:function(){
//console.log(this.data.seller.lat,this.data.seller.long,this.data.detail.map_address)
wx.openLocation({
latitude:Number(this.data.seller.lat),
longitude:Number(this.data.seller.long),
scale:17,
address:this.data.seller.addr,
success:function (res) {
console.log(res)
}
})
},
})
\ No newline at end of file
... ...
... ... @@ -14,7 +14,7 @@
<view class="title">时间</view>
<view class="content">{{date}}</view>
<view class="title">店铺地址</view>
<view class="content flex-cc addr">
<view class="content flex-cc addr" bindtap="lookLocation">
<image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image>
{{addr}}
</view>
... ... @@ -47,7 +47,7 @@
<view class="seller flex-vc">
<view class="content">{{date}}</view>
<view class="content">{{name}}{{room}}</view>
<view class="content flex-cc addr">
<view class="content flex-cc addr" bindtap="lookLocation">
<image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image>
{{addr}}
</view>
... ...