Commit 26d8a22cbea4052c101513c6270002b7b7e6e7a1

Authored by wangfan
1 parent b28fe4c0

快速预定

1 <!--pack-cookbook/components/cart/cart.wxml--> 1 <!--pack-cookbook/components/cart/cart.wxml-->
2 -<view class="mask flex-bc" style="bottom: 102rpx; align-items: flex-end;"> 2 +<view class="mask flex-bc" style="bottom: 103rpx; align-items: flex-end;">
3 <view class="cart"> 3 <view class="cart">
4 <view class="cart-title flex-rr"> 4 <view class="cart-title flex-rr">
5 <view class="icon"> 5 <view class="icon">
6 - <image src=""></image> 6 + <image src="http://qn.colorcun.com/custom/lite-yd-cook/image/empty.png"></image>
7 </view> 7 </view>
8 <view class="text">清空购物车</view> 8 <view class="text">清空购物车</view>
9 </view> 9 </view>
10 <view class="cart-body"> 10 <view class="cart-body">
11 - <view class="cart-item flex-lr" wx:for="{{[1,2,3,4,5]}}" wx:key="item.key">  
12 - <foodSpec item="{{item}}" type="-" id="foodSpecDel"  
13 - sellerid="{{sellerid}}" orderid="{{orderid}}"  
14 - fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}"  
15 - bindfoodSpecCallback="foodSpecCallback">  
16 - <view class='jian'></view>  
17 - </foodSpec>  
18 - <view class="t-align-c">{{item.num||10}}</view>  
19 - <foodSpec item="{{item}}" type="+"  
20 - sellerid="{{sellerid}}" orderid="{{orderid}}"  
21 - fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}"  
22 - bindfoodSpecCallback="foodSpecCallback">  
23 - <view class='add'></view>  
24 - </foodSpec> 11 + <view class="cart-item flex-lr" wx:for="{{[1,2,3,4,5,3,4,5,3,4,5]}}" wx:key="item.key">
  12 + <view class="name">啦啦啦啦啦</view>
  13 + <view class="price">¥</view>
  14 + <view class="flex-lr opt">
  15 + <foodSpec item="{{item}}" type="-" id="foodSpecDel"
  16 + sellerid="{{sellerid}}" orderid="{{orderid}}"
  17 + fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}"
  18 + bindfoodSpecCallback="foodSpecCallback">
  19 + <view class='jian'></view>
  20 + </foodSpec>
  21 + <view class="t-align-c">{{item.num||10}}</view>
  22 + <foodSpec item="{{item}}" type="+"
  23 + sellerid="{{sellerid}}" orderid="{{orderid}}"
  24 + fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}"
  25 + bindfoodSpecCallback="foodSpecCallback">
  26 + <view class='add'></view>
  27 + </foodSpec>
  28 + </view>
25 </view> 29 </view>
26 </view> 30 </view>
27 </view> 31 </view>
@@ -2,4 +2,86 @@ @@ -2,4 +2,86 @@
2 @import "/app.wxss"; 2 @import "/app.wxss";
3 .cart{ 3 .cart{
4 background-color: #fefefe; 4 background-color: #fefefe;
  5 + border-radius: 10rpx 10rpx 0 0;
  6 + width: 100%;
  7 +}
  8 +.cart image{width: 100%; height: 100%;}
  9 +.cart-title{
  10 + line-height: 60rpx;
  11 + height: 60rpx;
  12 + background-color: #F5F5F5;
  13 + color:#999999;
  14 + font-size: 24rpx;
  15 + border-radius: 10rpx 10rpx 0 0;
  16 +}
  17 +.cart-title .icon{
  18 + width: 26rpx;
  19 + height: 26rpx;
  20 + margin-right: 20rpx;
  21 +}
  22 +.cart-title .text{
  23 + margin-right: 5%;
  24 +}
  25 +.cart-body{
  26 + max-height: 620rpx;
  27 + overflow-y: auto;
  28 + padding: 0 5%;
  29 +}
  30 +.cart-item{
  31 + height: 100rpx;
  32 + line-height: 100rpx;
  33 + font-size: 30rpx;
  34 +}
  35 +.cart-item .name{
  36 + width: 100%;
  37 +}
  38 +.cart-item .price{
  39 + width: 100%;
  40 +}
  41 +.cart-item .opt{
  42 + font-size: 36rpx;
  43 + font-weight: bold;
  44 + min-width: 160rpx;
  45 + width: 160rpx;
  46 +}
  47 +
  48 +
  49 +.jian,.add{
  50 + width: 60rpx;
  51 + height: 60rpx;
  52 + position: relative;
  53 +}
  54 +.jian::after{
  55 + position: absolute;
  56 + content: '';
  57 + top: 0;
  58 + left: 0;
  59 + right: 0;
  60 + bottom: 0;
  61 + margin: auto;
  62 + width: 60%;
  63 + height: 6rpx;
  64 + background-color: #999;
  65 + border-radius: 10rpx;
  66 +}
  67 +.cart-item .jian,.hasListModel .add{
  68 + width:36rpx;
  69 + height: 36rpx;
  70 + border-radius: 50%;
  71 +}
  72 +.cart-item .jian{
  73 + border: 2rpx solid #262628;
  74 +
  75 +}
  76 +.cart-item .jian:after{
  77 + width: 75%;
  78 + height: 4rpx;
  79 + background-color: #262628;
  80 +}
  81 +.cart-item .add{
  82 + background-color: #fefefe;
  83 + background-image: url("http://qn.colorcun.com/custom/lite-yd-cook/image/add.png");
  84 + background-size: 100%;
  85 + width: 40rpx;
  86 + height: 40rpx;
5 } 87 }
@@ -170,7 +170,7 @@ @@ -170,7 +170,7 @@
170 height:100rpx; 170 height:100rpx;
171 background-color: #fefefe; 171 background-color: #fefefe;
172 color:#353535; 172 color:#353535;
173 - border-top: 2rpx solid #F5F5F5; 173 + border-top: 2rpx solid #f5f5f5;
174 } 174 }
175 .bottom-view image{ 175 .bottom-view image{
176 width: 100%; 176 width: 100%;