js

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="{{asset('css/app.css')}}">
    <title>Document</title>
</head>
<body>
<form href="{{ url('admin/complain/index') }}" class="form-inline">
    <input value="{{ $userMobile }}" class="form-control" name="user_mobile" placeholder="客户电话">
    <select class="form-control" name="status">
        <option @if ($status == 0) selected @endif value="0">未转发</option>
        <option @if ($status == 1) selected @endif value="1">已转发至物业</option>
        <option @if ($status == 2) selected @endif value="2">物业处理完毕</option>
    </select>
    <button type="submit" class="btn btn-default">查 找</button>
</form>
<table class="table table-hover">
    <thead>
    <tr>
        <th>客户姓名</th>
        <th>客户电话</th>
        <th>小区名称</th>
        <th>物业名称</th>
        <th>投诉内容</th>
        <th>投诉时间</th>
        <th>状态</th>

    </tr>
    </thead>
    <tbody>
    @foreach ($lists as $list)
        <tr>
            <td>{{ $list['user_name'] }}</td>
            <td>{{ $list['user_mobile'] }}</td>
            <td>{{ $list['plot_name'] }}</td>
            <td>{{ $list['property_name'] }}</td>
            <td>{{ $list['content'] }}</td>
            <td>{{ $list['created_at'] }}</td>
            @if ($list['status'] == 0)
            <td>未转发</td>
            {{--<td class="vid" vid="{{ $list['id'] }}">转发</td>--}}
            <td vid="{{ $list['id'] }}" onclick="reSend(this)">转发</td>
            @elseif($list['status'] == 1)
            <td>已转发至物业</td>
            @elseif($list['status'] == 2)
            <td>物业处理完毕</td>
            @endif
        </tr>
    @endforeach
    </tbody>
</table>
{{ $lists->links() }}
</body>
<script src="{{asset('js/app.js')}}"></script>
<script>
    // $('.vid').click(function (i) {
    //     // alert($(this).attr('vid'));
    // })
    function reSend(obj) {
        console.log($(obj).attr('vid'));
    }
</script>
</html>

 

转载于:https://my.oschina.net/k9606/blog/1810893

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值