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
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <title>{yun:}$title{/yun}</title>
        <meta name="keywords" content="{yun:}$keywords{/yun},wap" />
        <meta name="description" content="{yun:}$description{/yun}" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width" initial-scale="1" />
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no" />
        <meta name="format-detection" content="telephone=no,email=no" />
        <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width" />
        <script src="{yun:}$wap_style{/yun}/js/flexible.js?v={yun:}$config.cachecode{/yun}"></script>
        <link href="{yun:}$wap_style{/yun}/css/base.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
        <link href="{yun:}$wap_style{/yun}/css/yunwap.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
        <link href="{yun:}$config_wapdomain{/yun}/js/vant/lib/index.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" />
    </head>
 
    <body>
        <!-- 头部 -->
 
        <div class="fast_box_header">     
            <div class="fast_box_headericon" onclick="goBack()">
                <img src="{yun:}$wap_style{/yun}/images/nav_icon_return.png" alt="" width="100%" height="100%">
            </div> 
            <div class="fast_box_r">已有账号,直接 <a href="{yun:}url m=wap c=login{/yun}" >登录</a></div>
            </div>
        <div class="fast_box">
        
        <div class="fast_tit">创建我的简历</div>
        <div class="fast_p">完成以下信息可生成简历</div>
        <div class="fast_picbox"><img src="{yun:}$wap_style{/yun}/images/resume_title.png" alt="" width="100%" height="100%"></div>
        </div>
        
        <!-- 主体部分 -->
        <div id="yunvue" class="none">
            
            
            <div class="fast_show">
                <div class="fast_show_c">
            
                <form id="firstSubmit">
 
                      <div class="fast_text">
                                <div class="fast_name">姓名</div>
                                <div class="fast_input">
                                    <input type="text" name="uname" v-model="info.uname" placeholder="请输入姓名" />
                                </div>
                            </div>
                    <div class="fast_text fast_select" @click="sexShow = true">
                        <div class="fast_name">性别</div>
                        <div class="card_job_box_name">{{info.sex_n || '请选择性别'}}</div>
                            <input type="hidden" name="sex" :value="info.sex">
                    </div>
                    <div class="fast_text fast_select" onclick="birthdayPicker()">
                        
                        <div class="fast_name">出生年月</div>
                                <div class="card_job_box_name">{{info.birthYear || '请选择'}}</div><input type="hidden" name="birthday" :value="info.birthday" />
                    </div>
                    
                    <div class="fast_text fast_select" @click="eduPicker">
                        
                        <div class="fast_name">最高学历</div>
                                <div class="card_job_box_name">{{info.edu_n || '请选择'}}</div>    <input type="hidden" id="edu" name="edu" :value="info.edu" />
                    </div>
                    
                    <div class="fast_text fast_select" @click="expPicker">
                        <div class="fast_name">工作经验</div>
                        <div class="card_job_box_name">{{info.exp_n || '请选择'}}</div>    <input type="hidden" id="exp" name="exp" :value="info.exp" />
                    </div>
                    
                    <div class="fast_text">
                        <div class="fast_name">手机号</div>
                        <div class="fast_input">
                        <input type="number" name="telphone" v-model="info.telphone" placeholder="请输入手机号"/>
                        </div>
                    </div>
                                                
                    
                    {yun:}if strpos($config.code_web,"注册会员")!==false{/yun} 
                        {yun:}if $config.code_kind > 2{/yun}
                        <div class="gtdx-captcha">
                            <input type='hidden' id="verify_token" name="verify_token" value="">
                            <input type='hidden' id="popup-submit">    
                            <input type='hidden' id="bind-submit">
                        </div>
                        
                        {yun:}else{/yun}
                    <div class="fast_text fast_text_tpyz">
                        <div class="fast_name">验证码</div>
                        <div class="fast_input">
                            <input type="text" name="authcode" v-model="info.authcode" placeholder="请输入验证码" />
                            <div class="">
                                <img id="vcode_img" class="authcode" src="{yun:}$config.sy_wapdomain{/yun}/authcode.inc.php" onclick="checkCode('vcode_img');" />
                            </div>
                        </div>
                    </div>
                        {yun:}/if{/yun}
                    {yun:}/if{/yun}                        
                                                
                                                    
                        {yun:}if $config.sy_msg_isopen==1 && $config.reg_real_name_check==1 && $config.sy_msg_regcode==1{/yun}
                        <div class="fast_text">
                            <div class="fast_name">短信验证</div>
                            <div class="fast_input fast_input_dx">
                                <input type="number" name="checkcode" v-model="info.checkcode" placeholder="请输入短信验证码" />
                                <div id="send_msg_tip" class="fast_input_dx_bth" @click="getcode" v-if="codeview">获取短信验证码</div>
                                <div class="fast_input_dx_bth" v-else>{{flag}}</div>
                            </div>
                        </div>
                        {yun:}/if{/yun}                        
                    
            
                        <div class="fast_text">
                            <div class="fast_name">登录密码</div>
                            <div class="fast_input">
                                <input type="password" name="password" v-model="info.password" placeholder="请输入登录密码便于下次登录" />
                            </div>
                        </div>
                        <div class="fast_tip">
                        提示:密码{yun:}if $config.reg_pw_sp=='1' || $config.reg_pw_num=='1' || $config.reg_pw_zm=='1'{/yun}须包含{yun:}if $config.reg_pw_num=='1'{/yun}数字{yun:}/if{/yun}{yun:}if $config.reg_pw_zm=='1'{/yun},字母 {yun:}/if{/yun}{yun:}if $config.reg_pw_sp=='1'{/yun},字符@!#.$-_{yun:}/if{/yun}{yun:}/if{/yun}
                        </div>
                    </div>
                    <div class="fast_bth" @click="firstSubmit">
                        {yun:}if $config.resume_create_project==1 || $config.resume_create_exp==1 || $config.resume_create_edu==1{/yun}
                            <div id="nextadd" class="fast_bth_sub">下一步</div>
                        {yun:}else{/yun}
                            <div id="applybtn" class="fast_bth_sub">立即申请</div>
                        {yun:}/if{/yun}
                    </div>
                </form>
            </div>
            <div class="Create_resume_body">
            
            </div>
            <van-popup v-model="birthdayShow" round position="bottom">
                <van-datetime-picker 
                    v-model="currentYear"
                    type="date" :min-date="minYear" :max-date="maxYear" 
                    @cancel="birthdayShow = false" @confirm="birthdayConfirm"/>
            </van-popup>
            <van-popup v-model="sexShow" round position="bottom">
                <van-picker show-toolbar :columns="sex" :default-index="sexIndex" 
                 @cancel="sexShow = false" @confirm="sexConfirm"/>
            </van-popup>
            <van-popup v-model="eduShow" round position="bottom">
                <van-picker show-toolbar :columns="edu" :default-index="eduIndex" 
                 @cancel="eduShow = false" @confirm="eduConfirm"/>
            </van-popup>
            <van-popup v-model="expShow" round position="bottom">
                <van-picker show-toolbar :columns="exp" :default-index="expIndex" 
                 @cancel="expShow = false" @confirm="expConfirm"/>
            </van-popup>
            <!--开始、结束时间选择器-->
            <van-popup v-model="timeBox" round position="bottom">
                <van-picker show-toolbar :columns="timeData" @cancel="timeBox = false" @confirm="timeConfirm" @change="timeChange" />
            </van-popup>
            <!--描述-->
            <van-popup v-model="contentBox" position="right" :style="{ height: '100%',width:'100%',backgroundColor:'#f3f3f3'}">
                <!-- 页面头部 -->
                <div class="fast_box_header">
                    <div class="fast_box_headericon"  @click="contentSubmit">
                        <img src="{yun:}$wap_style{/yun}/images/nav_icon_return.png" alt="" width="100%" height="100%">
                    </div> 
                    <div class="fast_box_header_p">{{contentTitle}}</div>
                </div>
                <div class="fast_textarea">
                    <div class="fast_textarea_c">
                        <textarea v-model="content" placeholder="请输入描述" class="fast_textarea_text"></textarea>
                    </div>
                    <div class="fast_bth" @click="contentSubmit">
                        <div class="fast_bth_sub">确认</div>
                    </div>
                </div>
            </van-popup>
            {yun:}if $config.resume_create_exp=='1'{/yun}
            <!--工作经历-->
            <van-popup v-model="workBox" position="right" :style="{ height: '100%',width:'100%',backgroundColor:'#f3f3f3'}">
                <!-- 页面头部 -->
                
                <div class="fast_box_header">    <div class="fast_box_header_c">
                <div class="fast_box_headericon" @click="workBox = false">
                    <img src="{yun:}$wap_style{/yun}/images/nav_icon_return.png" alt="" width="100%" height="100%">
                </div> 
                <div class="fast_box_header_p">工作经历</div>
                <div class="fast_box_header_tg" @click="skipPage('work')" v-if="info.iscreateexpshow">跳过</div>
                </div>    </div>
                
                <div id="workBox" class="fast_resumebox">
                    <form id="workSubmit">
                                <div class="fast_resumeshow">
                        <span v-for="(item, wk) in workList" :key="wk">
                            <div class="fast_card">
                                <div class="fast_text">
                                    <div class="fast_name">公司名称</div>
                                    <div class="fast_inputmc">
                                        <input type="text" :name="'workname_' + wk" value="" placeholder="请输入单位名称">
                                </div>
                                    <div v-if="1 > wk > 0 " class="fast_tjicon" @click="addNewHtml('work')">
                                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                                    </div>
                                    <div v-if="wk > 0" class="fast_tjicon" @click="delNewHtml('work', wk)">
                                        <img src="{yun:}$wap_style{/yun}/images/delete.png" alt="" width="100%" height="100%">
                                    </div>
                                </div>
                                <div class="fast_text">
                                    <div class="fast_name">担任职位</div>
                                        <div class="fast_input">
                                        <input type="text" :name="'worktitle_' + wk" value="" placeholder="请输入担任职位">
                                    </div>
                                </div>
                                <div class="fast_text fast_select">
                                    <div class="fast_name">工作内容</div>
                                    <div class="fast_inputnrbox">
                                    <div class="fast_inputnr" @click="showContent('workList', wk)">{{item.content || '请填写工作内容'}}</div>
                                        </div>
                                </div>
                                <div class="fast_card_zy">
                                    <div class="fast_card_z" @click="timeShow('workList', wk, 'sdate')">
                                        <ul>
                                            <li class="fast_card_zyname">入职时间</li>
                                            <li class="fast_card_time">{{item.sdate || '请选择'}}</li>
                                        </ul>
                                        <input type="hidden" :name="'worksdate_' + wk" :value="item.sdate">
                                    </div>
                                    <div class="fast_card_zy_z">至</div>
                                    <div class="fast_card_y" @click="timeShow('workList', wk, 'edate')">
                                        <ul>
                                            <li class="fast_card_zyname">离职时间</li>
                                            <li class="fast_card_time">{{item.edate || '请选择'}}</li>
                                        </ul>
                                        <input type="hidden" :name="'workedate_' + wk" :value="item.edate">
                                        <input type="hidden" :name="'totoday_' + wk" :value="item.totoday">
                                    </div>
                                </div>
                            </div>
                                <div class="fast_card_line"></div>
                        </span>
                        </div>
                        <div id="workButton" class="fast_bth" @click="workSubmit">
                            <span v-if="info.resume_create_edu!=1 && info.resume_create_project!=1" id="applybtn" class="fast_bth_sub">立即申请</span>
                            <span v-else class="fast_bth_sub">下一步</span>
                        </div>
                    </form>
                </div>
            </van-popup>
            {yun:}/if{/yun}
            {yun:}if $config.resume_create_edu=='1'{/yun}
            <!--教育经历-->
            <van-popup v-model="eduBox" position="right" :style="{ height: '100%',width:'100%',backgroundColor:'#f3f3f3'}">
                <!-- 页面头部 -->
                <div class="fast_box_header">
                    <div class="fast_box_header_c">
                <div class="fast_box_headericon"  @click="eduBox = false">
                    <img src="{yun:}$wap_style{/yun}/images/nav_icon_return.png" alt="" width="100%" height="100%">
                </div> 
                <div class="fast_box_header_p">教育经历</div>
                <div class="fast_box_header_tg" @click="skipPage('edu')" v-if="info.iscreateedushow">跳过</div>
                </div></div>
                
    
                <div id="eduBox" class="fast_resumebox">
                    <form id="eduSubmit">
                                <div class="fast_resumeshow">
                        <span v-for="(item, ek) in eduList" :key="ek">
                            <div class="fast_card">
                                <div class="fast_text">
                                    <div class="fast_name">学校名称</div>
                                    <div class="fast_inputmc">
                                        <input type="text" :name="'eduname_' + ek" value="" placeholder="请输入学校名称">
                                    </div>
                                    <div v-if="1 > ek > 0 " class="fast_tjicon" @click="addNewHtml('edu')">
                                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                                    </div>
                                    <div v-if="ek > 0" class="fast_tjicon" @click="delNewHtml('edu', ek)">
                                        <img src="{yun:}$wap_style{/yun}/images/delete.png" alt="" width="100%" height="100%">
                                    </div>
                                </div>
                                <div class="fast_text">
                                    <div class="fast_name">专业名称</div>
                                    <div class="job_resume_right">
                                        <input type="text" :name="'specialty_' + ek" value="" placeholder="请输入专业名称">
                                    </div>
                                </div>
                                <div class="fast_text" @click="eduPicker(ek)">
                                    <div class="fast_name">最高学历</div>
                                    <div class="job_resume_right_two">{{item.edu || '请选择学历'}}</div>
                                    
                                    <input type="hidden" :name="'eduid_' + ek" :value="item.eduid">
                                </div>
                                <div class="fast_card_zy">
                                    <div class="fast_card_z" @click="timeShow('eduList', ek, 'sdate')">
                                        <ul>
                                            <li class="fast_card_zyname">入学时间</li>
                                            <li class="fast_card_time">{{item.sdate || '请选择'}}</li>
                                        </ul>
                                        <input type="hidden" :name="'edusdate_' + ek" :value="item.sdate">
                                    </div>
                                    <div class="fast_card_zy_z">至</div>
                                    <div class="fast_card_y"  @click="timeShow('eduList', ek, 'edate')">
                                        <ul>
                                            <li class="fast_card_zyname">离校时间</li>
                                            <li class="fast_card_time">{{item.edate || '请选择'}}</li>
                                        </ul>
                                        <input type="hidden" :name="'eduedate_' + ek" :value="item.edate">
                                    </div>
                                </div>
                            </div>
                                <div class="fast_card_line"></div>
                        </span>
                        </div>
                        <div id="eduButton" class="fast_bth" @click="eduSubmit">
                            <span v-if="info.resume_create_project!=1" id="applybtn" class="fast_bth_sub">立即申请</span>
                            <span v-else class="fast_bth_sub">下一步</span>
                        </div>
                    </form>
                </div>
            </van-popup>
            {yun:}/if{/yun}    
            {yun:}if $config.resume_create_project=='1'{/yun}
            <!--项目经历-->
            <van-popup v-model="projectBox" position="right" :style="{ height: '100%',width:'100%',backgroundColor:'#f3f3f3'}">
                <!-- 页面头部 -->
                <div class="fast_box_header">    <div class="fast_box_header_c">
                <div class="fast_box_headericon"  @click="projectBox = false">
                    <img src="{yun:}$wap_style{/yun}/images/nav_icon_return.png" alt="" width="100%" height="100%">
                </div> 
                <div class="fast_box_header_p">项目经历</div>
                </div>
                </div>
                
                <div id="projectBox" class="fast_resumebox">
                    
                    <form id="projectSubmit">
                    <div class="fast_resumeshow">
                        <span v-for="(item, pk) in projectList" :key="pk">
                            <div class="fast_card">
                                <div class="fast_text">
                                    <div class="fast_name">项目名称</div>
                                    <div class="job_resume_right">
                                        <input type="text" :name="'projectname_' + pk" value="" placeholder="请输入项目名称">
                                    </div>
                                    <div v-if="1 > pk > 0 " class="fast_tjicon" @click="addNewHtml('project')">
                                        <img src="{yun:}$wap_style{/yun}/images/addition.png" alt="" width="100%" height="100%">
                                    </div>
                                    <div v-if="pk > 0" class="fast_tjicon" @click="delNewHtml('project', pk)">
                                        <img src="{yun:}$wap_style{/yun}/images/delete.png" alt="" width="100%" height="100%">
                                    </div>
                                </div>
                                <div class="fast_text">
                                    <div class="fast_name">担任职位</div>
                                    <div class="job_resume_right">
                                        <input type="text" :name="'projecttitle_' + pk" value="" placeholder="请输入担任职位">
                                    </div>
                                </div>
                                <div class="fast_text fast_select">
                                    <div class="fast_name">项目内容</div>
                                    <div class="job_resume_right_two" @click="showContent('projectList', pk)">{{item.content || '请填写项目内容'}}</div>
                                
                                </div>
                                <div class="fast_card_zy">
                                    <div class="fast_card_z" @click="timeShow('projectList', pk, 'sdate')">
                                        <ul>
                                            <li class="fast_card_zyname">开始时间</li>
                                            <li class="fast_card_time">{{item.sdate || '请选择'}}</li>
                                        </ul>
                                        <input type="hidden" :name="'projectsdate_' + pk" :value="item.sdate">
                                    </div>
                                    <div class="fast_card_zy_z">至</div>
                                    <div class="fast_card_y"  @click="timeShow('projectList', pk, 'edate')">
                                        <ul>
                                            <li class="fast_card_zyname">结束时间</li>
                                            <li class="fast_card_time">{{item.edate || '请选择'}}</li>
                                        </ul>
                                        <input type="hidden" :name="'projectedate_' + pk" :value="item.edate">
                                    </div>
                                </div>
                            </div>
                            <div class="fast_card_line"></div>
                        </span>
                        </div>
                    
                        <div id="projectButton" class="fast_bth" @click="projectSubmit">
                            <span id="applybtn" class="fast_bth_sub">立即申请</span>
                        </div>
                    </form>
                </div>
            </van-popup>
            {yun:}/if{/yun}
            <van-popup v-model="yzmBox" position="center" round closeable :style="{  width:'65%' }">
                <div class="yzm_box">
                    <div class="yzm_tit">验证码</div>    
                    <div class="yzm_input">
                        <input type="text" @input="yzmInput" placeholder="请输入下方验证码" />    
                    </div>
                    <div class="yzm_input_img">
                        <img id="vcode_imgs" src="" onclick="checkCode('vcode_imgs');" />
                    </div>
                </div>
            </van-popup>
        </div>
        {yun:}include file="$wapstyle/publichtm/public_js.htm"{/yun}
        
        {yun:}if strpos($config.code_web,"注册会员")!==false{/yun} 
        {yun:}if $config.code_kind>2{/yun}
            {yun:}if $config.resume_create_project==1 || $config.resume_create_exp==1 || $config.resume_create_edu==1{/yun}
                {yun:}if $config.sy_msg_isopen==1 && $config.sy_msg_regcode==1{/yun}
                <div id="bind-captcha" data-id='send_msg_tip' data-type='click'></div>
                {yun:}else{/yun}
                <div id="bind-captcha" data-id='nextadd' data-type='click'></div>
                {yun:}/if{/yun}
            {yun:}else{/yun}
                {yun:}if $config.sy_msg_isopen==1 && $config.sy_msg_regcode==1{/yun}
                <div id="bind-captcha" data-id='send_msg_tip' data-type='click'></div>
                {yun:}else{/yun}
                <div id="bind-captcha" data-id='applybtn' data-type='click'></div>
                {yun:}/if{/yun}
            {yun:}/if{/yun}
        {yun:}/if{/yun}
        {yun:}/if{/yun}
        {yun:}include file="$wapstyle/verify_js.htm"{/yun}
        <script>
            var wapurl = "{yun:}url m=wap{/yun}",
                code_web = '{yun:}$config.code_web{/yun}',
                code_kind = '{yun:}$config.code_kind{/yun}',
                code_strlength = '{yun:}$config.code_strlength{/yun}',
                jobid = '{yun:}$smarty.get.jobid{/yun}';
            var sexData = [];
            '{yun:}foreach item=v key=key from=$sexData{/yun}';
            sexData.push({
                value: '{yun:}$key{/yun}',
                text: '{yun:}$v{/yun}'
            });
            '{yun:}/foreach{/yun}';
            var yzmcode = '';
            var pickerType = '';
            var pickerKey = 0;
            var expectData = {};
            var formData = {};
            var timestamp = new Date();
            var workObj = {
                name: '',
                title: '',
                content: '',
                sdate: '',
                edate: '',
                totoday: 0
            };
            var eduObj = {
                name: '',
                specialty: '',
                sdate: '',
                edate: '',
                edu: '',
                eduid: 0
            };
            var projectObj = {
                name: '',
                title: '',
                content: '',
                sdate: '',
                edate: ''
            };
            var formDisabled = false;
            var yunvue = new Vue({
                el: '#yunvue',
                data() {
                    return {
                        info: {
                            resume_create_exp: '{yun:}$config.resume_create_exp{/yun}',
                            resume_create_edu: '{yun:}$config.resume_create_edu{/yun}',
                            resume_create_project: '{yun:}$config.resume_create_project{/yun}',
                            expcreate: '{yun:}$config.expcreate{/yun}',
                            educreate: '{yun:}$config.educreate{/yun}'
                        },
                        codeview: true,
                        flag: 120,
                        sexShow: false,
                        sex: sexData,
                        sexIndex: 0,
                        eduShow: false,
                        eduIndex: 0,
                        edu: [],
                        expShow: false,
                        expIndex: 0,
                        exp: [],
                        birthdayShow: false,
                        currentYear: new Date(1988, 7, 8),
                        minYear: new Date(1960, 0, 1),
                        maxYear: new Date(2010, 0, 1),
                        jobShow: false,
                        cityShow: false,
                        workBox: false,
                        workList: [],
                        eduList: [],
                        projectList: [],
                        contentBox: false,
                        contentTitle: '',
                        content: '',
                        eduBox: false,
                        projectBox: false,
                        timeData: [],
                        timeBox: false,
                        yzmBox: false
                    };
                },
                created() {
                    $('#yunvue').removeClass('none');
                    this.loadJs();
                },
                methods: {
                    sexConfirm(e) {
                        this.sexShow = false;
                        this.info.sex = e.value;
                        this.info.sex_n = e.text;
                    },
                    birthdayConfirm(e){
                        this.birthdayShow = false;
                        this.info.birthYear = timeFormat(e);
                        this.info.birthday = timeFormat(e);
                    },
                    eduPicker: function(key){
                        if(typeof(key) === 'number'){
                            // 教育经历中的picker
                            pickerType = 'eduList';
                            pickerKey = key;
                            eduPicker(this.eduList[key].eduid);
                        }else{
                            pickerType = '';
                            eduPicker(this.info.edu);
                        }
                    },
                    eduConfirm(e){
                        this.eduShow = false;
                        if(pickerType == 'eduList'){
                            // 教育经历中的picker
                            this[pickerType][pickerKey].edu = e.text;
                            this[pickerType][pickerKey].eduid = e.value;
                        }else{
                            this.info.edu = e.value;
                            this.info.edu_n = e.text;
                        }
                    },
                    expPicker: function(){
                        expPicker(this.info.exp);
                    },
                    expConfirm(e){
                        this.expShow = false;
                        this.info.exp = e.value;
                        this.info.exp_n = e.text;
                    },
                    getcode: function(){
                        if (!this.info.telphone) {
                            return showToast('请输入手机号');
                        } else if (isjsMobile(this.info.telphone) == false) {
                            return showToast('请填写正确的手机号');
                        }
                        var verify_token;
                        var codesear=new RegExp('注册会员');
                        if(codesear.test(code_web)){
                            if(code_kind == 1) {
                                if(!this.info.authcode) {
                                    return showToast('请填写图片验证码');
                                }
                            } else if(code_kind > 2) {
                                verify_token = $('input[name="verify_token"]').val();
                                if(verify_token == '') {
                                    $("#bind-submit").trigger("click");
                                    return false; 
                                }
                            }
                        }
                        var self = this;
                        var obj = {moblie: this.info.telphone,code: this.info.authcode,verify_token: verify_token,noblur: 1};
                        showLoading();
                        $.post(wapurl + "?c=ajax&a=regcode", obj, function (res) {
                            hideLoading();
                            if(res.errcode){
                                showModal('手机号已被使用');
                                checkCode('vcode_img');
                            }else{
                                if (res.error != 1) {
                                    showModal(res.msg);
                                    self.codeview = true;
                                    checkCode('vcode_img');
                                } else {
                                    self.countdown();
                                }
                            }
                        },'json');
                    },
                    countdown: function() {
                        var that = this;
                        if (that.flag > 0) {
                            that.codeview = false;
                            setTimeout(function() {
                                that.flag = that.flag - 1;
                                that.countdown();
                            }, 1000);
                        } else {
                            that.codeview = true;
                            that.flag = 120;
                        }
                    },
                    firstSubmit: function(){
                        var evalue = getFormValue('firstSubmit');
                        var that = this;
                        
                        if (!evalue.uname) {
                            showToast('请填写姓名');
                            return false;
                        } else {
                            var resumename = '{yun:}$config.sy_resumename_num{/yun}';
                            if(parseInt(resumename) && parseInt(resumename) > 0 && !isChinaName(evalue.uname)){
                                showToast('姓名请输入2-6位汉字');
                                return false;
                            }
                        }
                        if (!evalue.sex) {
                            showToast('请选择性别');
                            return false;
                        }
                        if (!evalue.birthday) {
                            showToast('请选择出生年月');
                            return false;
                        }
                        if (!evalue.edu) {
                            showToast('请选择学历');
                            return false;
                        }
                        if (!evalue.exp) {
                            showToast('请选择工作经验');
                            return false;
                        }
                        if (!evalue.telphone) {
                            showToast('请填写手机号码');
                            return false;
                        }
                        if (isjsMobile(evalue.telphone) == false) {
                            showToast('手机号码格式错误');
                            return false;
                        }
                        if (!evalue.password) {
                            showToast('请填写登录密码');
                            return false;
                        }
                        formData = evalue;
                        if (this.info.resume_create_edu != 1 && this.info.resume_create_exp != 1 && this.info.resume_create_project != 1) {
                            this.saveForm();
                        } else {
                            if (this.info.resume_create_exp == 1) {
                                // 工作经历必填
                                if (this.info.expcreate.includes(formData.exp)) {
                                    // 工作经历可以跳过
                                    this.info.iscreateexpshow = true;
                                } else {
                                    this.info.iscreateexpshow = false;
                                }
                                this.workBox = true;
                                if(this.workList.length == 0){
                                    this.workList.push(deepClone(workObj));
                                }
                            } else if (this.info.resume_create_edu == 1) {
                                // 教育经历必填
                                if (this.info.educreate.includes(formData.edu)) {
                                    // 教育经历可以跳过
                                    this.info.iscreateedushow = true;
                                } else {
                                    this.info.iscreateedushow = false;
                                }
                                this.eduBox = true;
                                if(this.eduList.length == 0){
                                    this.eduList.push(deepClone(eduObj));
                                }
                            } else if (this.info.resume_create_project == 1) {
                                // 项目经历必填
                                this.projectBox = true;
                                if(this.projectList.length == 0){
                                    this.projectList.push(deepClone(projectObj));
                                }
                            }
                        }
                    },
                    saveForm: function(){
                        var self = this;
                        if(!formDisabled){
                            showLoading();
                            formData.source = 12;
                            formData.jobid = jobid;
                            $.post(wapurl + "?c=ajax&a=temporaryresume", formData, function (data) {
                                if (data.url) {
                                    // 跳转前,阻止再次提交,防止重复提交
                                    formDisabled = true;
                                    showToast(data.msg, 2, function() {
                                        location.href = data.url;
                                    });
                                }else {
                                    showToast(data.msg, 2, function(){
                                        if(data.error && data.error == 106){
                                            // 图片验证码错误
                                            if (self.info.resume_create_edu == 1 || self.info.resume_create_exp == 1 || self.info.resume_create_project == 1) {
                                                // 需要填工作经历等,图片验证码,不需要返回到第一步,直接在弹出框填写
                                                self.yzmBox = true;
                                                setTimeout(function(){
                                                    $("#vcode_imgs").attr('src','{yun:}$config.sy_wapdomain{/yun}/authcode.inc.php');
                                                },100);
                                            }else{
                                                checkCode('vcode_img');
                                            }
                                        }else if(data.error && data.error == 107){
                                            $("#bind-submit").trigger("click");
                                        }
                                    });
                                }
                            },'json');
                        }
                    },
                    showContent: function(type, key){
                        pickerType = type;
                        pickerKey = key;
                        if(type == 'workList'){
                            this.contentTitle = '工作内容';
                            this.content = this.workList[key].content;
                        }else if (type == 'projectList'){
                            this.contentTitle = '项目内容';
                            this.content = this.projectList[key].content;
                        }
                        this.contentBox = true;
                    },
                    contentSubmit: function(){
                        this[pickerType][pickerKey]['content'] = this.content;
                        this.contentBox = false;
                    },
                    addNewHtml: function(type){
                        if(type == 'work'){
                            if (this.workList.length > 2) {
                                return showModal('最多可以添加三份工作经历');
                            }
                            this.workList.push(deepClone(workObj));
                            setTimeout(function(){
                                window.location.href = '#workButton';
                            });
                        }else if(type == 'edu'){
                            if (this.eduList.length > 2) {
                                return showModal('最多可以添加三份教育经历');
                            }
                            this.eduList.push(deepClone(eduObj));
                            setTimeout(function(){
                                window.location.href = '#eduButton';
                            });
                        }else if (type == 'project'){
                            if (this.projectList.length > 2) {
                                return showModal('最多可以添加三份项目经历');
                            }
                            this.projectList.push(deepClone(projectObj));
                            setTimeout(function(){
                                window.location.href = '#projectButton';
                            });
                        }
                    },
                    delNewHtml: function(type, key){
                        if(type == 'work'){
                            this.workList.splice(key, 1);
                        }else if(type == 'edu'){
                            this.eduList.splice(key, 1);
                        }else if (type == 'project'){
                            this.projectList.splice(key, 1);
                        }
                    },
                    skipPage: function(type){
                        // 跳过
                        if(type == 'work'){
                            this.skipOrSubmitOfWork();
                        }else if(type == 'edu'){
                            this.skipOrSubmitOfEdu();
                        }
                    },
                    workSubmit: function(){
                        // 工作经历下一步
                        var field = getFormValue('workSubmit');
                        for (var i = 0; i < this.workList.length; i++) {
                            var st = Date.parse(field['worksdate_' + i]) / 1000,
                                ed = Date.parse(field['workedate_' + i]) / 1000;
                            if (!field['workname_' + i]) {
                                showModal('请填写第' + (i + 1) + '份工作经历的公司名称');
                                return false;
                            } else if (!field['worktitle_' + i]) {
                                showModal('请填写第' + (i + 1) + '份工作经历的担任职位');
                                return false;
                            } else if (!field['worksdate_' + i]) {
                                showModal('请选择第' + (i + 1) + '份工作经历的入职时间');
                                return false;
                            } else if (!field['workedate_' + i] && parseInt(field['totoday_' + i]) == 0) {
                                showModal('请选择第' + (i + 1) + '份工作经历的离职时间');
                                return false;
                            } else if (field['worksdate_' + i] && field['workedate_' + i] && st > ed) {
                                showModal('第' + (i + 1) + '份工作经历的离职时间不能小于入职时间');
                                return false;
                            }
                            field['workcontent_' + i] = this.workList[i].content;
 
                        }
                        field['iscreateexp'] = 1;
                        Object.assign(formData, field);
                        this.skipOrSubmitOfWork();
                    },
                    skipOrSubmitOfWork: function(){
                        if (this.info.resume_create_edu != 1 && this.info.resume_create_project != 1) {
                            this.saveForm();
                        }else{
                            if (this.info.resume_create_edu == 1) {
                                // 教育经历必填
                                if (this.info.educreate.includes(formData.edu)) {
                                    // 教育经历可以跳过
                                    this.info.iscreateedushow = true;
                                } else {
                                    this.info.iscreateedushow = false;
                                }
                                this.eduBox = true;
                                if(this.eduList.length == 0){
                                    this.eduList.push(deepClone(eduObj));
                                }
                            } else if (this.info.resume_create_project == 1) {
                                // 项目经历必填
                                this.projectBox = true;
                                if(this.projectList.length == 0){
                                    this.projectList.push(deepClone(projectObj));
                                }
                            }
                        }
                    },
                    eduSubmit:function(){
                        // 教育经历下一步
                        var field = getFormValue('eduSubmit');
                        for (var i = 0; i < this.eduList.length; i++) {
                            var st = Date.parse(field['edusdate_' + i]) / 1000,
                                ed = Date.parse(field['eduedate_' + i]) / 1000;
                            if (!field['eduname_' + i]) {
                                showModal('请填写第' + (i + 1) + '份教育经历的学校名称');
                                return false;
                            } else if (!field['eduid_' + i]) {
                                showModal('请填写第' + (i + 1) + '份教育经历的学历');
                                return false;
                            } else if (!field['edusdate_' + i]) {
                                showModal('请选择第' + (i + 1) + '份教育经历的入学时间');
                                return false;
                            } else if (!field['eduedate_' + i]) {
                                showModal('请选择第' + (i + 1) + '份教育经历的毕业时间');
                                return false;
                            } else if (field['edusdate_' + i] && field['eduedate_' + i] && st > ed) {
                                showModal('第' + (i + 1) + '份教育经历的毕业时间不能小于入学时间');
                                return false;
                            }
                        }
                        field['iscreateedu'] = 1;
                        Object.assign(formData, field);
                        this.skipOrSubmitOfEdu();
                    },
                    skipOrSubmitOfEdu: function(){
                        if (this.info.resume_create_project != 1) {
                            this.saveForm();
                        } else {
                            this.projectBox = true;
                            if(this.projectList.length == 0){
                                this.projectList.push(deepClone(projectObj));
                            }
                        }
                    },
                    projectSubmit:function(){
                        var field = getFormValue('projectSubmit');
                        for (var i = 0; i < this.projectList.length; i++) {
                            var st = Date.parse(field['projectsdate_' + i]) / 1000,
                                ed = Date.parse(field['projectedate_' + i]) / 1000;
                            if (!field['projectname_' + i]) {
                                showModal('请填写第' + (i + 1) + '份项目经历的项目名称');
                                return false;
                            } else if (!field['projecttitle_' + i]) {
                                showModal('请填写第' + (i + 1) + '份项目经历的担任职位');
                                return false;
                            } else if (!field['projectsdate_' + i]) {
                                showModal('请选择第' + (i + 1) + '份项目经历的开始时间');
                                return false;
                            } else if (!field['projectedate_' + i]) {
                                showModal('请选择第' + (i + 1) + '份项目经历的结束时间');
                                return false;
                            } else if (field['projectsdate_' + i] && field['projectedate_' + i] && st > ed) {
                                showModal('第' + (i + 1) + '份项目经历的结束时间不能小于开始时间');
                                return false;
                            }
                            field['projectcontent_' + i] = this.projectList[i].content;
                        }
                        field['iscreatepro'] = 1;
                        Object.assign(formData, field);
                        this.saveForm();
                    },
                    loadJs: function(){
                        let a = document.createElement('script');
                        a.src = "{yun:}$plusstyle{/yun}/user.cache.js?v={yun:}$config.cachecode{/yun}";
                        document.body.appendChild(a);
                        
                        let b = document.createElement('script');
                        b.src = "{yun:}$wap_style{/yun}/js/userPicker.js?v={yun:}$config.cachecode{/yun}";
                        document.body.appendChild(b);
                    },
                    // 时间picker显示
                    timeShow (type, key, time){
                        pickerType = type;
                        pickerKey = key;
                        pickerTime = time;
                        
                        this.timeData = timePicker(type, time, this[pickerType][pickerKey][pickerTime]);
                        let self= this;
                        setTimeout(function(){
                            self.timeBox = true;
                        })
                    },
                    // 时间picker滚动
                    timeChange: function(e){
                        var f = e.getValues();
                        if(f[0] == '至今'){
                            this.timeData[1].values = [];
                        }else{
                            this.timeData[1].values = workMonth;
                        }
                    },
                    // 时间picker确认
                    timeConfirm: function(e){
                        this.timeBox = false;
                        if(e[0] == '至今'){
                            var date = e[0];
                            this[pickerType][pickerKey]['totoday'] = 1;
                        }else{
                            var date = e.join('-');
                            if(pickerType == 'workList' && pickerTime == 'edate'){
                                this[pickerType][pickerKey]['totoday'] = 0;
                            }
                        }
                        this[pickerType][pickerKey][pickerTime] = date;
                        this.timeData = [];
                    },
                    // 验证码输入检测,达到长度就提交
                    yzmInput(e){
                        yzmcode += e.data;
                        if(yzmcode.length == code_strlength){
                            this.yzmBox = false;
                            formData.authcode = yzmcode;
                            yzmcode = '';
                            $("#applybtn").click();
                        }
                    }
                }
            });
        </script>
    </body>
</html>