orderPromptPop.wxml 4.48 KB
<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>