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
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<div id="yunvue">
    <div class="issue_post_body" v-show="islook">
            <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.username}}</div>
                            <div class="concise_top_time">{{item.time_n}}</div>
                        </div>
                        <div class="particulars_concise_center">
                            <ul>
                                <li v-if="item.exp">{{item.exp}}·</li>
                                <li v-if="item.edu">{{item.edu}}·</li>
                                <li v-if="item.age">{{item.age}}岁</li>
                            </ul>
                        </div>
                        <div class="atn_me" v-if="item.jobname"><span class="atn_me_name">意向</span>{{item.jobname}}</div>
                        
                    </div>
                </div>
            <div v-if="count==2">
                <van-pagination v-model="page" :total-items="total" :items-per-page="limit" force-ellipses @change="pageChange"/>
            </div>
        </div>
        <div v-show="islook&&count==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,
            };
        },
        computed: {
            count() {
                if (this.total > this.limit) {
                    return 2;
                } else if (this.info.length == 0) {
                    return 0;
                } else {
                    return 1;
                }
            }
        },
        created() {
            this.atnlist('refresh');
        },
        methods: {
            atnlist: 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
                };
 
                showLoading();
                $.post('{yun:}url d=wxapp h=com m=resume c=attention_me{/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')
            },
            pageChange: function (page) {
                this.page = page;
                this.atnlist('');
            },
            resumeShow: function (url) {
                navigateTo(url)
            }
        }
    });
</script>
 
</body>
</html>