PageScreen.wxml 4.12 KB
<!--pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxml-->
<scroll-view
	scroll-y
	class="confirm-box"
	style="height:calc(100vh - {{ navBarHeight}}px);margin-top:{{navBarHeight }}px;"
	hidden="{{ !show }}"
>
	<view class="main" style="padding-bottom: {{ btnHeight}}px;min-height: calc(100% - {{btnHeight }}px);">
		<view class="box">
			<view class="title">
				<view class="title-left">主营品牌</view>
			</view>
			<view class="choose-btn" bindtap="chooseCarBrand">
				<text>去选择</text>
				<image src="{{ IMG_URL }}customer/arrow.png" mode="" />
			</view>
			<view class="list-box">
				<block wx:for="{{ form.selectedMainBrand }}" wx:key="index">
					<view class="item flex-1 text-center active" data-index="{{ index }}">{{item.name}}{{ (item.children && item.children[0] && item.children[0].name) || (item.name || '') }}</view>
				</block>
			</view>
		</view>
		<view class="box">
			<view class="title">业务类型</view>
			<view class="list-box">
				<block wx:for="{{ form.businessTypeList }}" wx:key="index">
					<view
						class="item text-center {{ item.active?'active':'' }}"
						bindtap="choose"
						data-list-name="businessTypeList"
						data-index="{{ index }}"
					>{{item.name}}</view>
				</block>
			</view>
		</view>
		<view class="box">
			<view class="title">合作模式</view>
			<view class="list-box">
				<block wx:for="{{ form.cooperationModelList }}" wx:key="index">
					<view
						class="item text-center {{ item.active?'active':'' }}"
						bindtap="choose"
						data-list-name="cooperationModelList"
						data-index="{{ index }}"
					>{{item.name}}</view>
				</block>
			</view>
		</view>
		<view class="box">
			<view class="title">流量情况</view>
			<view class="list-box">
				<block wx:for="{{ form.trafficStatusList }}" wx:key="index">
					<view
						class="item text-center {{ item.active?'active':'' }}"
						bindtap="choose"
						data-list-name="trafficStatusList"
						data-index="{{ index }}"
					>{{item.name}}</view>
				</block>
			</view>
		</view>
		<view class="box" wx:if="{{ userInfo.loginRole == 1 }}">
			<view class="title">
				<view class="title-left">所属省份</view>
				<view
					wx:if="{{ form.provinces.length > 12 }}"
					bindtap="showMore"
					data-type="provincesShowMore"
					class="collapse-btn {{ !provincesShowMore ? 'rotate-180' : '' }}"
				>
					<image src="{{ IMG_URL }}customer/collapse_icon.png" mode="" />
				</view>
			</view>
			<view class="list-box">
				<block wx:for="{{ form.provinces }}" wx:key="index">
					<view
						class="item text-center {{ item.active?'active':'' }}"
						hidden="{{ index >= 12 && !provincesShowMore }}"
						bindtap="choose"
						data-list-name="provinces"
						data-index="{{ index }}"
					>{{item.name}}</view>
				</block>
			</view>
		</view>
		<view class="box" wx:if="{{ userInfo.loginRole == 1 }}">
			<view class="title">
				<view class="title-left">销售人员</view>
				<view
					wx:if="{{ form.salesStaffList.length > 12 }}"
					bindtap="showMore"
					data-type="salesStaffShowMore"
					class="collapse-btn {{ !salesStaffShowMore ? 'rotate-180' : '' }}"
				>
					<image src="{{ IMG_URL }}customer/collapse_icon.png" mode="" />
				</view>
			</view>
			<view class="list-box">
				<block wx:for="{{ form.salesStaffList }}" wx:key="index">
					<view
						class="item text-center {{ item.active?'active':'' }}"
						bindtap="choose"
						data-list-name="salesStaffList"
						data-index="{{ index }}"
						hidden="{{ index >= 12 && !salesStaffShowMore }}"
					>
						<view class="text-item">{{item.name}}</view>
					</view>
				</block>
			</view>
		</view>
	</view>
	<view class="btn-box isFullSucreen-btn">
		<view class="btn clear text-center" bindtap="reset">清除</view>
		<view class="btn done text-center" bindtap="confirm">确定</view>
	</view>
</scroll-view>
<popup
	show="{{ carBrandPopupShow }}"
	title="选择品牌"
	bind:hidePopup="hideBrandPopup"
	customPopupSlotStyle="{{ 'height: calc(100% - 282rpx)' }}"
	bindconfirm="brandConfirm"
	height="90%"
>
	<car-brand id="car-brand" popupShow="{{ carBrandPopupShow }}" multiple="{{ false }}" selectedList="{{ form.selectedMainBrand }}"></car-brand>
</popup>