{% for msg in art %} 
<div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
    <div class="userItem">
        <p class="username">{{ msg.name }}</p>
        <div class="userMsg">
            {% if msg.gender == '女'  %}
            <img src="../../static/imgs/user_1.png" class="fl" alt="">
            {% else %}
            <img src="../../static/imgs/user_2.png" class="fl" alt="">
            {% endif %}
            <div class="userInfo">
                <p>性别：{{ msg.gender }}</p>
                <p>电话：{{ msg.mobile }}</p>
                <p>管理农场：{{ msg.name }}</p>
            </div>
        </div>
        <div class="operateDiv">
            <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="amend( '{{ msg.id }}' )">修改</button>
            <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="del( '{{ msg.id }}' )">删除</button>
        </div>
    </div>
</div>

{% empty %} <div class="layui-col-xs12 " style="line-height:100px;text-align:center">暂无数据</div>
{% endfor %} 
<input type="hidden" value="{{nums}}" id="totalPage">
