Commit df62395709daeeb5abf5d6a243e3275403f26efa

Authored by vking
1 parent 64d1cafe

列表样式调整

@@ -4,7 +4,14 @@ Component({ @@ -4,7 +4,14 @@ Component({
4 * 组件的属性列表 4 * 组件的属性列表
5 */ 5 */
6 properties: { 6 properties: {
7 - 7 + bgColor:{
  8 + type:String,
  9 + value:'#fff'
  10 + },
  11 + lineColor:{
  12 + type:String,
  13 + value:'#E0E0E0'
  14 + },
8 }, 15 },
9 16
10 /** 17 /**
1 <!--components/hr.wxml--> 1 <!--components/hr.wxml-->
2 <view class="hr flex-vc"> 2 <view class="hr flex-vc">
3 - <view class="hr-one flex-vc">  
4 - <view class="text"> 3 + <view class="hr-one flex-vc" style="background-color: {{lineColor}};">
  4 + <view class="text" style="background-color: {{bgColor}};">
5 <slot></slot> 5 <slot></slot>
6 </view> 6 </view>
7 </view> 7 </view>
@@ -9,10 +9,9 @@ @@ -9,10 +9,9 @@
9 } 9 }
10 .hr-one{ 10 .hr-one{
11 width: 100%; 11 width: 100%;
12 - background-color: #F5F5F5; 12 + background-color: #E0E0E0;
13 height: 2rpx; 13 height: 2rpx;
14 } 14 }
15 .text{ 15 .text{
16 - background-color: #fff;  
17 padding: 0 24rpx; 16 padding: 0 24rpx;
18 } 17 }
@@ -15,6 +15,9 @@ @@ -15,6 +15,9 @@
15 .seller.noshadow{ 15 .seller.noshadow{
16 box-shadow: none; 16 box-shadow: none;
17 } 17 }
  18 +.seller.noborder.noshadow{
  19 + width: 100%;
  20 +}
18 .seller image{ 21 .seller image{
19 width: 100%; 22 width: 100%;
20 height: 100%; 23 height: 100%;
@@ -192,12 +192,12 @@ Page({ @@ -192,12 +192,12 @@ Page({
192 }, 192 },
193 sellerFormat(sellers){ 193 sellerFormat(sellers){
194 sellers.forEach((seller) => { 194 sellers.forEach((seller) => {
195 - if(seller.distance) { 195 + if(seller.distance || seller.distance===0) {
196 seller.distance = parseInt(seller.distance); 196 seller.distance = parseInt(seller.distance);
197 if (seller.distance > 1000) { 197 if (seller.distance > 1000) {
198 - seller.distance = (seller.distance / 1000).toFixed(2) + '公里' 198 + seller.distance = (seller.distance / 1000).toFixed(2) + 'km'
199 } else { 199 } else {
200 - seller.distance += '米'; 200 + seller.distance += 'm';
201 } 201 }
202 } 202 }
203 }) 203 })
@@ -27,9 +27,13 @@ @@ -27,9 +27,13 @@
27 <view class="seller" wx:for="{{markers}}" wx:key="sellers.key" 27 <view class="seller" wx:for="{{markers}}" wx:key="sellers.key"
28 bindtap="gotoDetail" data-sid="{{item.id}}"> 28 bindtap="gotoDetail" data-sid="{{item.id}}">
29 <sb-tr seller="{{item}}" 29 <sb-tr seller="{{item}}"
30 - hasActivityTags="{{true}}" sellerStyle="noborder"></sb-tr> 30 + hasActivityTags="{{false}}"
  31 + hasActivityShort="{{true}}"
  32 + hasBrand="true" hasActivityTese="true"
  33 + hasSlogan="{{false}}"
  34 + sellerStyle="noborder noshadow"></sb-tr>
31 </view> 35 </view>
32 - <hr class="flex-vc nomore" wx:if="{{!hasMore}}">我是有底线的</hr> 36 + <hr class="flex-vc nomore" wx:if="{{!hasMore}}" bgColor="#f5f5f5">我是有底线的</hr>
33 </view> 37 </view>
34 </view> 38 </view>
35 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" 39 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}"
@@ -50,9 +50,11 @@ @@ -50,9 +50,11 @@
50 background-image: url("http://qn.colorcun.com/reserve/images/%E8%8F%9C%E7%B3%BB%E9%80%89%E4%B8%AD.png"); 50 background-image: url("http://qn.colorcun.com/reserve/images/%E8%8F%9C%E7%B3%BB%E9%80%89%E4%B8%AD.png");
51 } 51 }
52 52
53 - 53 +page{
  54 + background-color: #F5F5F5;
  55 +}
54 .pages{ 56 .pages{
55 - width: 90%; 57 + width: 100%;
56 margin: 81rpx auto 0; 58 margin: 81rpx auto 0;
57 color:#fff; 59 color:#fff;
58 font-size: 28rpx; 60 font-size: 28rpx;
@@ -65,8 +67,7 @@ @@ -65,8 +67,7 @@
65 background-color: #ffffff; 67 background-color: #ffffff;
66 border-radius: 6rpx; 68 border-radius: 6rpx;
67 overflow: hidden; 69 overflow: hidden;
68 - padding-bottom: 10rpx;  
69 - padding-top: 10rpx; 70 + margin: 10rpx 0 20rpx;
70 } 71 }
71 .nomore{ 72 .nomore{
72 color: #999; 73 color: #999;
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 "list": [] 45 "list": []
46 }, 46 },
47 "miniprogram": { 47 "miniprogram": {
48 - "current": 39, 48 + "current": 52,
49 "list": [ 49 "list": [
50 { 50 {
51 "id": 0, 51 "id": 0,
@@ -436,10 +436,10 @@ @@ -436,10 +436,10 @@
436 "scene": null 436 "scene": null
437 }, 437 },
438 { 438 {
439 - "id": -1, 439 + "id": 52,
440 "name": "pages/reserve/indexList", 440 "name": "pages/reserve/indexList",
441 "pathName": "pages/reserve/indexList", 441 "pathName": "pages/reserve/indexList",
442 - "query": "lat=34.21719&lng=108.89155&map={\"errMsg\":\"getMapRegion:ok\",\"southwest\":{\"longitude\":108.87545674591064,\"latitude\":34.204520114013846},\"northeast\":{\"longitude\":108.90764325408935,\"latitude\":34.229857981005225},\"scale\":15}&multiIndex=1&tags=1,2", 442 + "query": "lat=34.21719&lng=108.89155&map={\"errMsg\":\"getMapRegion:ok\",\"southwest\":{\"longitude\":108.87545674591064,\"latitude\":34.204520114013846},\"northeast\":{\"longitude\":108.90764325408935,\"latitude\":34.229857981005225},\"scale\":15}&multiIndex=1&tags=",
443 "scene": null 443 "scene": null
444 }, 444 },
445 { 445 {