chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<div id="yunvue" class="wap_member_box none">
    <div class="memberuser_looklist" v-for="(item, zk) in list" :key="zk">
        <a href="javascript:void(0)" @click="toresume(item.uid,zk)" class="memberuser_looklist_a">
            <div class="memberuser_looklistpt">
                <img :src="item.photo" width="100%" height="100%">
            </div>
            <div class="memberuser_lookxb">
                <img v-if="item.sex == '男'" src="{yun:}$wap_style{/yun}/images/set_man.png" width="100%" height="100%">
                <img v-else src="{yun:}$wap_style{/yun}/images/set_woman.png" width="100%" height="100%">
            </div>
            <div class="memberuser_name">{{item.name}}
                <i class="hr_rusume_new" v-if="item.is_browse == 1">新</i>
            </div>
            <div class="memberuser_info">{{item.exp}}·{{item.edu}}·{{item.age}}岁</div>
        </a>
        <div class="memberuser_lookjob">
            <span class="memberuser_lookname">预约职位</span>
            <span class="memberuser_jobname">{{item.jobname}}</span>
        </div>
        <div class="memberuser_lookjob">
            <span class="memberuser_lookname">预约时间</span>
            <span class="memberuser_jobname">{{item.ctime_n}}</span>
        </div>
        <div class="memberuser_lookjob memberuser_lookyxjob">
            <span class="memberuser_lookname">面试状态</span>
            <span class="memberuser_jobname"> 
                <span v-if="item.status == 0">未面试 </span>
                <span v-if="item.status == 1">正在面试 </span>
                <span v-if="item.status == 2">已面试 </span>
            </span>
        </div>
        <a href="javascript:void(0)" @click.stop="del(zk)" class="memberuser_sc">
            <img src="{yun:}$wap_style{/yun}/images/resume_del.png" width="100%" height="100%">
        </a>
    </div>
    <div v-if="count ==2 && islook">
        <van-pagination v-model="page" :total-items="total" :items-per-page="limit" force-ellipses @change="pageChange" /> 
    </div>
    <span v-show="islook&&count==0">
        <div class="wap_member_no">暂无预约人才~ 您可以主动邀请人才哦!</div>
        <div>
            <a class="wap_member_no_submit" href="{yun:}url m=wap c=resume{/yun}">去搜索人才</a>
        </div>
    </span>
</div>
<script>
    var currentPage = parseInt('{yun:}$smarty.get.page{/yun}') || 1;
    var yunvue = new Vue({
        el: '#yunvue',
        data: {
            list: [],
            limit: 10,
            total: 0,
            page: currentPage,
            islook: false
        },
        computed: {
            count() {
                if (this.total > this.limit) {
                    return 2;
                } else if (this.list.length == 0) {
                    return 0;
                } else {
                    return 1;
                }
            }
        },
        created() {
            this.getList();
        },
        methods: {
            getList: function() {
                showLoading();
                var that = this;
                var paramer = {
                    sid: '{yun:}$smarty.get.sid{/yun}',
                    page: this.page,
                    limit: this.limit
                };
                var url = '{yun:}url d=wxapp h=com m=spview c=spresume{/yun}';
                $.post(url, paramer, function(data) {
                    hideLoading();
                    if(data.error == 0){
                        var res = data.data;
                        that.list = res.list;
                        that.total = res.total;
                    }
                    that.islook = true;
                    $("#yunvue").css('display', 'block');
                }, 'json');
            },
            del(id, key) {
                var that = this;
                var url = '{yun:}url d=wxapp h=com m=spview c=delSub{/yun}';
                showConfirm('确定删除?', function() {
                    showLoading('删除中');
                    $.post(url, {id: id}, function(data) {
                        if (data.error == 1) {
                            that.list.splice(key, 1);
                            showToast('删除成功');
                        }
                    }, 'json')
                });
            },
            pageChange: function(e) {
                location.href = 'index.php?c=spreaume&page=' + e;
            },
            toPage: function(url) {
                window.location.href = url;
            },
            toresume(uid, key){
                this.list[key].is_browse = 2;
                window.location.href = wapurl + 'index.php?c=resume&a=show&uid=' + uid;
            }
        }
    })
</script>
</body>
</html>