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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<div id="yunvue">
    <div class="memberuser_nav">
        <ul>
            <li :class="type == 1 ? 'memberuser_nav_cur' : ''" onclick="resumeLoad(1)"><a>下载简历</a></li>
            <li :class="type == 2 ? 'memberuser_nav_cur' : ''" onclick="resumeLoad(2)"><a>收藏简历</a></li>
            <li :class="type == 3 ? 'memberuser_nav_cur' : ''" onclick="resumeLoad(3)"><a>浏览简历</a></li>
        </ul>
    </div>
    <div id="vuebox" class="memberuser_pt none">
        <div class="wap_member_box">
 
            <div class="hr_userbox" v-if="type < 3" v-for="(item, llk) in list" :key="llk" @click="resumeShow(item.wapurl)">
                <div class="hr_userlist">
                    <div class="hr_userlist_pic"><img :src="item.photo" alt=""></div>
                    <div class="hr_userlist_name">{{item.username}}</div>
                    <div class="hr_userlist_info"><span>{{item.exp}} · </span> <span>{{item.edu}} · </span> <span>{{item.age}}岁</span></div>
                </div>
                <div class="hr_userlist_p" v-if="item.remark"><span class="hr_userlist_t">简历备注 </span> {{item.remark}}</div>
                <div class="hr_userlist_p"><span class="hr_userlist_t">意向职位</span> {{item.jobname}}</div>
                <div class="hr_userlist_p"><span class="hr_userlist_t">下载时间 </span> {{item.datetime_n}}</div>
                <div class="hr_userlist_cz">
                    <div class="hr_userlist_czicon" @click.stop="setRemark(item.id, item.username ,llk, item.remark, type)"><img src="{yun:}$wap_style{/yun}/images/bz.png" alt=""></div>
                    <div class="hr_userlist_czicon" @click.stop="delResume(item.id, llk)"><img src="{yun:}$wap_style{/yun}/images/resume_del.png" alt=""></div>
                </div>
            </div>
 
            <div v-if="type==3">
                <span v-for="(item, lk) in list" :key="lk">
                    <div class="memberuser_list">
                        <a :href="item.wapurl" class="memberuser_list_a">
                            <div class="memberuser_photo">
                                <img :src="item.photo" width="100%" height="100%">
                            </div>
                            <div class="memberuser_xb" v-if="item.sex == '男'">
                                <img src="{yun:}$wap_style{/yun}/images/set_man.png" width="100%" height="100%">
                            </div>
                            <div class="memberuser_xb" v-else>
                                <img src="{yun:}$wap_style{/yun}/images/set_woman.png" width="100%" height="100%">
                            </div>
                            <div class="memberuser_name">{{item.username}}{{item.height_status==2 ? '.优质人才简历' : ''}}</div>
                            <div class="memberuser_info">{{item.exp}}·{{item.edu}}·{{item.age}}岁</div>
                            <div class="memberuser_job">
                                意向 <span class="memberuser_jobname">{{item.jobname}}</span>
                            </div>
                        </a>
                        <span @click="delResume(item.id, lk)" class="memberuser_sc">
                            <img src="{yun:}$wap_style{/yun}/images/resume_del.png" width="100%" height="100%">
                        </span>
                        <span class="memberuser_time">{{item.datetime_n}}</span>
                    </div>
                </span>
            </div>
        </div>
        <div v-if="count ==2 && islook">
            <van-pagination v-model="page" :total-items="total" :items-per-page="limit" force-ellipses @change="pageChange"/>
        </div>
        <div class="bgboxpt" v-show="islook&&count==0">
            <div class="wap_member_bgcar">
                <div class="wap_member_no">
                    <div class="wap_member_no_p1">暂无记录~</div>
                </div>
            </div>
        </div>
 
        <!--备注弹出-->
        <van-popup v-model="remarkShow" position="bottom" round closeable>
            <div class="job_tckpd">
                <div class="job_tcktit">备注简历</div>
 
                <div class="job_tcktextarea mt10">
                    <textarea class="mt10"  v-model="remark"  placeholder="请输入备注内容"></textarea>
                </div>
                <div class="job_tckbth">
                    <input class="" type="button" value="提交" @click="remarkResume" />
                </div>
            </div>
        </van-popup>
    </div>
</div>
 
<script>
    var pageType = parseInt('{yun:}$smarty.get.type{/yun}') || 1;
    var currentPage = parseInt('{yun:}$smarty.get.page{/yun}') || 1;
    var yunvue = new Vue({
        el: '#yunvue',
        data: {
            list: [],
            limit: 10,
            total: 0,
            type: pageType,
            page: currentPage,
            islook: false,
 
            remarkShow: false,
            remark: '',
 
            d_id: '',
            d_key: '',
            d_name: ''
        },
        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 = {};
                paramer['page'] = this.page;
                paramer['limit'] = this.limit;
                if (this.type == 1) {
                    var url = '{yun:}url d=wxapp h=com m=resume c=downlist{/yun}';
                } else if (this.type == 2) {
                    var url = '{yun:}url d=wxapp h=com m=resume c=talentpoollist{/yun}';
                } else if (this.type == 3) {
                    var url = '{yun:}url d=wxapp h=com m=resume c=look_resume{/yun}';
                }
                $.post(url, paramer, function (res) {
                    hideLoading();
                    that.list = res.data.list;
                    that.total = res.data.total;
                    that.islook = true;
                    $("#vuebox").css('display', 'block');
                }, 'json');
            },
            setRemark: function (id, rname, key, remark) {
 
                var that = this;
                that.d_id       =   id;
                that.d_name     =   rname;
                that.d_key      =   key
                that.remark     =   remark;
                that.remarkShow =   true;
            },
            remarkResume:function(){
                var that = this;
                var paramer = {
                    name: that.d_name,
                    id: that.d_id,
                    remark: that.remark
                };
                if (that.type == 1){
                    var url = '{yun:}url d=wxapp h=com m=resume c=dRemark{/yun}';
                }else if(that.type == 2){
                    var url = '{yun:}url d=wxapp h=com m=resume c=tRemark{/yun}';
                }
                showLoading('设置中');
 
                $.post(url, paramer, function (data) {
                    hideLoading();
                    if (data.error == 1) {
 
                        that.list[that.d_key].remark = that.remark;
                        showToast(data.msg);
                        that.remarkShow = false;
                    } else {
 
                        showModal(data.msg);
                    }
                }, 'json')
            },
            delResume(id, key) {
                var that = this;
                var paramer = {ids: id};
                if (this.type == 1) {
                    var url = '{yun:}url d=wxapp h=com m=resume c=down_del{/yun}';
                } else if (this.type == 2) {
                    var url = '{yun:}url d=wxapp h=com m=resume c=talentpooldel{/yun}';
                } else if (this.type == 3) {
                    var url = '{yun:}url d=wxapp h=com m=resume c=look_resume_del{/yun}';
                }
 
                showConfirm('确定删除?', function () {
                    showLoading('删除中');
                    $.post(url, paramer, function (data) {
                        if (data.error == 1) {
                            that.list.splice(key, 1);
                            showToast('删除成功');
                        }
                    }, 'json')
                });
            },
            pageChange: function (e) {
                location.href = 'index.php?c=resumecolumn&type=' + this.type + '&page=' + e;
            },
            resumeShow: function (url) {
                navigateTo(url)
            }
        }
    })
 
    function resumeLoad(type) {
        yunvue.$data.type = type;
        yunvue.$data.page = 1;
        yunvue.$data.list = [];
        yunvue.$data.islook = false;
 
        yunvue.getList();
        window.history.replaceState({}, "", '?c=resumecolumn&page=1&type=' + type);
    }
</script>
</body>
</html>