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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
 
<div id="yunvue">
    <div class="wap_member_box" v-show="islook">
        <div class="pages" style="margin-top:10px;"> {yun:}$pagenav{/yun}</div>
        <div v-if="total > 0">
            <div class="com_cardlist " v-for="(item,rkey) in info" :key="rkey">
                <div class="wap_member_date">
                <span class="yun_m_job_date_n">
                    <span v-if="item.status=='0'" @click="navigateTo('index.php?c=rewardpay&id=' + item.id)"
                          class="job_list_jobname com_member_hr_cblue">{{item.uname}}</span>
                    <span v-else @click="navigateTo('index.php?c=lookresume&id=' + item.id)"
                          class="job_list_jobname com_member_hr_cblue">{{item.uname}}</span>
                    {{item.usertype=='3' ? '(猎头中介推荐)' : '(用户自荐)'}}
                </span>
 
                    <div class="wap_member_date_r">{{item.log.nowmsg}}</div>
                </div>
 
                <div class="yun_m_job_list_zt">
                   <div class="jobrewardlog_list_p"> <span class="jobrewardlog_list_m"> 应聘职位</span>
                    <span @click="navigateTo('{yun:}url m=job c=comapply{/yun}&id=' + item.jobid)"
                          class=" ">{{item.name}}</span>  </div>
                    <div class="jobrewardlog_list_p"><span class="jobrewardlog_list_m">申请日期</span> {{item.datetime_n}}</div>
                    <div class="jobrewardlog_list_p"><span class="jobrewardlog_list_m">意向职位</span> {{item.jobclass}}</div>
                    <div class="jobrewardlog_list_p"><span class="jobrewardlog_list_m">基本情况</span> {{item.exp}}经验 · {{item.edu}}
                    </div>
                    <div class="yun_m_job_list_zt"></div>
                </div>
 
                <div class="yun_m_job_list_zt">
                    <!--操作日志--->
                    <ul class="jobrewardlog_list" v-if="item.log.loglist">
                        <li class="m_xs_pr_f_cur" v-for="(linfo,lkey) in item.log.loglist" :key="lkey">
                            <i class="m_xs_pr_f_icon"></i>
                            <div class="jobrewardlog_time">{{linfo.time_n}}</div>
                            <div class="jobrewardlog_box" v-html="linfo.info"></div>
                        </li>
                    </ul>
 
                    <ul class="jobrewardlog_list" v-if="item.log.endmsg">
                        <li><i class="m_xs_pr_f_icon"></i>
                            <div class="jobrewardlog_box jobrewardlog_box_ddai">{{item.log.endmsg}}</div>
                        </li>
                    </ul>
                    <!--end-->
                </div>
                {yun:}if empty($spid){/yun}
                <div class="yun_member_bth">
                    <span v-if="item.status=='0'" @click="navigateTo('index.php?c=rewardpay&id=' + item.id)"
                          class="yun_member_sub yun_member_bth2">查看简历</span>
                    <span v-else @click="navigateTo('index.php?c=lookresume&id=' + item.id)"
                          class="yun_member_sub yun_member_bth2 sq_jobpack_right_a_look ">查看简历</span>
                    <span v-if="item.log.input">
                        <span v-for="(inputv,pkey) in item.log.input" :key="pkey"
                              @click="getStatus(item.id, inputv.status, rkey,item.wapinvite_url)" class="yun_member_sub yun_member_bth2">{{inputv.name}}</span>
                    </span>
                </div>
                {yun:}/if{/yun}
            </div>
            <div v-if="total > limit">
                <van-pagination v-model="page" :total-items="total" :items-per-page="limit" force-ellipses
                                @change="pageChange"/>
            </div>
        </div>
 
        <div v-else>
            <div class="wap_member_no">暂无求职者应聘该职位。</div>
            <em class="wap_memberjob_fabu "></em>
        </div>
    </div>
</div>
<script>
    var yunvue = new Vue({
        el: '#yunvue',
        data() {
            return {
                info: [],
                jobid: 0,
                islook: false,
 
                total: 0,
                pageTotal: 0,
                page: 1,
                limit: 10,
            };
        },
        created() {
            this.jobid = getUrlKey('jobid');
            this.rloglist('refresh');
        },
        methods: {
            rloglist: function (type) {
                var that = this;
                if (type && type == 'refresh') {
                    that.page = 1;
                    that.info = [];
                    that.islook = false;
                }
                var paramer = {
                    page: that.page,
                    jobid: that.jobid,
                    limit: that.limit
                };
                showLoading();
                $.post('{yun:}url d=wxapp h=com m=job c=rewardlog{/yun}', paramer, function (data) {
                    hideLoading();
                    if (data) {
                        that.total = data.total;
                        that.pageTotal = Math.ceil(data.total / that.limit);
                        that.info = data.data.length > 0 ? data.data : [];
                        that.islook = true;
                    }
                }, 'json')
            },
            getStatus: function (id, status, key,url) {
                var that = this;
                if (status == '2') {
                    navigateTo(url);//邀请面试
                } else {
                    var param = {
                        rewardid: rewardid,
                        status: status
                    };
 
                    showLoading('操作中');
                    $.post('{yun:}url d=wxapp h=com m=job c=logstatus{/yun}', param, function (data) {
                        hideLoading();
                        if (data.error == 1) {
                            showToast(data.msg, 2, function () {
                                that.info[key].log = data.data;
                            });
                            return;
                        } else {
                            showModal(data.msg);
                            return;
                        }
                    }, 'json')
                }
            },
            pageChange: function (page) {
                this.page = page;
                this.rloglist('');
            },
            navigateTo: function (url) {
                window.location.href = url;
            },
        }
    });
</script>