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
{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<div id="yunvue" class="none">
 <div class="wap_member_box">
    <div class="interview_card" v-for="(item, spviewkey) in spviewlist" :key="spviewkey">
        <div class="interview_card_top">
            <span @click="pageTo('index.php?c=sproom&id='+item.id)" class="interview_card_top_box">
                <div class="top_box_icon">
                    <img src="{yun:}$wap_style{/yun}/images/video_icon.png" alt="" width="100%" height="100%">
                </div>
                <div class="top_box_text">进入面试间</div>
            </span>
            <div class="interview_card_top_state" @click="showReason(spviewkey)">{{item.status_n}}</div>
        </div>
        <div class="interview_card_cen">
            <span @click="pageTo('index.php?c=spresume&sid='+item.id)" class="interview_card_cen_box">
                <div class="card_cen_box_number">{{item.subnum}}</div>
                <div class="card_cen_box_order">预约简历</div>
            </span>
            <div class="interview_card_cen_require">
                <div class="cen_require_timebox">
                    <div class="require_timebox_q">面试时间</div>
                    <div class="require_timebox_a">{{item.sdate_n}}</div>
                </div>
                <div class="cen_require_timebox">
                    <div class="require_timebox_q">备注信息</div>
                    <div class="require_timebox_a">{{item.remark}}</div>
                </div>
            </div>
        </div>
        <div class="interview_card_bom">
        
        <div class="card_bom_icon"><a href="javascript:void(0)" @click="upSpview(item.id,item.starttime)">   <img src="{yun:}$wap_style{/yun}/images/Apply_compile.png" alt="" width="100%" height="100%"></a>   </div>
    
      <div class="card_bom_icon"><a href="javascript:void(0)" @click="del(item.id,spviewkey)">   <img src="{yun:}$wap_style{/yun}/images/resume_del.png" alt="" width="100%" height="100%" /></a>   </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 class="wap_member_no" v-show="count==0">
        远程视频面试更轻松<div><a class="wap_member_no_submit" href="javascript:void(0)" onclick="addSpview()">创建面试间</a></div>
    </div>
 
    
</div>
</div>
 
<script>  
  var currentPage = parseInt('{yun:}$smarty.get.page{/yun}');   
  var wapurl = "{yun:}url m=wap{/yun}";
  var  yunvue=  new Vue({
        el: '#yunvue',
        data: {
            spviewlist: [],
            limit:10,       
            total:0,
            page: currentPage ? currentPage : 1,
            iosfk: 1,
            mb_content: ''
        },
        computed: {
          count(){
            if(this.total > this.limit){
              return 2;
            }else if(this.spviewlist.length==0){
              return 0;
            }else{
                return 1;
            }
          }
        },
        created() {   
         this.getlist();
        },
        methods:{
          getlist:function(){
            showLoading();
            var that = this;
            var paramer = {};
                paramer['page'] = that.page;
                paramer['limit'] = that.limit;     
            $.post('{yun:}url d=wxapp h=com m=spview c=spviewList{/yun}',paramer,function(data){
                hideLoading();
                if (data.error == 0) {
                    let res = data.data;
                    that.spviewlist = res.list;
                    that.iosfk = res.iosfk;
                } 
                that.total = data.total;
                that.page = currentPage ? currentPage : 1;
               $("#yunvue").css('display', 'block');
            },'json');
          },          
          upSpview:function(id,sstime){
            let stime = sstime * 1000;
            let  time = new Date().getTime();
            if (stime > time) {
                window.location.href="index.php?c=spviewadd&id="+id;
            } else {
                showToast('视频面试已开始,无法修改!');
            }
          },
          showReason:function(key){
            if(this.spviewlist[key].status == 2){                   
                showModal(this.spviewlist[key].statusbody)
            }
          },    
          del:function(id,key){
              let that = this
              let param = {
                id: id
              };
             
             showConfirm('确定删除?', () => {
                showLoading('删除中...')
                $.post('{yun:}url d=wxapp h=com m=spview c=delSpview{/yun}', param, function(data){
                  hideLoading();
                  if (data.error == 1) {
                    showToast(data.msg,2, function() {
                        location.reload();   
                    });
                  } else {
                    showToast(data.msg);
                  }
                });
             });   
             
          },
           pageChange:function(e){
          
            location.href = 'index.php?c=spview&page='+e;
          },
          pageTo:function(url){
              window.location.href = url;
          }
        } 
      });
function addSpview(){
    showLoading()
    $.post('{yun:}url d=wxapp h=com m=index c=spviewCheck{/yun}', {rand: Math.random()}, function(data){
        hideLoading();
        if(data){
            if (data.error === 0){
                let res = data.data;
                if(res.num == 1){
                    window.location.href="index.php?c=spviewadd"
                }else{
                    if(res.spid){
                        showToast('当前账户套餐余量不足,请联系主账户增配!');
                    }else{
                        modalVue.$data.mb_content = '套餐已用完,立即升级VIP?';
                        modalVue.$data.cancelText = '不用了';
                        modalVue.$data.confirmText = '去购买';
                        modalVue.$data.yunModal = true;
                        modalType = 'spview';
                    }
                }
            }else{
                showToast(data.msg);
            }
        }
    },'json');
}
</script>
<!-- 余额不足提示 -->
{yun:}include file="$wapstyle/publichtm/yun_modal.htm"{/yun}
</body>
</html>