Commit d61bc6d0f7cb1d49f789c80dff6cd87abc454d64

Authored by wangfan
1 parent 26d8a22c

快速预定

@@ -33,7 +33,9 @@ @@ -33,7 +33,9 @@
33 "root": "pack-cookbook", 33 "root": "pack-cookbook",
34 "name": "提前点餐包", 34 "name": "提前点餐包",
35 "pages": [ 35 "pages": [
36 - "pages/index" 36 + "pages/index",
  37 + "pages/cart",
  38 + "pages/success"
37 ] 39 ]
38 } 40 }
39 ], 41 ],
@@ -11,7 +11,7 @@ Component({ @@ -11,7 +11,7 @@ Component({
11 * 组件的初始数据 11 * 组件的初始数据
12 */ 12 */
13 data: { 13 data: {
14 - 14 + carts:['啦啦啦','啦啦啦啦啦','啦啦','啦','啦啦啦啦啦','啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦','啦啦啦啦','啦啦','啦','啦啦啦','啦啦啦'],
15 }, 15 },
16 16
17 /** 17 /**
@@ -8,9 +8,9 @@ @@ -8,9 +8,9 @@
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,3,4,5,3,4,5]}}" wx:key="item.key">  
12 - <view class="name">啦啦啦啦啦</view>  
13 - <view class="price">¥</view> 11 + <view class="cart-item flex-lr" wx:for="{{carts}}" wx:key="item.key">
  12 + <view class="name">{{item}}</view>
  13 + <view class="price">¥125.00/份</view>
14 <view class="flex-lr opt"> 14 <view class="flex-lr opt">
15 <foodSpec item="{{item}}" type="-" id="foodSpecDel" 15 <foodSpec item="{{item}}" type="-" id="foodSpecDel"
16 sellerid="{{sellerid}}" orderid="{{orderid}}" 16 sellerid="{{sellerid}}" orderid="{{orderid}}"
@@ -33,10 +33,14 @@ @@ -33,10 +33,14 @@
33 font-size: 30rpx; 33 font-size: 30rpx;
34 } 34 }
35 .cart-item .name{ 35 .cart-item .name{
36 - width: 100%; 36 + width: 60%;
  37 + overflow: hidden;
  38 + white-space:nowrap;
37 } 39 }
38 .cart-item .price{ 40 .cart-item .price{
39 - width: 100%; 41 + width: 32%;
  42 + white-space:nowrap;
  43 + margin: 0 4%;
40 } 44 }
41 .cart-item .opt{ 45 .cart-item .opt{
42 font-size: 36rpx; 46 font-size: 36rpx;