SecondStep.wxml
7.23 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<wxs src="index.wxs" module="filter" />
<view class="testFormCon">
<van-collapse value="{{ activeNames }}">
<view class="collapse">
<van-collapse-item name="3" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle">
<view class="label">
增值车损险
<text class="required">*</text>
</view>
</view>
</view>
<view>
<gl-cell border valueAlign="right" class="goodsCom" label="购买商品" labelWidth="var(--fontSize140)" haveArrow requiredAfter required placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" />
</view>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
<view class="goods" wx:if="{{ item.goods }}">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<view class="name text-hide">
{{item.goods.goodsAlias || item.goods.goodsNameAlias || filter.replaceItemText(item.goods.upgradeGoodsName + item.goods.specificationData) || filter.replaceItemText(item.goods.goodsName+ item.goods.specificationData)}}
<!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view>
<view class="price-box">
<text>¥</text>
<view class="price">
<input type="digit" value="{{ item.goods.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
</view>
<!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} -->
<view class="goods packageList" wx:if="{{ item.packageGoods }}">
<view class="package">
<view class="deleteicon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<view class="name text-hide">{{item.packageGoods.packageAlias || item.packageGoods.packageNameAlias || item.packageGoods.packageName}}</view>
<view class="package-price">¥{{item.price}}</view>
<!-- <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> -->
</view>
<view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="name text-hide">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName + item.specificationData) ||filter.replaceItemText(child.goodsName+ item.specificationData) }}</view>
<view class="price-box">
<text>¥</text>
<view class="price">
<input type="digit" value="{{ child.price }}" bindinput="changePricePackage" disabled="{{ orderObj.selectPayType ==0 }}" data-childind="{{ childind }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view>
</view>
</view>
</view>
</block>
<view class="goods total-box">
<view>总价</view>
<view class="total">¥{{orderInfo.total || 0}}</view>
</view>
</view>
</block>
</van-collapse-item>
</view>
<view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle remark">
<view class="sprite-icon mr10" />
<view class="label">其他信息</view>
</view>
</view>
<!-- <gl-cell
wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}"
border
class="pay-type"
label="支付方式"
valueAlign="right"
labelWidth="var(--fontSize140)"
>
<view class="only-select-text" wx:if="{{ orderInfo.resetOrder }}">门店收款</view>
<view wx:else class="switch-box">
<view class="block text-center {{ orderInfo.payType==1?'':'right' }}" />
<view class="left text-center {{ orderInfo.payType == 1?'active':'' }}" bindtap="changePayType" data-payType="1">线上支付</view>
<view class="right text-center {{ orderInfo.payType == 2?'active':'' }}" bindtap="changePayType" data-payType="2">门店收款</view>
</view>
</gl-cell> -->
<gl-cell border class="pay-type" label="支付方式" valueAlign="right" wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}" labelWidth="var(--fontSize140)">
<view class="payType-box">
<view class="item text-center active" wx:if="{{ orderInfo.resetOrder }}">门店收款</view>
<block wx:else>
<block wx:for="{{ payTypeList }}" wx:key="index">
<view class="item text-center {{ orderInfo.payType == item.value?'active':'' }}" bindtap="changePayType" data-payType="{{ item.value }}">{{item.name}}</view>
</block>
</block>
</view>
</gl-cell>
<gl-cell wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 )&&!orderInfo.resetOrder }}" value="{{ successDateTime }}" bind:click="toSelectDate" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'门店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell>
<view class="box">
<view class="title remarkTitle">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field>
</view>
</van-collapse-item>
</view>
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<date-select show="{{ showDateSelect }}" bind:close="closeDateModal" bind:confirm="onChanteSuccessDate"></date-select>