Commit 73120e4a0a3f407e5f29081b5a9eaac4e8c461a2

Authored by vking
1 parent cb450afc

new 2.0

@@ -6,10 +6,10 @@ @@ -6,10 +6,10 @@
6 <image src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}" class="avatar-image" mode="aspectFill" lazy-load></image> 6 <image src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}" class="avatar-image" mode="aspectFill" lazy-load></image>
7 <view class="avatar-txt text-white text-xs text-center" wx:if="{{seller.brand.name}}">{{seller.brand.name}}</view> 7 <view class="avatar-txt text-white text-xs text-center" wx:if="{{seller.brand.name}}">{{seller.brand.name}}</view>
8 </view> 8 </view>
9 - <view class="view detail margin-left-sm flex-treble margin-top-sm"> 9 + <view class="view detail margin-left-sm flex-treble margin-top-sm text-cut">
10 <view class="view flex align-center justify-between" style="height: 52rpx;"> 10 <view class="view flex align-center justify-between" style="height: 52rpx;">
11 - <view class="title">{{seller.sellername}}</view>  
12 - <view class="text-gray" style="font-size: 26rpx;">{{util.distance(seller.distance||seller.distance_centre)}}</view> 11 + <view class="view title text-cut">{{seller.sellername}}</view>
  12 + <view class="view text-gray" style="font-size: 26rpx;">{{util.distance(seller.distance||seller.distance_centre)}}</view>
13 </view> 13 </view>
14 <view class="view flex align-center text-gray margin-top-xs" style="height: 36rpx;"> 14 <view class="view flex align-center text-gray margin-top-xs" style="height: 36rpx;">
15 <view class="caixi flex"> 15 <view class="caixi flex">
@@ -99,4 +99,7 @@ @@ -99,4 +99,7 @@
99 background: linear-gradient(90deg, #3BBFF5 0%, #57A0FF 100%); 99 background: linear-gradient(90deg, #3BBFF5 0%, #57A0FF 100%);
100 border-radius: 28rpx; 100 border-radius: 28rpx;
101 z-index: 1; 101 z-index: 1;
  102 +}
  103 +.caixi-item+.caixi-item:before{
  104 + content: "/";
102 } 105 }
@@ -227,6 +227,16 @@ Page({ @@ -227,6 +227,16 @@ Page({
227 } 227 }
228 markers.push(marker) 228 markers.push(marker)
229 }) 229 })
  230 + markers.push({
  231 + id: 'local',
  232 + iconPath: "http://nosqn.colorcun.com/2.0/home%20%288%29.png" + cates_version,
  233 + latitude: (this.user.latitude||def_latitude)+'',
  234 + longitude: (this.user.longitude||def_longitude)+'',
  235 + width: 15,
  236 + height: 29,
  237 + zIndex: 9999,
  238 + zIndexBak:9999,
  239 + })
230 this.setData({ 240 this.setData({
231 markers:markers, 241 markers:markers,
232 }) 242 })
@@ -239,6 +249,7 @@ Page({ @@ -239,6 +249,7 @@ Page({
239 }) 249 })
240 }, 250 },
241 markertap(e){ 251 markertap(e){
  252 + if(!e.markerId || e.markerId=='local') return;
242 let markers=this.data.markers 253 let markers=this.data.markers
243 this.activeSellerID = e.markerId 254 this.activeSellerID = e.markerId
244 let bl = 1.2; 255 let bl = 1.2;
@@ -16,10 +16,17 @@ @@ -16,10 +16,17 @@
16 style="width: 100%; height: 360rpx;"></map> 16 style="width: 100%; height: 360rpx;"></map>
17 <view class="view content" style="height: {{height}}px;"> 17 <view class="view content" style="height: {{height}}px;">
18 <filter-group height="{{height}}"></filter-group> 18 <filter-group height="{{height}}"></filter-group>
19 - <scroll-view class="view scroll-view" scroll-y="true" bindscroll="scroll" style="width:100%;height: {{height-50}}px;">  
20 - <seller-card class="seller-card"  
21 - activeSellerID="{{activeSellerID}}"  
22 - seller="{{item}}" wx:for="{{sellers}}" wx:key="sellers"></seller-card> 19 + <scroll-view class="view scroll-view" scroll-y="true"
  20 + scroll-into-view="seller-{{activeSellerID}}"
  21 + scroll-with-animation
  22 + bindscroll="scroll" style="width:100%;height: {{height-50}}px;">
  23 + <block wx:for="{{sellers}}" wx:key="sellers">
  24 + <navigator url="/pages/reserve/detail?id={{item.id}}" hover-class="navigator-hover">
  25 + <seller-card class="seller-card" id="seller-{{item.id}}"
  26 + activeSellerID="{{activeSellerID}}"
  27 + seller="{{item}}" ></seller-card>
  28 + </navigator>
  29 + </block>
23 <view class="view" style="height: 192rpx;"></view> 30 <view class="view" style="height: 192rpx;"></view>
24 </scroll-view> 31 </scroll-view>
25 </view> 32 </view>