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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
{yun:}include file="$wapstyle/member/header.htm"{/yun}
<div id="yunvue" class="none">
    <div class="Edit_your_resume_hint" id="privacy" v-if="(expect.status==2||expect.status==3)&&privacy==''">
        <div class="resume_hint_left">
            <div class="resume_hint_eye">
                <img src="{yun:}$wap_style{/yun}/images/conceal_1.png" alt="" width="100%" height="100%">
            </div>
            <div class="resume_hint_word">
                <div v-if="expect.status==2" class="inlineblock resume_hint_word">
                    <span class="resume_hint_word_color">简历已隐藏,</span>
                    <span class="resume_hint_word_black">企业无法主动发现你</span>
                </div>
                <div v-if="expect.status==3">
                    <span class="resume_hint_word_color">简历仅投递企业可见</span>
                </div>
            </div>
        </div>
        <div class="resume_hint_right">
            <div v-if="expect.status==2" class="hint_right_none" onclick="navigateTo('index.php?c=privacy')">取消隐藏</div>
            <div v-if="expect.status==3" class="hint_right_none" onclick="navigateTo('index.php?c=privacy')">修改设置</div>
        </div>
        <div class="hint_right_del" onclick="closePrivacy()">
            <img src="{yun:}$wap_style{/yun}/images/remove.png" alt="" width="100%" height="100%">
        </div>
    </div>
 
    <div style="padding: 0.266667rem 0.266667rem 0.233333rem; width: 100%; background-color: #f3f3f3;height: auto;" v-if="expect.state==3">
        <div class="resume_min_body_cord">
            <span class="resume_hint_word_color">审核未通过</span>
            <span class="resume_hint_word_black" v-if="expect.statusbody">: {{expect.statusbody}}</span>
        </div>
    </div>
 
    <!-- 页面整体内容 -->
    <div id="resumeBody" class="Edit_your_resume_min_body" :style="privacy==''&& expect.status!=1?'':''">
 
        <!-- 页面主题卡片视图 -->
        <div class="resume_min_body_cord">
            <!-- 用户基本资料 -->
            <div class="resume_min_body_cord_data">
                <div class="resume_min_body_cord_data_left" onclick="navigateTo('index.php?c=info')">
                    <div class="data_left_nameandmodification">
                        <div class="data_left_name">{{info.name}}</div>
                        <div class="data_left_modification">
                            <img src="{yun:}$wap_style{/yun}/images/icon_question.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                    <div class="data_left_condition">
                        <ul>
                            <li>{{info.exp_n}}</li>
                            <li>· {{info.edu_n}} ·</li>
                            <li>{{info.age}}岁</li>
                        </ul>
                    </div>
                </div>
                <div class="resume_min_body_cord_data_logo" onclick="navigateTo('index.php?c=photo')">
                    <img :src="info.photo" alt="" width="100%" height="100%" />
                </div>
            </div>
            <!-- 求职意向 -->
            <div class="resume_min_body_cord_intention">
                <div class="cord_intention_top">
                    <div class="cord_intention_top_word">求职意向</div>
                </div>
                <div class="cord_intention_bom" @click="pageTo('index.php?c=addexpect&eid='+expect.id)">
                    <div class="data_left_condition">
                        <ul>
                            <li>{{expect.name}}</li>
                            <li v-if="expect.salary">· {{expect.salary}}</li>
                            <li v-if="expect.city_classname">· {{expect.city_classname}}</li>
                        </ul>
                    </div>
                    <div class="cord_intention_bom_icon">
                        <img src="{yun:}$wap_style{/yun}/images/icon_more.png" alt="" width="100%" height="100%">
                    </div>
                </div>
            </div>
            <!-- 工作经历 -->
            <div class="resume_min_body_cord_work_experience">
                <div class="cord_work_experience_one">
                    <div class="cord_intention_top_word">工作经历</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=work')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
 
                <div @click="pageTo('index.php?c=addresumeson&type=work&eid='+expect.id+'&id='+rwork.id)" v-for="(rwork, wkey) in work" :key="wkey" class="work_list">
                    <div class="cord_work_experience_two">
                        <div class="cord_work_experience_two_word">{{rwork.name}}</div>
                        <div class="cord_work_experience_two_icon">
                            <img src="{yun:}$wap_style{/yun}/images/icon_more.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                    <div class="cord_work_experience_three">
                        <div class="experience_three_timeline">
                            {{rwork.date_n}}
                        </div>
                        <div class="experience_three_job" vv-if="rwork.title">{{rwork.title}}</div>
                    </div>
                    <div class="cord_work_experience_four" v-if="rwork.content">{{rwork.content}}</div>
                </div>
            </div>
            <!-- 教育经历 -->
            <div class="resume_min_body_cord_education_experience">
                <div class="cord_work_experience_one">
                    <div class="cord_intention_top_word">教育经历</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=edu')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
                <div @click="pageTo('index.php?c=addresumeson&type=edu&eid='+expect.id+'&id='+redu.id)" v-for="(redu, ekey) in edu" :key="ekey">
                    <div class="cord_work_experience_two">
                        <div class="cord_work_experience_two_word">{{redu.name}}</div>
                        <div class="cord_work_experience_two_icon">
                            <img src="{yun:}$wap_style{/yun}/images/icon_more.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                    <div class="cord_work_experience_three">
                        <div class="experience_three_timeline">{{redu.date_n}}</div>
                        <div class="experience_three_job" v-if="redu.education_n && redu.education_n!=''">
                            {{redu.education_n}}学历
                        </div>
                        <div class="experience_three_major" v-if="redu.specialty&&redu.specialty!=''">
                            {{redu.specialty}}
                        </div>
                    </div>
                </div>
            </div>
            <!-- 个人优势 -->
            <div class="resume_min_body_cord_work_experience">
                <div class="cord_work_experience_one">
                    <div class="cord_intention_top_word">个人优势</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=desc')">
                        <img src="{yun:}$wap_style{/yun}/images/icon_question.png" alt="" width="100%" height="100%">
                    </div>
                </div>
                <div v-if="info.description">
                    <div class="cord_work_experience_four">{{info.description}}</div>
                    <div v-if="info.arrayTag">
                        <span class="yun_usermember_resumebq" v-for="(tag, rtag) in info.arrayTag" :key="rtag">{{tag}}</span>
                    </div>
                </div>
            </div>
            <!-- 项目经历 -->
            <div class="resume_min_body_cord_work_experience">
                <div class="cord_work_experience_one">
                    <div class="cord_intention_top_word">项目经历</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=project')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
 
                <div @click="pageTo('index.php?c=addresumeson&type=project&eid='+expect.id+'&id='+rproject.id)" v-for="(rproject, pkey) in project" :key="pkey" class="work_list">
                    <div class="cord_work_experience_two">
                        <div class="cord_work_experience_two_word">{{rproject.name}}</div>
                        <div class="cord_work_experience_two_icon">
                            <img src="{yun:}$wap_style{/yun}/images/icon_more.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                    <div class="cord_work_experience_three">
                        <div class="experience_three_timeline">
                            {{rproject.date_n}}
                        </div>
                        <div class="experience_three_job" v-if="rproject.title">担任{{rproject.title}}</div>
                    </div>
                    <div class="cord_work_experience_four" v-if="rproject.content">{{rproject.content}}</div>
                </div>
            </div>
            <!-- 培训经历 -->
            <div class="resume_min_body_cord_work_experience">
                <div class="cord_work_experience_one">
                    <div class="cord_intention_top_word">培训经历</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=training')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
 
                <div @click="pageTo('index.php?c=addresumeson&type=training&eid='+expect.id+'&id='+rtran.id)" v-for="(rtran, tkey) in train" :key="tkey" class="work_list">
                    <div class="cord_work_experience_two">
                        <div class="cord_work_experience_two_word">{{rtran.name}}</div>
                        <div class="cord_work_experience_two_icon">
                            <img src="{yun:}$wap_style{/yun}/images/icon_more.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                    <div class="cord_work_experience_three">
                        <div class="experience_three_timeline">{{rtran.date_n}}</div>
                        <div class="experience_three_job">{{rtran.title}}</div>
                    </div>
                    <div class="cord_work_experience_four" v-if="rtran.content">{{rtran.content}}</div>
                </div>
            </div>
            <!-- 专业技能 -->
            <div class=" ">
                <div class="cord_intention_top">
                    <div class="cord_intention_top_word">专业技能</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=skill')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
 
                <div class="cord_intention_bom" @click="pageTo('index.php?c=addresumeson&type=skill&eid='+expect.id+'&id='+rskill.id)" v-for="(rskill, skey) in skill" :key="skey">
                    <div class="data_left_skill">
                        <ul>
                            <li class="cord_intention_jnmane">{{rskill.name}}</li>
                            <li v-if="rskill.longtime>0">掌握时间:{{rskill.longtime}}年</li>
                            <li v-if="rskill.ing_n">熟练程度:{{rskill.ing_n}}</li>
                        </ul>
                    </div>
                    <div v-if="rskill.pic && rskill.pic!=''" class="rskillimg">
                        <img :src="rskill.pic" alt="" width="40" height="40">
                    </div>
                </div>
            </div>
            <!-- 其它信息 -->
            <div class="resume_min_body_cord_work_experience">
                <div class="cord_work_experience_one">
                    <div class="cord_intention_top_word">其它信息</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=other')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
 
                <div @click="pageTo('index.php?c=addresumeson&type=other&eid='+expect.id+'&id='+oitem.id)" v-for="(oitem, okey) in other" :key="okey" class="work_list">
                    <div class="cord_work_experience_two">
                        <div class="cord_work_experience_two_word">{{oitem.name}}</div>
                        <div class="cord_work_experience_two_icon">
                            <img src="{yun:}$wap_style{/yun}/images/icon_more.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                    <div class="cord_work_experience_four" v-if="oitem.content">{{oitem.content}}</div>
                </div>
            </div>
            <!-- 个人作品 -->
            <div class="resume_min_body_Individual_works">
                <div class="cord_intention_top">
                    <div class="cord_intention_top_word">个人作品</div>
                    <div class="cord_intention_top_icon" @click="pageTo('index.php?c=addresumeson&eid='+expect.id+'&type=show')">
                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                    </div>
                </div>
                <div class="resume_min_body_Individual_works_photo">
                    <ul>
                        <li v-for="(rshow, shkey) in show" :key="shkey">
                            <img :src="rshow.picurl" alt="" width="100%" height="100%">
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
 
    <!-- 固定的手机尾部 -->
    <div class="resume_bot">
        <div class="Edit_your_resume_tail">
            <!-- 优化简历提示 -->
            <div class="optimize_resume_box" v-if="errorcount!=0">
                <div class="resume_box_del" @click="errorcount=0">
                    <img src="{yun:}$wap_style{/yun}/images/optimizing_del.png" alt="" width="100%" height="100%">
                </div>
                <div class="resume_box_info" @click="pageTo('index.php?c=optimize&eid='+eid)">
                    检测到简历有<i>{{errorcount}}</i>个问题
                    <div class="resume_box_icon">
                        <img src="{yun:}$wap_style{/yun}/images/optimizing_icon.png" alt="" width="100%">
                    </div>
                </div>
            </div>
            <div class="Edit_your_resume_Update_your_resume" onclick="resumeMaskShow()">升级简历</div>
            <div class="Edit_your_resume_Preview_your_resume" @click="previewResume">预览简历</div>
        </div>
    </div>
 
    <!-- 升级简历弹出框 -->
    <van-popup v-model="trShow" position="bottom" round>
        <div id="resume_mask_box">
            <div id="resume_mask_box_top">
                <div class="resume_top_box">
                    <div class="resume_top_box_left">
                        <div class="top_box_icon_new">
                            <img src="{yun:}$wap_style{/yun}/images/resume_top.png" alt="" width="100%">
                        </div>
                        <div class="top_box_text">
                            <div class="top_box_name">置顶 <span class="jl_sjtip" v-if="day>0"> 已置顶 </span></div>
                            <div class="top_box_word">简历靠前,更多曝光机会</div>
                        </div>
                    </div>
                    <div class="top_box_btn" @click="topCheck">立即置顶</div>
                </div>
                <div class="resume_refresh_box resume_top_box">
                    <div class="resume_top_box_left">
                        <div class="top_box_icon_new">
                            <img src="{yun:}$wap_style{/yun}/images/resume_refresh.png" alt="" width="100%">
                        </div>
                        <div class="top_box_text">
                            <div class="top_box_name">刷新</div>
                            <div class="top_box_word">快速排名提升</div>
                        </div>
                    </div>
                    <div class="top_box_btn" @click="refreshResume">立即刷新</div>
                </div>
                <div class="resume_top_box" v-if="user_trust_number>0">
                    <div class="resume_top_box_left">
                        <div class="top_box_icon_new">
                            <img src="{yun:}$wap_style{/yun}/images/wtjl.png" alt="" width="100%">
                        </div>
                        <div class="top_box_text">
                            <div class="top_box_name">委托 <span v-if="expect.is_entrust==1" class="jl_sjtip"> 已委托 </span>
                                <span v-else-if="expect.is_entrust==2" class="jl_sjtip"> 已委托   </span>
                                <span v-else-if="expect.is_entrust==3" class="jl_sjtip"> 未通过</span>
                                <span v-if="trust_price !=0">  </span> <span v-else> </span></div>
                            <div class="top_box_word">求职顾问将根据你简历为您筛选适合的职位</div>
                        </div>
                    </div>
                    <div v-if="expect.is_entrust==1">
                        <div class="top_box_btn" @click="cancelTrust(1)">取消委托</div>
                    </div>
                    <div v-else-if="expect.is_entrust==2">
                        <div class="top_box_btn" @click="cancelTrust(2)">取消委托</div>
                    </div>
                    <div v-else-if="expect.is_entrust==3">
                        <div v-if="trust_price !=0">
                            <div class="top_box_btn" @click="buyTrust">委托简历</div>
                        </div>
                        <div v-else>
                            <div class="top_box_btn" @click="cancelTrust()">委托简历</div>
                        </div>
                    </div>
                    <div v-else>
                        <div v-if="trust_price !=0">
                            <div class="top_box_btn" @click="buyTrust">委托简历</div>
                        </div>
                        <div v-else>
                            <div class="top_box_btn" @click="cancelTrust()">委托简历</div>
                        </div>
                    </div>
                </div>
                <div class="resume_refresh_box">
                    <div class="resume_top_box_left">
                        <div class="top_box_icon_new">
                            <img src="{yun:}$wap_style{/yun}/images/yzjl.png" alt="" width="100%">
                        </div>
                        <div class="top_box_text">
                            <div class="top_box_name">
                                优质简历
                                <span v-if="expect.height_status==1" class="jl_sjtip">审核中</span>
                                <span v-else-if="expect.height_status==2" class="jl_sjtip">已申请</span>
                                <span v-else-if="expect.height_status==3" class="jl_sjtip">审核未通过,原因:{{expect.statusbody}}</span>
                                <span v-else></span>
                            </div>
                            <div class="top_box_word">
                                优质简历服务主要针对的是中高层主管级职位等
                            </div>
                        </div>
                    </div>
 
                    <div v-if="expect.height_status==1">
                        <span class="top_box_btn" @click="cancelApply(1)">取消申请</span>
                    </div>
                    <div v-else-if="expect.height_status==2">
                        <span class="top_box_btn" @click="cancelApply(2)">取消申请</span>
                    </div>
                    <div v-else-if="expect.height_status==3">
                        <span class="top_box_btn" @click="heightApplyP">重新申请</span>
                    </div>
                    <div v-else>
                        <span class="top_box_btn" @click="heightApplyP">立即申请</span>
                    </div>
                </div>
            </div>
            <div id="resume_mask_box_bom" @click="trShow = false">取消</div>
        </div>
    </van-popup>
    <van-popup v-model="elistShow" position="bottom" :style="{ height: '30%' }">
        <van-picker show-toolbar :columns="elist" :default-index="defIndex" @cancel="elistShow = false" @confirm="changeConfirm"/>
    </van-popup>
    <van-popup v-model="topResumeShow" :closeable="true" :close-on-click-overlay="false" position="bottom">
        <div class="entrust_box">
            <div class="entrust_box_title">简历置顶</div>
            <div class="entrust_box_now">
                <div class="entrust_box_text">当前简历</div>
                <div class="entrust_box_text">{{expect.name}}</div>
            </div>
            <div class="entrust_box_now" v-if="day>0">
                <div class="entrust_box_text">当前简历置顶剩余{{day}}天</div>
            </div>
            <div class="entrust_box_now">
                <div class="entrust_box_text">置顶天数</div>
                <div class="entrust_box_text"><input type="number" maxlength="2" :value="days" @input="dayInput" placeholder="请设置置顶天数" style="text-align: right;"/></div>
            </div>
            <div class="zd_pay_box">
                <div v-if="fktype.fkwx" class="zd_pay_list">
                    <div class="zd_pay_icon">
                        <img src="{yun:}$wap_style{/yun}/images/dredge_wx.png" alt="" width="100%" height="100%">
                    </div>
                    <div class="zd_pay_name">微信支付</div>
                    <div @click="changefk('fkwx')" class="zd_pay_xz">
                        <div v-if="fk=='fkwx'">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_affirm.png" alt="" width="100%" height="100%">
                        </div>
                        <div v-if="fk!='fkwx'">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_To_confirm.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                </div>
                <div v-if="fktype.fkal" class="zd_pay_list">
 
                    <div class="zd_pay_icon"><img src="{yun:}$wap_style{/yun}/images/dredge_zfb.png" alt="" width="100%" height="100%"></div>
                    <div class="zd_pay_name">支付宝支付</div>
                    <div @click="changefk('fkal')" class="zd_pay_xz">
                        <div v-if="fk=='fkal'" class=" ">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_affirm.png" alt="" width="100%" height="100%">
                        </div>
                        <div v-if="fk!='fkal'" class=" ">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_To_confirm.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                </div>
            </div>
            <div class="zd_pay_fk">应付金额: <span class="zd_pay_fk_dw">¥<span
                    class="zd_pay_fk_n">{{order_price}}</span></span>
                <div @click="buyResumeTop" class="zd_pay_bth">立即购买</div>
            </div>
        </div>
    </van-popup>
    <van-popup v-model="buyTrustShow" :round="true" :closeable="true" :close-on-click-overlay="false" position="bottom" :style="{ height: '50%' }">
        <div class="entrust_box">
            <div class="entrust_box_title">简历委托</div>
            <div class="entrust_box_now">
                <div class="entrust_box_text">当前简历</div>
                <div class="entrust_box_text">{{expect.name}}</div>
            </div>
 
            <div class="zd_pay_box">
                <div v-if="fktype.fkwx" class="zd_pay_list">
                    <div class="zd_pay_icon">
                        <img src="{yun:}$wap_style{/yun}/images/dredge_wx.png" alt="" width="30" height="30">
                    </div>
                    <div class="zd_pay_name">微信支付</div>
                    <div @click="changefk('fkwx')" class="zd_pay_xz">
                        <div v-if="fk=='fkwx'">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_affirm.png" alt="" width="100%" height="100%">
                        </div>
                        <div v-if="fk!='fkwx'">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_To_confirm.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                </div>
                <div v-if="fktype.fkal" class="zd_pay_list">
 
                    <div class="zd_pay_icon"><img src="{yun:}$wap_style{/yun}/images/dredge_zfb.png" alt="" width="30" height="30"></div>
                    <div class="zd_pay_name">支付宝支付</div>
                    <div @click="changefk('fkal')" class="zd_pay_xz">
                        <div v-if="fk=='fkal'" class=" ">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_affirm.png" alt="" width="100%" height="100%">
                        </div>
                        <div v-if="fk!='fkal'" class=" ">
                            <img src="{yun:}$wap_style{/yun}/images/dredge_To_confirm.png" alt="" width="100%" height="100%">
                        </div>
                    </div>
                </div>
            </div>
            <div class="zd_pay_fk">应付金额: <span class="zd_pay_fk_dw">¥<span class="zd_pay_fk_n">{{trust_price}}</span></span>
                <div @click="buyResumeTrust" class="zd_pay_bth">立即购买</div>
            </div>
        </div>
    </van-popup>
 
    <van-popup v-model="heightApplyShow" position="bottom" :style="{width:'100%'}" class=" ">
        <div class="sq_gjresume ">
            <div class="job_box_div">
                <div class=" ">
                    <div class="sq_gjresume_hi High_quality_title">尊敬的用户你好!</div>
                    <div class="resume_box_title">优质简历需具备以下条件:</div>
                    <div class=" ">
                        <div class="sq_gjresume_tj" v-if="heightone==1">本科以上学历</div>
                        <div class="sq_gjresume_tjno" v-else>本科以上学历<span class="sq_gjresume_tjno_tip">(暂不符合)</span></div>
                        <div class="sq_gjresume_tj" v-if="heighttwo==2">两年以上工作经验</div>
                        <div class="sq_gjresume_tjno" v-else>两年以上工作经验<span class="sq_gjresume_tjno_tip">(暂不符合)</span></div>
                    </div>
                </div>
                <div class="sq_gjresume_wxts  ">
                    温馨提示: 成为优质人才以后,会有猎头中介主动联系您,请保持电话畅通。
                </div>
            </div>
            <div class="sq_gjresume_bth" @click="heightApply">
                <div class="sq_gjresume_bth_a">申请优质简历</div>
            </div>
        </div>
    </van-popup>
    <van-action-sheet v-model="moreShow" :actions="sheetList" @select="onSelect" cancel-text="取消" @cancel="moreShow = false"/>
</div>
 
<script src="{yun:}$wap_style{/yun}/js/user.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
    var wapurl = '{yun:}url m=wap{/yun}';
    var privacy = '{yun:}$smarty.cookies.privacy{/yun}';
    var sheetList = [
        {name: '匹配职位'},
        {name: '隐私设置'},
        {name: '创建新简历'},
        {name: '删除简历'}
    ];
 
    var yunvue = new Vue({
        el: "#yunvue",
        data: {
            eid: '{yun:}$smarty.get.id{/yun}',
            info: {},
            expect: {},
            work: [],
            edu: [],
            train: [],
            project: [],
            skill: [],
            other: [],
            show: [],
            elist: [],
            privacy: privacy,
            trShow: false,
            moreShow: false,
            elistShow: false,
            defIndex: 0,
            maxnum: '',
            sheetList: [],
            errorcount: 0,
            days: '',
            day: '',
            order_price: 0,
            price: 0,
            topResumeShow: false,
            fktype: {},
            fk: '',
            upgradeResumeShow: false,
            buyTrustShow: false,
            user_trust_number: 0,
            trust_price: 0,
            heightApplyShow: false,
            heightone: 0,
            heighttwo: 0
        },
        created() {
            this.resumeList();
        },
        methods: {
            resumeList: function () {
                showLoading();
                var self = this;
                $.post('{yun:}url d=wxapp h=user m=resume c=resume{/yun}', {eid: this.eid}, function (data) {
                    hideLoading();
                    var list = data.data;
                    self.eid = list.expect ? list.expect.id : '';
                    self.info = list.resume ? list.resume : {};
                    self.expect = list.expect ? list.expect : {};
                    self.work = list.work ? list.work : [];
                    self.edu = list.edu ? list.edu : [];
                    self.project = list.project ? list.project : [];
                    self.train = list.training ? list.training : [];
                    self.skill = list.skill ? list.skill : [];
                    self.other = list.other ? list.other : [];
                    self.show = list.show ? list.show : [];
                    self.maxnum = list.maxnum ? list.maxnum : '';
                    self.day = list.expect.top_day;
                    self.price = list.top_price;
                    self.fktype = list.fktype;
                    self.user_trust_number = list.user_trust_number;
                    self.trust_price = list.trust_price;
                    self.heightone = list.heightone;
                    self.heighttwo = list.heighttwo;
                    self.errorcount = 0;
                    if (self.expect.status == 2 || self.expect.status == 3) {
                        self.privacy = '';
                    }
                    if (self.fktype.fkwx) {
                        self.changefk('fkwx');
                    } else if (self.fktype.fkal) {
                        self.changefk('fkal');
                    }
                    // 按条件处理选项
                    var jlqh = true, jlmr = true, jlwt = true;
                    self.sheetList = deepClone(sheetList);
                    self.sheetList.forEach(function (val, index) {
                        if (val.name == '切换简历') {
                            jlqh = false;
                            if (list.elist.length == 1) {
                                // 只有一份简历,去除切换简历选项
                                self.sheetList.splice(index, 1);
                            }
                        } else if (val.name == '设置默认') {
                            jlmr = false;
                            if (self.expect.defaults == 1) {
                                // 简历已是默认简历
                                self.sheetList.splice(index, 1);
                            }
                        }
                    });
                    // 有多份简历,增加切换简历选项
                    if (jlqh && list.elist.length > 1) {
                        self.sheetList.unshift({name: '切换简历'});
                    }
                    // 非默认简历
                    if (jlmr && self.expect.defaults != 1) {
                        self.sheetList.unshift({name: '设置默认'});
                    }
 
 
                    if (!self.expect) {
                        self.errorcount += 1;
                    }
                    if (self.work.length == 0) {
                        self.errorcount += 1;
                    }
                    if (self.edu.length == 0) {
                        self.errorcount += 1;
 
                    }
                    if (self.project.length == 0) {
                        self.errorcount += 1;
 
                    }
                    if (self.train.length == 0) {
                        self.errorcount += 1;
 
                    }
                    if (self.skill.length == 0) {
                        self.errorcount += 1;
                    }
                    if (self.show.length == 0) {
                        self.errorcount += 1;
                    }
                    if (!self.info.description) {
                        self.errorcount += 1;
                    }
                    if (list.elist) {
                        for (let i in list.elist) {
                            self.elist.push({
                                'keyId': list.elist[i].id,
                                'text': list.elist[i].name,
                            });
                            if (list.elist[i].id == self.eid) {
                                self.defIndex = i;
                            }
                        }
                    }
 
                    $("#yunvue").css('display', 'block');
                }, 'json');
            },
            buyTrust: function () {
                if (this.expect.state != '1') {
                    showToast('简历还未审核,无法委托');
                } else {
 
                    if (this.fktype.fkwx || this.fktype.fkal) {
                        this.trShow = false;
                        this.buyTrustShow = true;
                    } else {
                        showToast('网站已关闭支付接口,请联系管理员');
                    }
                }
            },
            buyResumeTrust: function () {
                var that = this;
                if (that.fk == '') {
                    return showToast('请选择支付方式');
                }
                let formData = {
                    id: that.eid,
                    fktype: that.fk,
                    type: 'wap',
                    server: 'wtresume'
                };
                showLoading('购买中');
                $.post('{yun:}url d=wxapp h=user m=finance c=setServer{/yun}', formData, function (data) {
                    hideLoading();
                    if (data.msg == 'ok') {
                        let res = data.data;
                        wxpayShow = true;
                        window.location.href = res.url;
                    } else {
                        showToast(data.msg);
                    }
 
                }, 'json');
            },
            cancelTrust: function (e) {
                var that = this;
                let msg = '';
                if (e == 1) {
                    msg = '确定取消?';
                } else if (e == 2) {
                    msg = '委托已通过审核,取消将不退还金额,确定取消?';
                }
                if (msg == '') {
                    $.post('{yun:}url d=wxapp h=user m=resume c=resumetrust{/yun}', {eid: that.eid}, function (data) {
                        hideLoading();
                        if (data.error == 1) {
 
                            showToast(data.msg, 2, function () {
                                that.trShow = false;
                                that.resumeList();
                            });
 
                        } else {
                            showToast(data.msg, 2, function () {
                                that.trShow = false;
                            });
                        }
 
                    }, 'json');
                } else {
                    showConfirm(msg, function () {
                        $.post('{yun:}url d=wxapp h=user m=resume c=resumetrust{/yun}', {eid: that.eid}, function (data) {
                            hideLoading();
                            if (data.error == 1) {
                                showToast(data.msg, 2, function () {
                                    that.trShow = false;
                                    that.resumeList();
                                });
 
                            } else {
                                showToast(data.msg, 2, function () {
                                    that.trShow = false;
                                });
                            }
 
                        }, 'json');
                    });
                }
            },
            cancelApply: function (e) {
                var that = this;
                let msg = '';
                if (e == 1) {
                    msg = "正在审核中,需要取消申请吗?";
                } else if (e == 2) {
                    msg = "确定取消优质简历吗?";
                }
 
                that.upgradeResumeShow = false;
                showConfirm(msg, function () {
                    showLoading('取消中...');
                    $.post('{yun:}url d=wxapp h=user m=resume c=resumeset{/yun}', {eid: that.eid}, function (data) {
                        hideLoading();
                        if (data.error == 1) {
                            showToast(data.msg, 2, function () {
                                that.resumeList();
                            });
 
                        } else {
                            showToast(data.msg);
                        }
 
                    }, 'json');
                });
            },
            heightApplyP: function () {
                this.upgradeResumeShow = false;
                this.heightApplyShow = true;
            },
            heightApply: function () {
                var that = this;
                showLoading('申请中...');
                $.post('{yun:}url d=wxapp h=user m=resume c=resumeset{/yun}', {eid: that.eid}, function (data) {
                    hideLoading();
                    that.heightApplyShow = false;
                    if (data.error == 1) {
                        showToast(data.msg, 2, function () {
                            that.resumeList();
                        });
 
                    } else {
                        showToast(data.msg);
                    }
 
                }, 'json');
            },
            buyResumeTop: function () {
                var that = this;
                if (that.days == '') {
                    return showToast('请输入置顶天数');
                }
                if (that.fk == '') {
                    return showToast('请选择支付方式');
                }
                let formData = {
                    id: that.eid,
                    rdays: that.days,
                    fktype: that.fk,
                    type: 'wap',
                    server: 'zdresume'
                };
                showLoading('购买中');
                $.post('{yun:}url d=wxapp h=user m=finance c=setServer{/yun}', formData, function (data) {
                    hideLoading();
                    if (data.msg == 'ok') {
                        let res = data.data;
                        wxpayShow = true;
                        if (res.goto) {
                            window.location.href = res.url;
                        } else {
 
                            showToast('置顶成功', 2, function () {
                                location.reload();
                            });
                        }
 
                    } else {
                        showToast(data.msg);
                    }
 
                }, 'json');
            },
            changefk: function (e) {
                this.fk = e;
            },
            dayInput: function (e) {
 
                if (e.target.value != '') {
                    this.days = e.target.value;
                    this.order_price = this.accMul(parseInt(e.target.value), parseFloat(this.price));
                } else {
                    this.days = '';
                    this.order_price = 0;
                }
            },
            //乘
            accMul: function (arg1, arg2) {
                var m = 0,
                        s1 = arg1.toString(),
                        s2 = arg2.toString();
                try {
                    m += s1.split(".")[1].length
                } catch (e) {
                }
                try {
                    m += s2.split(".")[1].length
                } catch (e) {
                }
 
                return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
            },
            onSelect: function (item) {
                var that = this;
                that.moreShow = false;
 
                if (item.name == "匹配职位") {
                    location.href = "index.php?c=likejob&id=" + that.expect.id;
                } else if (item.name == "隐私设置") {
                    location.href = "index.php?c=privacy";
                } else if (item.name == "切换简历") {
                    that.elistShow = true;
                } else if (item.name == "创建新简历") {
                    if (that.maxnum > 0 || that.maxnum == '') {
                        location.href = "index.php?c=addresume";
                    } else {
                        showToast("你的简历数已经达到系统设置的简历数了");
                    }
                } else if (item.name == "删除简历") {
                    showConfirm("确定要删除此份简历吗?", function () {
                        that.delResume();
                    });
                } else if (item.name == "设置默认") {
                    that.defaults();
                } else if (item.name == '申请优质简历') {
                    that.upgradeResumeShow = true;
                }
            },
            delResume: function () {
                var that = this;
                var param = {
                    id: that.eid,
                    table: 'expect'
                };
 
                showLoading('删除中...');
                $.post("{yun:}url d=wxapp h=user m=resume c=del_resume{/yun}", param, function (data) {
                    hideLoading();
                    if (data.error == 1) {
                        showToast('删除成功', 2, function () {
                            that.eid = '';
                            that.resumeList();
                        });
                    } else {
                        showToast(data.msg);
                    }
                });
            },
            defaults: function () {
                var that = this;
                let param = {
                    id: that.eid,
                };
                showLoading('设置中...');
                $.post("{yun:}url d=wxapp h=user m=resume c=default_resume{/yun}", param, function (data) {
                    hideLoading();
                    if (data.error == 1) {
                        showToast(data.msg, 2, function () {
                            that.resumeList();
                        });
                    } else {
                        showToast(data.msg);
                    }
                });
            },
            changeConfirm: function (e) {
 
                this.elistShow = false;
                this.eid = e.keyId;
                this.resumeList();
                window.history.replaceState({}, "", "?c=resume&id=" + e.keyId);
            },
            pageTo: function (url) {
                window.location.href = url;
            },
            previewResume: function () {
                if (!this.expect.id) {
                    showToast('请先创建简历');
                } else {
                    window.location.href = wapurl + '?c=resume&a=show&id=' + this.expect.id;
                }
            },
            topCheck: function () {
                var that = this;
                if (!that.eid) {
                    showToast('请先创建简历');
                } else {
                    if (that.expect.state != '1') {
                        showToast('简历还未审核,无法置顶');
                    } else {
                        showLoading();
                        that.trShow = false;
                        var eid = that.eid;
                        $.post("{yun:}url d=wxapp h=user m=resume c=topCheck{/yun}", {
                            eid: eid
                        }, function (data) {
                            hideLoading();
                            if (data.msg) {
                                showToast(data.msg);
                            } else {
                                if (that.fktype.fkwx || that.fktype.fkal) {
                                    that.topResumeShow = true;
                                } else {
                                    showToast('网站已关闭支付接口,请联系管理员');
                                }
                            }
                        }, 'json');
                    }
                }
 
            },
            refreshResume: function () {
                if (!this.eid) {
                    showToast('请先创建简历');
                } else {
                    showLoading();
                    this.trShow = false;
                    $.post("{yun:}url d=wxapp h=user m=resume c=refresh_resume{/yun}", {
                        eid: this.eid,
                    }, function (data) {
                        hideLoading();
                        if (data.error == 1) {
                            showToast('刷新成功');
                        } else {
                            showToast(data.msg);
                        }
                    });
                }
            }
        },
    });
 
    function closePrivacy() {
        $('#privacy').animate({
            opacity: 0
        }, 'fast', function () {
            yunvue.$data.privacy = 1;
        });
 
        $.post("index.php?c=setPrivacyCookie", {rand: Math.random()});
    }
 
    function resumeMaskShow() {
        yunvue.$data.trShow = true;
    }
 
    function resumeMore() {
        yunvue.$data.moreShow = true;
    }
</script>
</body>
</html>