orderPromptPop.wxml
4.48 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<popup show="{{ show }}"
bindconfirm="confirm"
bindcancel="cancel"
height="{{ lowPriceMode ? merchantHeight : (infoData.payFlag == 2 ? includesChildHeight : height) }}"
slotStyle="{{ popupSlotStyle }}"
confirmText="{{ lowPriceMode && currentStep == 1 ? '下一步' : '确认' }}">
<view class="prompt-layout">
<view class="sub-title">
<view>
{{ lowPriceMode ? '新建低价单' : '确认订单收款方式' }}
</view>
</view>
<view class="stepper" wx:if="{{ lowPriceMode }}">
<view class="stepper-line"></view>
<view class="stepper-item active">
<view class="stepper-dot"></view>
<view class="stepper-text">
选择下单门店
</view>
</view>
<view class="stepper-item {{ currentStep == 2 ? 'active' : '' }}">
<view class="stepper-dot"></view>
<view class="stepper-text">
订单收款方式
</view>
</view>
</view>
<view class="merchant_content" wx:if="{{ lowPriceMode && currentStep == 1 }}">
<view class="merchant-search">
<image class="merchant-search-icon" src="/images/search.png" />
<input value="{{ merchantKeyword }}"
placeholder="搜索门店名称/商户号"
bindinput="onMerchantKeywordInput" />
<image wx:if="{{ merchantKeyword }}"
class="merchant-clear-icon"
src="/images/clear.png"
bindtap="clearMerchantKeyword" />
</view>
<scroll-view class="merchant-list"
scroll-y
enhanced="{{ true }}"
show-scrollbar="{{ false }}"
lower-threshold="100"
bindscrolltolower="loadMoreOrderMerchantList">
<view class="merchant-item {{ selectedMerchantKey == item.key ? 'selected' : '' }}"
wx:for="{{ filteredMerchantList }}"
wx:key="key"
data-item="{{ item }}"
bindtap="chooseMerchant">
<view class="merchant-name">
{{ item.merchantName }}
</view>
<view class="merchant-check" wx:if="{{ selectedMerchantKey == item.key }}">
✓
</view>
</view>
<view class="merchant-state" wx:if="{{ merchantLoading && !merchantList.length }}">
门店加载中...
</view>
<view class="merchant-state"
wx:elif="{{ merchantError || !merchantList.length }}">
{{ merchantError || '未搜索到匹配门店' }}
</view>
<view class="merchant-load-more" wx:elif="{{ merchantLoading }}">
加载中...
</view>
<view class="merchant-load-more" wx:elif="{{ !merchantHasMore }}">
没有更多了
</view>
</scroll-view>
</view>
<scroll-view class="payment-scroll"
wx:else
scroll-y
enhanced="{{ true }}"
show-scrollbar="{{ false }}">
<view class="prompt_content">
<view class="select_item" wx:if="{{ !djQrOnlyMode }}">
<image wx:if="{{ infoData.payFlag == 1 }}"
class="radio-icon"
src="/components/images/radio.png" />
<view wx:else
class="arc"
bindtap="chooseParent"
data-type="1" />
<view bindtap="chooseParent" data-type="1">
<view class="radio_label">
未支付
</view>
<view class="radio_tips">
去创建线上付款码订单
</view>
</view>
</view>
<view class="select_item" style="border-bottom: 0rpx;">
<image wx:if="{{ infoData.payFlag == 2 }}"
class="radio-icon"
src="/components/images/radio.png" />
<view wx:else
class="arc"
bindtap="chooseParent"
data-type="2" />
<view bindtap="chooseParent" data-type="2">
<view class="radio_label">
已支付
</view>
<view class="radio_tips">
款项已付需补录订单
</view>
</view>
</view>
<view class="child_select_content" wx:if="{{ infoData.payFlag == 2 }}">
<view wx:for="{{ payTypeList }}"
class="child_select_item"
wx:key="value">
<image wx:if="{{ infoData.payType == item.value }}"
class="radio-icon"
src="/components/images/radio.png" />
<view wx:else
class="arc"
bindtap="chooseChild"
data-type="{{ item.value }}" />
<view bindtap="chooseChild" data-type="{{ item.value }}">
<view class="radio_label">
{{ item.label }}
</view>
<view class="radio_tips" wx:if="{{ item.tips }}">
{{ item.tips }}
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</popup>