customerManagement.wxml 2.62 KB
<!-- pages/mineDetail/customerManagement/customerManagement.wxml -->
<view class="customerManagementCon">
	<!-- required hidden="{{hidden}}" -->
	<scroll-view
	             style="{{ margin-right: 5px;}}"
	             wx:if="{{customerList.length}}"
	             scroll-y
	             enable-back-to-top
	             refresher-enabled="{{true}}"
	             bindrefresherrefresh="restPageNum"
	             bindscrolltolower="scrollonReachBottom"
	             refresher-threshold="104"
	             style="height:100vh;"
	             class=" list"
	             refresher-triggered="{{triggered}}">
		<view class="customerBox" wx:for="{{customerList}}" wx:key="index">
			<view class="titleCon">
				<view class="name text-hide">{{item.actualMerchantName}}</view>
				<view
				      class="statusBtn"
				      data-index="{{index}}"
				      data-item="{{item}}"
				      bind:tap="changeStatus">
					{{item.isEdit?'完成':'编辑'}}
				</view>
			</view>
			<view/>
			<gl-cell
			         wx:for="{{listObj}}"
			         wx:key="ind"
			         wx:for-index="ind"
			         wx:for-item="childItem"
			         valueAlign="right"
			         class="cellSty"
			         label="{{item.isEdit?childItem.editLabel :childItem.label }}"
			         requiredAfter
			         cellHeight="{{false}}"
			         labelWidth="200rpx">
				<!-- type="number" -->
				<input
				       placeholder="{{item.isEdit? childItem['placeholder']:''}}"
				       class="input {{item.isEdit&&(ind == 0|| ind == 1)  ? 'disabled':''}}"
				       placeholder-class="placeholder-class"
				       maxlength="{{childItem.maxLength}}"
				       value="{{item[childItem['key']] }}"
				       bindinput="input"
				       type="{{childItem['type']||''}}"
				       data-index="{{index}}"
				       data-name="{{childItem['key']}}"
				       data-reg="{{childItem['reg']}}"
				       disabled="{{!item.isEdit || ind == 0|| ind == 1 }}"
				       always-embed></input>
			</gl-cell>
			<!-- <gl-cell
			         valueAlign="right"
			         label="车主姓名"
			         requiredAfter
			         class="cellSty"
			         cellHeight="{{false}}"
			         labelWidth="140rpx">
				<input
				       placeholder="点击输入"
				       class="input"
				       placeholder-class="placeholder-class"
				       maxlength="16"
				       value="{{orderObj.customer.customerName}}"
				       bindinput="input"
				       data-name="customer.customerName"
				       disabled="{{orderObj.orderSource == 5}}"
				       always-embed></input>
			</gl-cell> -->
		</view>
	</scroll-view>
	<view wx:else>
		<nothing-tips tips="暂无相关客户~" bg="{{bgUrl}}" />
	</view>
</view>