cart.wxml
2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!--pack-cookbook/pages/cart.wxml-->
<nav id="nav" hasHome backgroundColor="#262628" color="#fefefe">提交订单</nav>
<view class="header">
</view>
<view class="page">
<view class="carts">
<view class="block" wx:for="{{order.cookbooklist}}" wx:key="order.cookbooklist.key">
<view class="title">{{item.name}}</view>
<view class="cart-body">
<view class="cart-item flex-lr" wx:for="{{item.list}}" wx:key="item.list.key">
<view class="icon">
<image src="{{item.cookimg}}"></image>
</view>
<view class="flex-ll name">
<view class="name">{{item.cookname}}</view>
<view class="practice_name" wx:if="{{item.practice_name}}">{{item.practice_name}}</view>
</view>
<view class="price">¥{{item.price}}/{{item.spec_name||item.cookunit}}</view>
<view class="opt">{{item.num}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="footer">
<view class="total">共计:¥{{order.price}}</view>
<view class="infos" wx:if="{{(openid==order.openid && openid) || options.identity==2}}">
<view class="flex-lr item">
<view class="item-label">人数:</view>
<view>
<input placeholder="请输入人数" type="number" value="{{order.pnum||''}}" bindinput="updateOrder"/>
</view>
</view>
<formids bindclick="gotoRemark">
<view class="flex-lr item">
<view class="item-label">备注:</view>
<view class="flex-rr" style="max-width: 80%;">
<view class="desc">{{order.remark||'口味、偏好等要求'}}</view>
<view class="more"></view>
</view>
</view>
</formids>
</view>
<formids class="submit" bindclick="submitOrder" wx:if="{{(openid==order.openid && openid) || options.identity==2}}">
<view class="submit">确认下单</view>
</formids>
</view>