TechnicianSelectPopup.wxml 2.45 KB
<popup
	show="{{ show }}"
	bindconfirm="confirm"
	bindcancel="cancel"
	height="85%"
	slotStyle="height: calc(100% - var(--fontSize150));"
>
	<view class="artificer-select-popup-box">
		<view class="box">
			<view class="sub-title text-center">{{title}}</view>
			<view class="artificer-box">
				<search-input bindsearch="search" value="{{ searchValue }}" />
				<view class="box-title">
					<view>技师</view>
					<!-- <view class="tips">使用<text bind:tap="goMiniprogram">生意助手小程序</text>登录创建技师</view> -->
					<view class="tips" wx:if="{{ multiple && deputyFlag }}">产生副手技师,请主技师为副手技师分配整单提成比例</view>
				</view>
				<block wx:if="{{ artificerList.length }}">
					<scroll-view
						scroll-y
						style="{{ multiple? 'height: calc(100% - var(--fontSize236))':'height: calc(100% - var(--fontSize194))' }}"
						enhanced="{{ true }}"
						show-scrollbar="{{ false }}"
					>
						<block wx:for="{{ artificerList }}" wx:key="index">
							<view
								class="artificerList {{ item.active?'active':'' }}"
								bindtap="changeItem"
								data-target="{{ item }}"
								data-index="{{ index }}"
							>
								<view class="checked_img">
									<block wx:if="{{ multiple }}">
										<image src="{{ item.active ? '/components/images/radio.png' : '/components/images/radio_icon.png' }}" />
									</block>
									<block wx:else>
										<image wx:if="{{ item.active }}" src="{{ IMG_URL }}checked.png"></image>
									</block>
								</view>
								<view class="text_box">
									<view class="text-hide {{ item.disabled ? 'disabled' : '' }}">{{item.staffName}}</view>
								</view>
								<view class="shareRatioBox" wx:if="{{ multiple && item.active && deputyFlag }}">
									整单分成比例
									<input
										placeholder="整数"
										class="shareRatioInput"
										type="number"
										maxlength="3"
										value="{{ item.shareRatio }}"
										placeholder-style="color:#BEC1C7"
										catchinput="changeShareRatio"
										catchtap="noop"
										data-index="{{ index }}"
									/>
									%
								</view>
							</view>
						</block>
					</scroll-view>
				</block>
				<block wx:else>
					<empty-data style="width: 100%;" />
				</block>
				<view class="tips bottomTips" wx:if="{{ multiple && deputyFlag }}">
					主技师整单分成比例
					<text class="text">{{ showMainShareRatio }}%</text>
				</view>
			</view>
		</view>
	</view>
</popup>