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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{yun:}include file="$wapstyle/member/header.htm"{/yun}
<div id="yunvue" class="none">
  <div class="ms_show"></div>
<div class="ms_showpd">
  <div class="popular_body ">
    <div class="popular_position">
        <div class="popular_position_top">
          <h3>{{show.jobname}}</h3>
          <p>{{show.salary}}</p>
          <span>{{show.comname}}</span>
        </div>
        <div class="popular_position_bottom">
          当前状态:
        <span v-if="show.is_browse==1 || show.is_browse==2">待接受</span>
        <span v-else-if="show.is_browse==3">
            <span v-if="show.over" style="color: #FF4200;">已结束</span>
            <span v-else>同意面试</span>
        </span>
        <span v-else-if="show.is_browse==4">拒绝面试</span>
        <span v-else style="color: #FF4200;">已面试</span>
        </div>
      </div>
    <div class="popular_body_card">
      
      <div class="popular_card_namebox" @click="pageTo(show.com_url)">
        <div class="popular_card_logo"> <img :src="show.com_logo_n" width="100%" height="100%"> </div>
        <div class="popular_card_name">{{show.fname}}
          <span>您好,您的初选已通过,诚挚的邀请您前来面试。</span>
        </div>
      </div>
      <div class="popular_card_line" style="margin-bottom: 0px;"></div>
      <div class="invitecont_list">
         
          <div class="invitecont_list_name">面试时间</div>
          <div class="popular_template_a">{{show.intertime}}</div> 
      </div>
     
      <div class="invitecont_list">
        <div class="invitecont_list_name">面试职位</div>
        <div class="popular_template_a">{{show.jobname}}</div>
      </div>
   
      <div class="invitecont_list">
        <div class="invitecont_list_name">联系人</div>
        <div class="popular_template_a">{{show.linkman}}</div>
      </div>
      <div class="invitecont_list">
        <div class="invitecont_list_name">联系电话</div>
        <div class="popular_template_a">{{show.linktel}}
            <a :href="'tel:'+show.linktel" :data-jobid="show.jobid" onclick="addtellog(this);" class="telicon"> 
            <img src="{yun:}$wap_style{/yun}/images/interview_ipone.png" alt="" width="100%" height="100%"> 
          </a>
        </div>
      </div>
      <div class="invitecont_list">
         
          <div class="invitecont_list_name">面试地址</div>
          <div class=" ">{{show.address}}</div> 
 
      </div>
      <div class="popular_card_map" v-if="show.x!='' && show.y!=''">
        <img :src="'https://api.map.baidu.com/staticimage/v2?ak={yun:}$config.map_key{/yun}&center='+show.x+','+show.y+'&width=320&height=140&zoom=11&markers='+show.x+','+show.y" alt="" width="100%" height="100%">
      <input type="hidden" id="map_x" :value="show.x"/>
      <input type="hidden" id="map_y" :value="show.y"/>
      </div>
      <div class="invitecont_list" v-if="show.content">
        
          <div class="invitecont_list_name">备注信息</div>
          <div class=" ">{{show.content}}</div>
        </div> 
     </div>
  </div>
</div>
<div class="popular_tail" v-if="show.is_browse!=3 && show.is_browse!=4 && !show.over">
 
  <div @click="refuseSheet" class="popular_tail_refuse ">拒绝面试</div>
  <div @click="agree" class="popular_tail_accept" >接受面试</div>
</div>
<van-action-sheet v-model="moreShow" :actions="actionsList" description="请选择拒绝类型" @select="onSelect" cancel-text="取消" @cancel="onCancel"></van-action-sheet>
 
  <van-popup v-model="refuseShow" position="bottom" round closeable/>
    <div class="invite_no">
      <div class="invite_no_tit"> 拒绝理由</div>
      <div class="invite_no_textarea">
        <textarea class="  " id="remark" v-model="remark" name="remark" placeholder="请填写拒绝理由"></textarea>
      </div>
      <div class="invite_no_bth">
        <input class="" type="button" value="确认"  @click="inviteset(4)"/>
      </div>
    </div>
  </van-popup>
 
</div>
<script>
    var id = parseInt('{yun:}$smarty.get.id{/yun}');
      new Vue({
        el: '#yunvue',
        data: {
          show: {},
          id: id,
          islook: false,
          browse: 2,
          covers: [],
          moreShow:false,
          actionsList:[{name:'拒绝面试'},{name:'屏蔽企业', subname: '该企业将看不到你的简历'}],
 
          refuseShow:false,
          remark:''
        },
        computed: {
          count(){
 
          }
        },
        created() {
         this.inviteshow();
        },
        methods:{
          onCancel() {
            this.moreShow=false;
          },
          onSelect(item){
            if (item.name== '拒绝面试') {
              this.moreShow = false;
              this.refuseShow =  true;
            } else if (item.name == '屏蔽企业') {
              this.black()
            }
          },
          inviteshow:function(){
            showLoading();
            var that = this;
            var paramer = {};
                paramer['id'] = that.id;
            $.post('{yun:}url d=wxapp h=user m=job c=inviteshow{/yun}',paramer,function(data){
              hideLoading();
 
              that.show = data.data ? data.data : {};
              that.covers =  [{
                latitude: that.show.y,
                longitude: that.show.x,
                iconPath: '/static/image/member/mapdw.png',
                width: '60rpx',
                height: '60rpx',
                callout: {
                  content: that.show.address
                }
              }];
              that.browse = that.show.is_browse;
              $("#yunvue").removeClass('none');
            },'json');
          },
          refuseSheet: function() {
            this.moreShow = true;
          },
 
          agree: function() {
           showConfirm('面试前一天我们会通知您,祝您面试成功', () => {
              this.inviteset(3);
            })
          },
          inviteset:function(browse){
             let that = this;
              let param = {
                id: that.id,
                browse: browse
              };
              if(browse==4){
                param.remark = that.remark;
              }
              showLoading('处理中...');
              $.post('{yun:}url d=wxapp h=user m=job c=inviteset{/yun}',param,function(data){
                hideLoading();
              that.refuseShow = false;
              if (data.error == 1) {
                showToast('操作成功',2, function() {
                  that.browse = browse;
                  that.inviteshow();
                });
              } else {
                showToast('操作失败');
              }
 
            },'json');
          },
          black: function() {
            showConfirm('您确定要屏蔽该公司并删除该邀请?', () => {
              this.delfuc('black');
            })
          },
          delInvite:function(e){
 
             showConfirm('您确定要删除该邀请?', () => {
              this.delfuc('del');
            })
 
          },
          delfuc:function(type){
              let that = this
              let param = {
                id: that.id,
                type: type
              };
             showLoading('删除中...')
 
            $.post('{yun:}url d=wxapp h=user m=job c=invitedel{/yun}', param, function(data){
              hideLoading();
              if (data.error == 1) {
                that.browse = 5;
                showToast('删除成功',2, function() {
                  that.list.splice(index, 1);
                });return false;
              } else {
                showToast('删除失败');
              }
            });
 
 
          },
          pageTo:function(url){
              window.location.href = url;
          }
        }
      });
      function  addtellog(obj) {
          var jobid = $(obj).attr('data-jobid');
          $.post(wapurl + "?c=ajax&a=addJobTelLog", {
              jobid: jobid,
          }, function (data) {
 
          });
      }
</script>
</body>
</html>