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
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<div id="yunvue">
    <div class="issue_post_body" v-show="islook">
        <div v-if="total">
            <div class="body_card_content_box">
                <div v-for="(item, infokey) in info" :key="infokey" class="card_content_box_particulars" @click="resumeShow(item.waprurl)">
                    <div class="particulars_icon">
                        <img :src="item.photo" alt="">
                    </div>
                    <div class="particulars_concise">
                        <div class="particulars_concise_top">
                            <div class="concise_top_name">{{item.name}}</div>
                            <div class="concise_top_time">{{item.time_n}}</div>
                        </div>
                        <div class="particulars_concise_center">
                            <ul>
                                <li>{{item.exp}}·</li>
                                <li>{{item.edu}}·</li>
                                <li>{{item.age}}岁</li>
                            </ul>
                        </div>
                        <div class="particulars_concise_bom">
                            <div class="concise_bom_desired_position Intention_to_width">
                                <div class="concise_bom_desired Intention_to_locate">意向</div>
                                <div class="concise_bom_position  Intention_to_word">{{item.jobclassidname}}</div>
                            </div>
                            <div class="concise_bom_icon" @click.stop="delLookJob(item.id, infokey)">
                                <img src="{yun:}$wap_style{/yun}/images/resume_del.png" alt="" width="100%" height="100%">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div v-if="total > limit" style="margin-top: .266667rem;">
                <van-pagination v-model="page" :total-items="total" :items-per-page="limit" force-ellipses @change="pageChange"/>
            </div>
        </div>
        <div v-if="total==0">
            <div class="wap_member_no">
                您暂时还没有人才浏览您的职位
            </div>
        </div>
    </div>
</div>
<script>
    var yunvue = new Vue({
        el: '#yunvue',
        data() {
            return {
                info: [],
                islook: false,
 
                total: 0,
                pageTotal: 0,
                page: 1,
                limit: 10,
            };
        },
        created() {
            this.getlookjob('refresh');
        },
        methods: {
            getlookjob: function (type) {
                var that = this;
                if (type && type == 'refresh') {
                    that.page = 1;
                    that.info = [];
                    that.islook = false;
                }
                var paramer = {
                    page: that.page,
                    limit: that.limit
                };
                $.post('{yun:}url d=wxapp h=com m=resume c=look_job{/yun}', paramer, function (data) {
                    hideLoading();
                    if (data) {
                        let list = data.data.list;
                        that.total = data.data.total;
                        that.pageTotal = Math.ceil(data.data.total / that.limit);
                        if (list && list.length > 0) {
                            that.info = list;
                        }
                        that.islook = true;
                    }
                }, 'json')
            },
            delLookJob(id, key) {
                var that = this;
                var paramer = {
                    ids: id,
                };
                showConfirm('确定删除?', function () {
                    showLoading('删除中');
                    $.post('{yun:}url d=wxapp h=com m=resume c=look_job_del{/yun}', paramer, function (data) {
                        hideLoading();
                        if (data.error == 1) {
                            showToast('删除成功', 2, function () {
                                that.info.splice(key, 1);
                            });
                        }
                    }, 'json')
                });
            },
            pageChange: function (page) {
                this.page = page;
                this.getlookjob('');
            },
            resumeShow: function (url) {
                navigateTo(url)
            }
        }
    });
</script>
 
</body>
</html>