Commit 765bd14d11b3e1d69f52c1952907efc1317415d1

Authored by wangfan
1 parent afba000b

c端预定

@@ -185,4 +185,16 @@ Page({ @@ -185,4 +185,16 @@ Page({
185 }); 185 });
186 }) 186 })
187 }, 187 },
  188 + lookLocation:function(){
  189 + //console.log(this.data.seller.lat,this.data.seller.long,this.data.detail.map_address)
  190 + wx.openLocation({
  191 + latitude:Number(this.data.seller.lat),
  192 + longitude:Number(this.data.seller.long),
  193 + scale:17,
  194 + address:this.data.seller.map_address,
  195 + success:function (res) {
  196 + console.log(res)
  197 + }
  198 + })
  199 + },
188 }) 200 })
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 <view class="icon car" wx:if="{{seller.is_parking==1}}">停车场</view> 30 <view class="icon car" wx:if="{{seller.is_parking==1}}">停车场</view>
31 </view> 31 </view>
32 </view> 32 </view>
33 - <view class="addr"> 33 + <view class="addr" bindtap="lookLocation">
34 <view class="addr-text flex-ll"> 34 <view class="addr-text flex-ll">
35 <image src="http://qn.colorcun.com/custom/lite-online/image/%E5%AE%9A%E4%BD%8D.png"></image> 35 <image src="http://qn.colorcun.com/custom/lite-online/image/%E5%AE%9A%E4%BD%8D.png"></image>
36 <view>{{seller.map_address}}</view> 36 <view>{{seller.map_address}}</view>
@@ -70,10 +70,10 @@ @@ -70,10 +70,10 @@
70 background-image: url("http://qn.colorcun.com/custom/lite-online/image/%E5%8C%85%E9%97%B4.png"); 70 background-image: url("http://qn.colorcun.com/custom/lite-online/image/%E5%8C%85%E9%97%B4.png");
71 } 71 }
72 .peitao .icon.ka{ 72 .peitao .icon.ka{
73 - background-image: url("http://qn.colorcun.com/custom/lite-online/image/%E5%8D%A1%E5%BA%A7.png"); 73 + background-image: url("http://qn.colorcun.com/custom/lite-online/image/%E5%8D%A1%E5%BA%A72.png");
74 } 74 }
75 .peitao .icon.car{ 75 .peitao .icon.car{
76 - background-image: url("http://qn.colorcun.com/custom/lite-online/image/%E5%81%9C%E8%BD%A6.png"); 76 + background-image: url("http://qn.colorcun.com/custom/lite-online/image/%E5%81%9C%E8%BD%A6%E5%9C%BA2.png");
77 } 77 }
78 78
79 79
@@ -219,6 +219,7 @@ @@ -219,6 +219,7 @@
219 } 219 }
220 .cais-text{ 220 .cais-text{
221 margin-top: 60rpx; 221 margin-top: 60rpx;
  222 + font-size: 28rpx;
222 } 223 }
223 .cais-text view{ 224 .cais-text view{
224 height: 50rpx; 225 height: 50rpx;