Commit d61bc6d0f7cb1d49f789c80dff6cd87abc454d64

Authored by wangfan
1 parent 26d8a22c

快速预定

... ... @@ -33,7 +33,9 @@
"root": "pack-cookbook",
"name": "提前点餐包",
"pages": [
"pages/index"
"pages/index",
"pages/cart",
"pages/success"
]
}
],
... ...
... ... @@ -11,7 +11,7 @@ Component({
* 组件的初始数据
*/
data: {
carts:['啦啦啦','啦啦啦啦啦','啦啦','啦','啦啦啦啦啦','啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦','啦啦啦啦','啦啦','啦','啦啦啦','啦啦啦'],
},
/**
... ...
... ... @@ -8,9 +8,9 @@
<view class="text">清空购物车</view>
</view>
<view class="cart-body">
<view class="cart-item flex-lr" wx:for="{{[1,2,3,4,5,3,4,5,3,4,5]}}" wx:key="item.key">
<view class="name">啦啦啦啦啦</view>
<view class="price">¥</view>
<view class="cart-item flex-lr" wx:for="{{carts}}" wx:key="item.key">
<view class="name">{{item}}</view>
<view class="price">¥125.00/份</view>
<view class="flex-lr opt">
<foodSpec item="{{item}}" type="-" id="foodSpecDel"
sellerid="{{sellerid}}" orderid="{{orderid}}"
... ...
... ... @@ -33,10 +33,14 @@
font-size: 30rpx;
}
.cart-item .name{
width: 100%;
width: 60%;
overflow: hidden;
white-space:nowrap;
}
.cart-item .price{
width: 100%;
width: 32%;
white-space:nowrap;
margin: 0 4%;
}
.cart-item .opt{
font-size: 36rpx;
... ...