UpgradeItem.wxml
2.8 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<view class="item {{data.status == 1?'':'padding-bottom'}}" bindtap="jumpDetail">
<view class="status status-{{data.status}}">{{statusEnum[data.status]}}</view>
<view class="top flex">
<view class="icon">
<gl-image webp src="/equity/{{data.customerInfo.customerSex == 2 ?'woman-default-avatar' : 'default-avatar'}}.png"></gl-image>
</view>
<view class="info">
<view class="name flex">
{{data.customerInfo.customerName}}
<block wx:if="{{data.changeType > 0}}">
<block wx:if="{{data.changeType == 1}}">
<view class="tips new">New</view>
</block>
<block wx:else>
<view class="tips">更新</view>
</block>
</block>
</view>
<view class="phone">{{data.customerInfo.customerPhone}}</view>
</view>
</view>
<view class="info-box">
<block wx:for="{{infoObject}}" wx:key="index">
<block wx:if="{{data.customerInfo[item.key]}}">
<view class="info-item flex">
<view class="label">{{item.label}}</view>
<view class="value">
<block wx:if="{{item.key == 'carSeriesName'}}">
{{data.customerInfo.carBrand}}-{{data.customerInfo.carChildsBrandName}}-{{data.customerInfo.carSeriesName}}
</block>
<block wx:else>
{{data.customerInfo[item.key]}}
</block>
</view>
</view>
</block>
</block>
<block wx:for="{{sceneTypeStatusMap}}" wx:key="index">
<view class="info-item flex">
<view class="label">{{item.label}}</view>
<view class="value">{{statusEnum[data.sceneTypeStatusMap[item.key]]}}</view>
</view>
</block>
</view>
<block wx:if="{{data.boutiqueOrders.length}}">
<block wx:for="{{data.boutiqueOrders}}" wx:key="index">
<view class="package-box">
<view class="package-title flex">
订单{{index + 1}}
<view class="order-status order-status-{{item.status}}">{{status[item.status]}}</view>
</view>
<goods-list list="{{item.subOrderList}}" goodsNameKey="upgradeGoodsName" goodsPriceKey="totalPrice"></goods-list>
<view class="package-info">
<block wx:for="{{orderObj}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:if="{{item[i.key]}}">
<view class="package-item flex">
<view class="label">{{i.label}}</view>
<view class="value {{i.key == 'totalPrice'?'price':''}}">
{{i.unit||''}}{{item[i.key] || ''}}
</view>
</view>
</block>
</block>
</view>
</view>
</block>
</block>
<block wx:if="{{data.status == 1}}">
<view class="bottom flex">
<view class="btn flex" catchtap="jump">数字报价单</view>
</view>
</block>
</view>