mykehu.wxml
5.0 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<view class='mykehuhead'>
<view class="mykehuleft">我的客户</view>
<view class="addkehu" bindtap="addkehu">添加新客户</view>
</view>
<view class="kehubox morenke" wx:if="{{showmoren}}">
<view class="kehuitem" bindtap="select" data-item="{{morenkehu}}">
<view class="itemleftimg">
<image src="/img/address.png"></image>
</view>
<view class="itemmiddle">
<view class="itemmiddletop">{{morenkehu.customer_name}} {{morenkehu.contact_name}}</view>
<view class="itemmiddlebottom">{{morenkehu.receive_name}} {{morenkehu.mobile}} </view>
<view class="itemmiddlebottom">{{morenkehu.address}}</view>
</view>
<view class="delimg">
<view class="itemright edigtupian" catchtap='editkehu' data-id="{{morenkehu.id}}">
<image src="/img/editaddress.png"></image>
</view>
<view class="itemright" catchtap='delkehu' data-id="{{morenkehu.id}}">
<image src="/img/delshan.png"></image>
</view>
</view>
</view>
</view>
<!-- <view class="kehubox">
<view class="kehuitem" wx:for="{{kehulist}}" wx:key="" bindtap="select" data-item="{{item}}">
<view class="itemleftimg">
<image src="/img/address.png"></image>
</view>
<view class="itemmiddle">
<view class="itemmiddletop">{{item.customer_name}} {{item.mobile}}</view>
<view class="itemmiddlebottom">{{item.region}} {{item.address}}</view>
</view>
<view class="delimg">
<view class="itemright edigtupian" catchtap='editkehu' data-id="{{item.id}}">
<image src="/img/editaddress.png"></image>
</view>
<view class="itemright" catchtap='delkehu' data-id="{{item.id}}">
<image src="/img/delshan.png"></image>
</view>
</view>
</view>
</view> -->
<view class='city_box'>
<view class='city_left'>
<scroll-view style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}' class="citybox" scroll-y='true' scroll-top="{{scrollHeight}}">
<!-- <view class="hot">
<view class="hotimg">
<image src="{{url}}bicon_08@2x.png"></image>
</view>
<view class="hotzi">
<image src="{{url}}bicon_07@2x.png"></image>
</view>
</view> -->
<!-- <view class='new_city'>
<view class='new_city_box'>
<view class='new_city_text' wx:for='{{newcity}}' wx:key='this' data-types='new' catchtap='cityTap' data-val='{{item}}'>
<view class="hotgood" bindtap="jumpbrand" data-id="{{item.id}}">
<view class="imgleft">
<image src="{{item.logo}}" mode='aspectFit'></image>
</view>
<view class="contentright">
<view class="contenttop">{{item.name}}</view>
<view class="contenbottom">
<text class="textname">{{item.sort_name}}</text>
<text class="textname">{{item.country}}</text>
<text class="textname">{{item.city}}</text>
<text class="textname">{{item.odor_name}}</text>
</view>
</view>
</view>
</view>
</view>
</view> -->
<view class='city_list_box'>
<block wx:for='{{kehulist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'>
<view class='city_first_letter' id='{{letterItem.acronym}}'>{{letterItem.acronym}}</view>
<!-- {{item.cityName}} -->
<view class='city_name' wx:for='{{letterItem.list}}' id='{{letterItem.acronym}}' wx:key='this' data-types='list' bindtap="jumpbrand" data-id="{{item.id}}" data-index='{{index}}' data-val='{{item}}'>
<!-- <view class="imgleft">
<image src="{{item.logo}}" mode="aspectFit"></image>
</view> -->
<view class="contentright">
<view class="contenttop">{{item.acronym}}</view>
<view class="kehuitem" bindtap="select" data-item="{{item}}">
<view class="itemleftimg">
<image src="/img/address.png"></image>
</view>
<view class="itemmiddle">
<view class="itemmiddletop">{{item.customer_name}} {{item.contact_name}}</view>
<view class="itemmiddlebottom">{{item.receive_name}} {{item.mobile}}</view>
<view class="itemmiddlebottom">{{item.address}}</view>
</view>
<view class="delimg">
<view class="itemright edigtupian" catchtap='editkehu' data-id="{{item.id}}">
<image src="/img/editaddress.png"></image>
</view>
<view class="itemright" catchtap='delkehu' data-id="{{item.id}}">
<image src="/img/delshan.png"></image>
</view>
</view>
</view>
</view>
</view>
</block>
</view>
</scroll-view>
</view>
<view class='city_right'>
<text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}'>{{item}}</text>
</view>
</view>