customerManagement.wxml
2.62 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
<!-- 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>