index.wxml 5.14 KB
<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}}" />