<div class="my-client" th:each="customer : ${list}" th:attr="buyIntention=${customer.buyIntention}"
     xmlns:th="http://www.w3.org/1999/xhtml">
    <div class="weui-cell">
        <div class="weui-cell__hd"
             th:with="customerName=${#strings.contains(customer.name,',')?#strings.listSplit(customer.name,',')[0]:customer.name}">
            <p class="tu-text"
               th:text="${#strings.substring(customerName,0,#strings.length(customerName)>3?3:#strings.length(customerName))}">
                未填写</p>
        </div>
        <div class="weui-cell__bd">
            <p th:text="${customer.phone}">
            <p class="my-client__tag" th:switch="${customer.buyIntention}">
                <span><i class="iconfont">&#xe6ea;</i><span th:text="${customer.lastManager}"></span></span>
                <span th:case="'1'"><i class="iconfont">&#xe684;</i>A</span>
                <span th:case="'2'"><i class="iconfont">&#xe684;</i>B</span>
                <span th:case="'3'"><i class="iconfont">&#xe684;</i>C</span>
                <span th:case="'4'"><i class="iconfont">&#xe684;</i>D</span>
                <span th:case="'5'"><i class="iconfont">&#xe684;</i>E</span>
            </p>
        </div>
    </div>
    <div class="weui-flex my-client__bd">
        <a href="javascript:;" class="weui-flex__item t-l">
            <i class="iconfont">&#xe603;</i>
            <span th:text="${customer.createDateStr}"></span>
        </a>
        <a th:if="${customer.buyIntention == '4'}" href="javascript:;"
           th:onclick="'javascript:deleteFormOcean(\'' +${customer.id}+ '\');'">删除</a>
        <a href="javascript:toggleSheet();" id="managerSheet"><i class="iconfont">&#xe775;</i>派工</a>
    </div>
</div>
