
<script src="{yun:}$wap_style{/yun}/js/vue.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$wap_style{/yun}/js/list_bottom.js?v={yun:}$config.cachecode{/yun}"></script>
<div id="resumelist_vue" class="none">
    
    <div class="yun_newedition_resumelist"  v-for="item in userlist" :key="item.id">
        <a v-bind:href="item.wapurl">
            <div class="yun_newedition_resumepic">

                <img v-bind:src="item.photo"> 
                
                <span v-bind:class="item.sex==1?'user_tj_xb':'user_tj_xg'"></span>
            </div>
            <div class="yun_newedition_resume_wantjob"><span class="yun_newedition_resume_wantjob_n">{{item.name}}</span>
            </div> 

            <div class="yun_newedition_resume_name">
                {{item.name_n}}
                <span class="user_i_n">
                {{item.sex_n?item.sex_n+',':''}}
                {{item.age>0?item.age:'保密'}}
                </span>
                <span class="usertj" v-if="item.rec_resume==1"> 推荐</span>
            </div>
            <div class="yun_newedition_userinfo">
                {{item.exp_n?item.exp_n+'经验':''}}
                <i class="yun_newedition_jobline" v-if="item.edu_n"></i>{{item.edu_n}}学历
            </div>  
            
            <div class="user_undergo_box" v-if="item.work_content || item.edu_content">
                <div v-if="item.edu_content" class="user_undergo user_undergo_a">{{item.edu_content}}</div>
                
                <div v-if="item.work_content" class="user_undergo user_undergo_b">{{item.work_content}}</div>
                
            </div>
            
            
            
            <div v-if="item.tag_arr" class="yun_tjresumebox">
                
                <span class="yun_tjresume" v-for="tag in item.tag_arr" :key="tag">{{tag}}</span>
                
            </div>
            
            
            <span class="yun_newedition_resume_time">
                <span>{{item.lastupdate_n}}</span> 
            </span>
            <div v-if="lookResumeIds && lookResumeIds.indexOf(item.id)!=-1" class="yun_ljl">. 浏览过的简历</div>
        </a>
    </div>
</div>
<script type="text/javascript">
    var app = new Vue({
      el: '#resumelist_vue',
      data: {
        userlist:[],
        lookResumeIds:[]
      }
    });

    var resumepage = 1;

    function fetchData() {
        resumepage++;
        var searchurl = document.getElementById('searchurl').value;
        $.post(wapurl + 'index.php?c=resume&a=ajaxLoad', {searchurl: searchurl,page: resumepage}, function(res){
			document.getElementById('pageLoading').classList.add('none');
            if(res){
                var html = '';
                var data = eval('(' + res + ')');
                if(data.list.length > 0){
                    app.$data.userlist = data.list;
                    app.$data.lookResumeIds = data.lookResumeIds?data.lookResumeIds:[];
				}else{
					document.getElementById('pageNoMore').classList.remove('none');
				}
            }
            document.getElementById('listdiv').insertAdjacentHTML('beforeend',$("#resumelist_vue").html());
        });
    }
</script>