Commit 16b4aff1db564beacc0b59fe789e2c07e903abcd

Authored by vking
1 parent 7ef2daaa

fix ui

@@ -103,8 +103,8 @@ @@ -103,8 +103,8 @@
103 <view class="detail-info-right">{{detail.cusdem}}</view> 103 <view class="detail-info-right">{{detail.cusdem}}</view>
104 </view> 104 </view>
105 </view> 105 </view>
  106 + <view class="hr" style="margin-top: 78rpx;margin-bottom: 78rpx;"></view>
106 <block wx:if="{{detail.customers.length>1}}"> 107 <block wx:if="{{detail.customers.length>1}}">
107 - <view class="hr" style="margin-top: 52rpx;margin-bottom: 48rpx;"></view>  
108 <formids url="./detail_owner_part?id={{detail.id}}" hover-class="navigator-hover" wx:if="{{detail.customers.length>0}}"> 108 <formids url="./detail_owner_part?id={{detail.id}}" hover-class="navigator-hover" wx:if="{{detail.customers.length>0}}">
109 <view class="flex-lr customers_view"> 109 <view class="flex-lr customers_view">
110 <view class="customers flex-ll"> 110 <view class="customers flex-ll">
@@ -117,6 +117,7 @@ @@ -117,6 +117,7 @@
117 </view> 117 </view>
118 </formids> 118 </formids>
119 </block> 119 </block>
  120 +
120 <view class="detail-info Medium tuiding"> 121 <view class="detail-info Medium tuiding">
121 <view class="flex-rr"> 122 <view class="flex-rr">
122 <view class="item" bindtap="callSeller">联系商家</view> 123 <view class="item" bindtap="callSeller">联系商家</view>
@@ -148,8 +148,9 @@ @@ -148,8 +148,9 @@
148 } 148 }
149 .transverse-list{ 149 .transverse-list{
150 background-color: #fefefe; 150 background-color: #fefefe;
151 - width: 100%; 151 + width: 110%;
152 margin-top: 40rpx; 152 margin-top: 40rpx;
  153 + margin-left: -5%;
153 } 154 }
154 .transverse-list .seller{ 155 .transverse-list .seller{
155 width: 98%; 156 width: 98%;
@@ -12,28 +12,6 @@ @@ -12,28 +12,6 @@
12 <image src="http://qn.colorcun.com/reserve/images/order-empty.png"></image> 12 <image src="http://qn.colorcun.com/reserve/images/order-empty.png"></image>
13 <view class="Medium">暂无订单</view> 13 <view class="Medium">暂无订单</view>
14 </view> 14 </view>
15 - <block wx:if="{{rsl.length>0}}">  
16 - <view class="line-push">为你推荐</view>  
17 - <view class="transverse-list">  
18 - <swiper  
19 - indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"  
20 - interval="2000" duration="500"  
21 - previous-margin="{{15}}px" next-margin="{{15}}px" style="height: 350rpx;"  
22 - current="{{current}}" bindchange="bindtransition" bindanimationfinish="bindtransition">  
23 - <block wx:for="{{rsl}}" wx:key="rsl.key">  
24 - <swiper-item bindtap="gotoSellerDetail" id="{{item.id}}">  
25 - <view class="seller" id="seller-{{item.id}}">  
26 - <sb-tr seller="{{item}}"  
27 - hasActivityTags="{{false}}"  
28 - hasActivityShort="{{true}}"  
29 - hasBrand="true" hasActivityTese="true"  
30 - hasSlogan="{{false}}"></sb-tr>  
31 - </view>  
32 - </swiper-item>  
33 - </block>  
34 - </swiper>  
35 - </view>  
36 - </block>  
37 </block> 15 </block>
38 <block wx:else=""> 16 <block wx:else="">
39 <block wx:for="{{list}}" wx:key="success.key" wx:for-item="detail" wx:for-index="dateIndex"> 17 <block wx:for="{{list}}" wx:key="success.key" wx:for-item="detail" wx:for-index="dateIndex">
@@ -45,4 +23,28 @@ @@ -45,4 +23,28 @@
45 </block> 23 </block>
46 </block> 24 </block>
47 </view> 25 </view>
  26 +<block wx:if="{{list.length==0 && rsl.length>0}}">
  27 + <view class="rsl-block">
  28 + <view class="line-push">为你推荐</view>
  29 + <view class="transverse-list">
  30 + <swiper
  31 + indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"
  32 + interval="2000" duration="500"
  33 + previous-margin="{{15}}px" next-margin="{{15}}px" style="height: 350rpx;"
  34 + current="{{current}}" bindchange="bindtransition" bindanimationfinish="bindtransition">
  35 + <block wx:for="{{rsl}}" wx:key="rsl.key">
  36 + <swiper-item bindtap="gotoSellerDetail" id="{{item.id}}">
  37 + <view class="seller" id="seller-{{item.id}}">
  38 + <sb-tr seller="{{item}}"
  39 + hasActivityTags="{{false}}"
  40 + hasActivityShort="{{true}}"
  41 + hasBrand="true" hasActivityTese="true"
  42 + hasSlogan="{{false}}"></sb-tr>
  43 + </view>
  44 + </swiper-item>
  45 + </block>
  46 + </swiper>
  47 + </view>
  48 + </view>
  49 +</block>
48 <getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos> 50 <getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>
@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 width: 90%; 3 width: 90%;
4 margin: 90rpx 5% 0; 4 margin: 90rpx 5% 0;
5 color:#353535; 5 color:#353535;
  6 + padding-bottom: 60rpx;
6 } 7 }
7 8
8 .card{ 9 .card{
@@ -119,12 +120,16 @@ @@ -119,12 +120,16 @@
119 line-height: 24rpx; 120 line-height: 24rpx;
120 background-repeat: no-repeat; 121 background-repeat: no-repeat;
121 text-align: center; 122 text-align: center;
122 - margin-top: 158rpx; 123 + margin-bottom: 60rpx;
  124 +}
  125 +.rsl-block{
  126 + position: fixed;
  127 + bottom: 0rpx;
  128 + width: 100%;
123 } 129 }
124 .transverse-list{ 130 .transverse-list{
125 background-color: #fefefe; 131 background-color: #fefefe;
126 width: 100%; 132 width: 100%;
127 - margin-top: 40rpx;  
128 } 133 }
129 .transverse-list .seller{ 134 .transverse-list .seller{
130 width: 98%; 135 width: 98%;