index.wxml
5.14 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
<view class="container">
<view class="tab_wrapper">
<block wx:for="{{tab}}" wx:key="index">
<view bind:tap="changeTab" data-index="{{index}}" class="tabItem flex_cc {{currentTab==index?'active':''}}">
{{item}}
<view wx:if="{{currentTab==index}}" class="line"></view>
</view>
</block>
</view>
<view class="board_wrapper flex_scb">
<view class="left_info">意向客户数 · {{list.length}}</view>
<block>
<view class="right_info flex_scb">
<view bind:tap="clickLeftBtn" class="btn mar flex_cc">
<view class="text">{{boardBtn[currentTab].leftText}}</view>
<glsx-image class="icon" webp src="store-assistant/version/3_7_0/{{boardBtn[currentTab].leftIcon}}.png"></glsx-image>
</view>
<view bind:tap="clickRightBtn" class="btn flex_cc">
<view class="text">{{boardBtn[currentTab].rightText}}</view>
<glsx-image class="icon" webp src="store-assistant/version/3_7_0/{{boardBtn[currentTab].rightIcon}}.png"></glsx-image>
</view>
</view>
</block>
</view>
<block wx:if="{{!noListData}}">
<view class="card_list_wrapper">
<block wx:for="{{list}}" wx:key="index">
<view class="card_element {{currentTab==1?'card_element_complete':''}}">
<view class="header">
<view class="avatar">
<glsx-image class="icon" webp src="{{item.avatar || 'store-assistant/order_person_default.png'}}"></glsx-image>
</view>
<view class="text">{{item.accountName || '未知访客'}}</view>
<glsx-image data-text="{{item.accountName}}" bind:tap="toCopy" class="copy_logo" src="store-assistant/copy_name.png" />
<view class="statusText" style="color:{{statusList[item.customerOderStatus].color}}">
{{statusList[item.customerOderStatus].name}}
</view>
</view>
<view class="content">
<view class="inner">
<view class="cell">
<view class="label">线索类型</view>
<view class="val">{{item.followTypeName || '--'}}</view>
</view>
<view class="cell">
<view class="label">线索时间</view>
<view class="val">{{item.createdDate || '--'}}</view>
</view>
<view class="cell">
<view class="label">最后访问</view>
<view class="val">{{item.lastVisitTime || '--'}}</view>
</view>
<view class="cell">
<view class="label">累计访问</view>
<view class="val">{{item.visitsNumber}}次</view>
</view>
<view class="cell">
<view class="label">备注</view>
<view class="val">{{item.remark || '--'}}</view>
</view>
<block wx:if="{{currentTab==1}}">
<view class="driver"></view>
<view class="cell">
<view class="label">跟进结果</view>
<view class="val">{{item.followResultName}}</view>
</view>
<view class="cell">
<view class="label">跟进时间</view>
<view class="val">{{item.followTime || '--'}}</view>
</view>
<view class="cell">
<view class="label">跟进备注</view>
<view class="val">{{item.followRemark || '--'}}</view>
</view>
</block>
</view>
</view>
<view wx:if="{{currentTab==0}}" class="footer flex_scb">
<view class="time">{{item.createdDate}}</view>
<view data-id="{{item.id}}" bind:tap="toFollow" class="btn flex_cc">
完成跟进
</view>
</view>
</view>
</block>
</view>
</block>
<block wx:else>
<view class="no_data">
<glsx-image class="logo" webp src="store-assistant/no_visitor_data.png"></glsx-image>
<view class="text">暂无意向客户</view>
</view>
</block>
</view>
<complete-modal bind:getFollowSelect="getFollowSelect" show="{{showComplete}}" />
<modal bind:getSelectType="getSelectType" show="{{showModal}}" />