Blame view

app-ht/modules/maintainer/views/user/info.php 3.25 KB
d11ff394   xu   app-ht(v0.0.1 bui...
1
2
3
<?php

use yii\helpers\Url;
afd2f743   xu   app-ht(v0.0.1 bui...
4
use domain\user\User as UserStatus;
d11ff394   xu   app-ht(v0.0.1 bui...
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
$this->title = '维修厂详情';
$this->params['breadcrumbs'][] = '维修厂管理';
$this->params['breadcrumbs'][] = ['label' => '维修厂列表', 'url' => ['/maintainer/user/index']];
$this->params['breadcrumbs'][] =  $this->title;


?>
<style>
    .imgs-class{margin:0;padding:0;list-style: none}
    .imgs-class li{margin:0;padding:0;width:150px;list-style: none;float:left;padding-right:1rem;box-sizing: border-box}
    .imgs-class li img{width:100%;}
    textarea {border-radius: 4px;}

</style>
<div class="panel panel-default">
    <div id="warning"></div>

    <input type="hidden" value="<?=$user['uuid'] ?>" name="uuid" id="uuid" >

    <div class="panel-body">
        <table class="table table-bordered">
            <tr>
                <td colspan="4" class="bg-info">维修厂信息</td>
            </tr>
            <tr>
d11ff394   xu   app-ht(v0.0.1 bui...
30
                <th width="100">维修厂名称</th>
afd2f743   xu   app-ht(v0.0.1 bui...
31
32
33
34
35
36
37
38
39
40
41
42
                <td width="350">
                    <?=$user['name']; ?>
                </td>

                <th width="100">状态</th>
                <td >
                    <?=$user['status_label']?>
                    <?php
                    if (UserStatus::STATUS_APPROVE != $user['status']): ?>
                    <a href="javascript:void(0)" class="btn btn-primary approve-btn">审核通过</a>
                    <?php endif;?>
                </td>
d11ff394   xu   app-ht(v0.0.1 bui...
43
44
45
46
47
48
49
50
            </tr>
            <tr>
                <th>维修厂电话</th>
                <td><?=$user['mobile']; ?></td>

                <th>注册时间</th>
                <td><?=date('Y-m-d H:i:s', $user['created_at']); ?></td>
            </tr>
afd2f743   xu   app-ht(v0.0.1 bui...
51
52
            <tr>
                <th>紧急联系人</th>
955204e8   xu   app-ht(v0.0.1 bui...
53
                <td><?=$user['emergencyContact']; ?></td>
d11ff394   xu   app-ht(v0.0.1 bui...
54

afd2f743   xu   app-ht(v0.0.1 bui...
55
                <th>紧急联系电话</th>
955204e8   xu   app-ht(v0.0.1 bui...
56
57
58
59
60
                <td><?=$user['emergencyPerson']; ?></td>
            </tr>
            <tr>
                <th>营业执照</th>
                <td><a target="_blank" href="<?=$user['licensePic']; ?>"><img width="150" src='<?=$user["licensePicMin"]?>' /></a></td>
afd2f743   xu   app-ht(v0.0.1 bui...
61

d11ff394   xu   app-ht(v0.0.1 bui...
62
63
                <th>门头照</th>
                <td><a target="_blank" href="<?=$user['factoryHeadPic']; ?>"><img width="150" src='<?=$user["factoryHeadPic"]?>' /></a></td>
bb9baa4c   xu   app-wx v0.1.0 bui...
64
            </tr>
d11ff394   xu   app-ht(v0.0.1 bui...
65

afd2f743   xu   app-ht(v0.0.1 bui...
66
            <tr>
bb9baa4c   xu   app-wx v0.1.0 bui...
67
                <th>维修技术负责人证书</th>
afd2f743   xu   app-ht(v0.0.1 bui...
68
69
70
71
                <td><a target="_blank" href="<?=$user['techChargePic']; ?>"><img width="150" src='<?=$user["techChargePic"]?>' /></a></td>

                <th>质检负责人证书</th>
                <td><a target="_blank" href="<?=$user['qaChargePic']; ?>"><img width="150" src='<?=$user["qaChargePic"]?>' /></a></td>
bb9baa4c   xu   app-wx v0.1.0 bui...
72
            </tr>
afd2f743   xu   app-ht(v0.0.1 bui...
73
74
        </table>
    </div>
bb9baa4c   xu   app-wx v0.1.0 bui...
75

d11ff394   xu   app-ht(v0.0.1 bui...
76
77
78
79
</div>
<script>
    var approveURL = '<?=Url::to("approve") ?>';
    $(function() {
d11ff394   xu   app-ht(v0.0.1 bui...
80
        $('.approve-btn').click(function(e) {
bb9baa4c   xu   app-wx v0.1.0 bui...
81
82
83
84
85
86
87
88
89
90
91
92
93
            var uuid = $('#uuid').val();
            if(!confirm('确定审核通过该维修厂')) {
                return false;
            }
            $.post(approveURL,{id:uuid}, function(res) {
                if (res.success) {
                    alert(res.message);
                    window.parent.document.getElementById('x-iframe').contentWindow.location.reload(true);
                }
            }, 'json')
        })
    })
</script>
afd2f743   xu   app-ht(v0.0.1 bui...

bb9baa4c   xu   app-wx v0.1.0 bui...

afd2f743   xu   app-ht(v0.0.1 bui...