-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice_ssl.tpl
1574 lines (1461 loc) · 50.9 KB
/
service_ssl.tpl
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
991
992
993
994
995
996
997
998
999
1000
{include file="includes/paymodal"}
{include file="includes/tablestyle"}
{include file="includes/pop"}
<script>
$(function () {
// 状态筛选
var parmas = []
var urlParams = '{:implode(',', $Think.get.domain_status)}';
var statusSelected = urlParams.split(',')
var isSslPage = '{$isSslPage}';
if(!statusSelected[0]){
statusSelected=['Pending','Active','Suspended']
if(isSslPage == 1)
{
statusSelected = ['Pending','Active','Verifiy_Active','Overdue_Active','Issue_Active','Cancelled','Deleted'];
}
}
$('#statusSel').selectpicker('val', statusSelected)
$('#statusSel').on('change', function () {
statusSelected = $('#statusSel').val()
statusSelected.forEach(item => {
parmas += '&domain_status[]=' + item
})
location.href = 'service?groupid={$Think.get.groupid}' + parmas
});
// 关键字搜索
$('#searchInp').val('{$Think.get.keywords}')
$('#searchInp').on('keydown', function (e) {
if (e.keyCode == 13) {
location.href = 'service?groupid={$Think.get.groupid}&keywords=' + $('#searchInp').val() +
'&sort={$Think.get.sort}&orderby={$Think.get.orderby}&page={$Think.get.page}&limit={$Think.get.limit}'
}
})
$('#searchIcon').on('click', function () {
location.href = 'service?groupid={$Think.get.groupid}&keywords=' + $('#searchInp').val() +
'&sort={$Think.get.sort}&orderby={$Think.get.orderby}&page={$Think.get.page}&limit={$Think.get.limit}'
});
// 设置样式
// 排序
$('.bg-light th:not(.checkbox)').on('click', function () {
var sort = '{$Think.get.sort}'
location.href = 'service?groupid={$Think.get.groupid}&keywords={$Think.get.keywords}&sort=' + (sort ==
'desc' ? 'asc' : 'desc') + '&orderby=' + $(this).attr('prop') +
'&page={$Think.get.page}&limit={$Think.get.limit}'
})
changeStyle()
function changeStyle() {
$('.text-black-50.d-inline-flex.flex-column.justify-content-center.ml-1.offset-3').children().css('color','rgba(0, 0, 0, 0.1)')
var sort = '{$Think.get.sort}'
var orderby = '{$Think.get.orderby}'
let index
if(orderby === 'domainstatus') {
if (sort === 'desc') {
index = 1
} else if(sort === 'asc') {
index = 0
}
} else if(orderby === 'nextduedate') {
if (sort === 'desc') {
index = 3
} else if(sort === 'asc') {
index = 2
}
}
$('.text-black-50.d-inline-flex.flex-column.justify-content-center.ml-1.offset-3').children().eq(index).css('color','rgba(0, 0, 0, 0.8)')
}
})
</script>
<div class="card">
<div class="card-body">
<div class="table-container">
<div class="table-header">
<div class="table-filter">
<div class="row">
<div class="col">
<select class="selectpicker" id="statusSel" data-style="btn-default" title="{$Lang.please_select_status}" multiple>
{foreach $Service.domainstatus as $key => $list}
<option value="{$key}" selected>{$list.name}</option>
{/foreach}
</select>
{if (isset($nav_info.orderFuc) && $nav_info.orderFuc)}
<a href="{$nav_info.orderFucUrl}" class="btn btn-sm btn-primary w-xs">订购产品</a>
{/if}
</div>
</div>
</div>
<!-- wyh 20210331 增加产品转移hook模板template_after_service_domainstatus_selected-->
{php}$hooks=hook('template_after_service_domainstatus_selected');{/php}
{if $hooks}
{foreach $hooks as $item}
{$item}
{/foreach}
{/if}
<!-- 结束 -->
<div class="table-search">
<div class="row justify-content-end">
<div class="col-sm-6">
<div class="search-box">
<div class="position-relative">
<input type="text" class="form-control" id="searchInp" placeholder="{$Lang.search_by_keyword}">
<i class="bx bx-search-alt search-icon" id="searchIcon"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="table-responsive">
<table class="table tablelist">
<colgroup>
<col width="50px">
<col>
<col>
<col>
<col>
<col>
<col>
<col width="8%">
</colgroup>
<thead class="bg-light">
<tr>
<th class="checkbox">
<div class="custom-control custom-checkbox mb-3">
<input type="checkbox" name="headCheckbox" class="custom-control-input" id="customCheck">
<label class="custom-control-label" for="customCheck"></label>
</div>
</th>
<th class="pointer" prop="domainstatus">
<span>{$Lang.state}</span>
<span class="text-black-50 d-inline-flex flex-column justify-content-center ml-1 offset-3">
<i class="bx bx-caret-up"></i>
<i class="bx bx-caret-down"></i>
</span>
</th>
<th>证书名称</th>
<th>证书类型</th>
<th>域名</th>
<th class="pointer" prop="nextduedate">
<span>{$Lang.due_date}</span>
<span class="text-black-50 d-inline-flex flex-column justify-content-center ml-1 offset-3">
<i class="bx bx-caret-up"></i>
<i class="bx bx-caret-down"></i>
</span>
</th>
<th>{$Lang.remarks}</th>
<th>{$Lang.operating}</th>
</tr>
</thead>
<tbody id="serviceTbody">
{if $Service.list}
{foreach $Service.list as $list}
<tr>
<td>
<div class="custom-control custom-checkbox mb-3">
<input type="checkbox" class="custom-control-input row-checkbox" id="customCheck{$list.id}"
data-status="{$list.domainstatus}">
<label class="custom-control-label" for="customCheck{$list.id}"></label>
</div>
</td>
<td style="position:relative">
<div class="dots" id="service{$list.id}" style="display:none" data-toggle="tooltip" data-placement="top"
title="{$Lang.please_wait_a_moment}..." onclick="getSingleStatus('{$list.id}')">
</div>
<span class="badge badge-pill font-size-12
status-{$list.domainstatus|strtolower}"">{$Service['domainstatus'][$list['domainstatus']]['name']}</span>
</td>
<td>
<a href=" servicedetail?id={$list.id}" class="text-dark">
<strong>{$list.productname}</strong>
</a><br />
<small class="text-muted">{$list.domain}</small>
</td>
<td>
<span class="badge badge-pill font-size-12" style="padding:0">{$list.certssl_cert_type ?? '-'}</span>
</td>
<td>
{if ($list.domainNames_arr)}
<span data-toggle="popover" data-trigger="hover" title="" data-html="true" data-content="
{foreach $list.domainNames_arr as $kd => $vd}
<div>{$vd}</div>
{/foreach}
" data-original-title="">
<span class="badge badge-pill font-size-12" style="padding:0">
{$list.used_domainNames ?? '-'}
({:count($list.domainNames_arr)})
</span>
</span>
{/if}
{if (!$list.domainNames_arr)}
<span class="badge badge-pill font-size-12" style="padding:0">
{$list.used_domainNames ?? '-'}
</span>
{/if}
</td>
<td>
<span class="badge badge-pill font-size-12" style="padding:0">{$list.cycle_desc ?? '-'}</span>
</td>
<td>{if $list.notes}{$list.notes}{else}-{/if}
<i class="bx bx-edit-alt pointer text-primary"
onclick="editNotesHandleClick('{$list.id}', '{$list.notes}')"></i>
<!-- data-toggle="modal" data-target="#modifyNotesModal" -->
</td>
<td>
<a href="servicedetail?id={$list.id}" class="btn btn-sm btn-primary w-xs">查看</a>
{if $list.domainstatus == 'Pending'}
<!-- 去付款 -->
<a href="#" class="btn btn-sm btn-primary w-xs" onclick="payamount({$list.invoice_id})">去付款</a>
{/if}
{if $list.domainstatus == 'Active'}
<!-- 签发-->
<a href="#" class="btn btn-sm btn-primary w-xs issueCertBtn" data-hostid="{$list.id}">签发</a>
{/if}
</td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="12">
<div class="no-data">{$Lang.nothing}</div>
</td>
</tr>
{/if}
</tbody>
</table>
</div>
<!-- 表单底部调用开始 -->
<div class="table-footer">
<div class="table-tools">
</div>
<div class="table-pagination">
<div class="table-pageinfo mr-2">
<span>{$Lang.common} {$Total} {$Lang.strips}</span>
<span class="mx-2">
{$Lang.each_page}
<select name="" id="limitSel">
<option value="10" {if $Limit==10}selected{/if}>10</option>
<option value="15" {if $Limit==15}selected{/if}>15</option>
<option value="20" {if $Limit==20}selected{/if}>20</option>
<option value="50" {if $Limit==50}selected{/if}>50</option>
<option value="100" {if $Limit==100}selected{/if}>100</option>
</select>
{$Lang.strips}
</span>
</div>
<ul class="pagination pagination-sm">
{$Pages}
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- 签发 -->
<div class="modal fade" id="sslIssue" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="IssueTitle"> 申请签发</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="sslIssueContent">
<div class="sslIssueDiv">
<form id="issus_form">
<div class="row">
<div class="col-sm-6">
<div class="form-group d-j-a-center">
<label for="IssueDomain" class="col-sm-3 red_label control-label label-text-right">签发域名</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" id="IssueDomain" name="used_domainNames" placeholder="请输入签发域名">
</div>
</div>
<div class="form-group d-j-a-center" id="issueDomainTow" style="">
<label for="IssueDomainTow" class="col-sm-3 control-label label-text-right"></label>
<div class="col-sm-9">
<textarea class="form-control" rows="5" name="domainNames" id='domainVerification' placeholder="不同域名或公网 IP 地址之间请使用换行符隔开,我们支持以下格式:
idcsmart.com
*.idcsmart.com"></textarea>
<div style="position: absolute;bottom: 5px;right: 30px;">
<span id="currentNum">0</span>/<span id="domainNum">0</span>
</div>
</div>
</div>
<div class="form-group d-j-a-center">
<label for="issueCsr" class="col-sm-3 red_label control-label label-text-right">CSR</label>
<div class="col-sm-9">
<div class="issueCsrDiv" style="display: flex;align-items: center;">
<div>
<input type="radio" name="is_csr" id="issueCsrRadios1" value="0" checked> <span>自动生成</span>
</div>
<div>
<input type="radio" name="is_csr" id="issueCsrRadios2" value="1"> <span>自行上传</span>
</div>
</div>
</div>
</div>
<div class="form-group d-j-a-center" id="RadioTextarea" style="display: none">
<label for="issueCsr" class="col-sm-3 control-label"></label>
<div class="col-sm-9">
<textarea class="form-control" rows="3" name="csr_text" id="algorithmTips"></textarea>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group d-j-a-center">
<div class="col-sm-8">
<!-- 域名验证 -->
</div>
<div class="col-sm-4">
</div>
</div>
</div>
</div>
<div style="font-weight: bold;margin-bottom: 5px;padding-left:28px;" id="issueseniorDivTitle">其他信息</div>
<div class="row" id="issueseniorDiv">
<div class="col-sm-12">
<div style="margin-bottom: 10px;padding-left: 28px;">联系人信息</div>
<div class="row verificationDiv">
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueLastname" class="col-sm-3 control-label label-text-right">姓</label>
<div class="col-sm-9">
<input type="text" value="{$certifi_log.lastname ?? ''}" class="form-control" name="lastname" id="issueLastname" placeholder="请输入姓">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueName" class="col-sm-3 control-label label-text-right">名</label>
<div class="col-sm-9">
<input type="text" value="{$certifi_log.firstname ?? ''}" class="form-control" name="firstname" id="issueName" placeholder="请输入名">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issuePosition" class="col-sm-3 control-label label-text-right">职位</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="position" id="issuePosition" placeholder="请输入职位">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueEmail" class="col-sm-3 control-label label-text-right">邮箱</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="email" id="issueEmail" placeholder="请输入邮箱">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issuePhone" class="col-sm-3 control-label label-text-right">电话</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="telephone" id="issuePhone" placeholder="请输入电话">
</div>
</div>
</div>
</div>
<div class="col-sm-12 company-box">
<div style="margin-bottom: 10px;padding-left: 28px;">企业信息</div>
<div class="row verificationDiv_t">
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCorporatename" class="col-sm-3 redStar control-label label-text-right">公司名称</label>
<div class="col-sm-9">
<input type="text" value="{$certifi_log.orgName ?? ''}" class="form-control" name="orgName" id="issueCorporatename" placeholder="请输入公司名称">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCorporatephone" class="col-sm-3 redStar control-label label-text-right">公司电话</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" id="issueCorporatephone" name="company_phone" placeholder="请输入公司名称">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCreditCode" class="col-sm-3 redStar control-label label-text-right">信用代码</label>
<div class="col-sm-9">
<input type="text" value="{$certifi_log.creditCode ?? ''}" class="form-control" name="creditCode" id="issueCreditCode" placeholder="请输入信用代码">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCountry" class="col-sm-3 redStar control-label label-text-right">国家</label>
<div class="col-sm-9">
<select class="form-control" id="issueCountry" name="country">
{foreach $iso_arr as $key => $val}
<option value="{$val.iso}" {if($val.iso == 'CN')} selected {/if}
>{$val.name_zh}({$val.iso})</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueProvince" class="col-sm-3 redStar control-label label-text-right">省份</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="province" id="issueCreditCode" placeholder="请输入省份">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCity" class="col-sm-3 redStar control-label label-text-right">城市</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="locality" id="issueCreditCode" placeholder="请输入城市">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCompanyaddress" class="col-sm-3 redStar control-label label-text-right">公司地址</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" id="issueCompanyaddress" name="address" placeholder="请输入公司地址">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issuePostalCode" class="col-sm-3 redStar control-label label-text-right">邮政编码</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" id="issuePostalCode" placeholder="请输入邮政编码" name="postalCode">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueCountryRegistration" class="col-sm-3 redStar control-label label-text-right">注册国家</label>
<div class="col-sm-9">
<select class="form-control" id="issueCountry" name="joiCountry">
{foreach $iso_arr as $key => $val}
<option value="{$val.iso}" {if($val.iso == 'CN')} selected {/if}
>{$val.name_zh}({$val.iso})</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueRegisteredProvince" class="col-sm-3 redStar control-label label-text-right">注册省份</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="joiProvince" id="issueCreditCode" placeholder="请输入注册省份">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueRegisteredCity" class="col-sm-3 redStar control-label label-text-right">注册城市</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" name="joiLocality" id="issueCreditCode" placeholder="请输入注册城市">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueRegisteredAddress" class="col-sm-3 redStar control-label label-text-right">注册地址</label>
<div class="col-sm-9">
<input type="text" value="" class="form-control" id="issueRegisteredAddress" placeholder="请输入注册地址" name="registryAddr">
</div>
</div>
<div class="form-group d-j-a-center col-sm-12 col-md-6">
<label for="issueDateRegistration" class="col-sm-3 redStar control-label label-text-right">注册日期</label>
<div class="col-sm-9">
<input type="date" value="" class="form-control" id="issueDateRegistration" placeholder="请输入注册日期" name="dateOfIncorporation">
</div>
</div>
</div>
</div>
</div>
<input type="hidden" name="id" value="">
<input type="hidden" name="func" value="issue">
</form>
</div>
</div>
<div class="modal-footer">
<button id="issueApply" type="button" class="btn btn-primary" style="width:80px;">提交</button>
<button id="issueApplyCancel" type="button" class="btn btn-outline-light" style="width:80px;" data-dismiss="modal">取消</button>
</div>
</div>
</div>
</div>
<style>
.dots {
cursor: pointer;
width: 15px;
height: 15px;
border-radius: 50%;
border: 1px solid #fff;
position: absolute;
top: 6px;
left: 6px;
}
.on_color {
background-color: #3fbf70;
}
.ing_color {
background-color: #f5f5f5;
}
.off_color {
background-color: #e31519;
}
.unknown_color {
background-color: #c0c0c0;
}
.error_color {
background-color: #959799;
}
.not_support_color {
background-color: #2d2d2d;
}
#showDomain{
color:#426dff;display: flex;align-items: center;
}
#showDomain span:first-child {
display: inline-block;font-size: 24px;width: 26px;height: 26px;border: 1px solid #426dff;line-height: 22px;text-align: center;border-radius: 50%;
}
#showDomain span:last-child{
margin-left: 5px;
}
#hideDomain{
display: none;
color:#999999;align-items: center;
}
#hideDomain span:first-child{
display: inline-block;font-size: 24px;width: 26px;height: 26px;border: 1px solid #999999;line-height: 22px;text-align: center;border-radius: 50%;
}
#hideDomain span:last-child{
margin-left: 5px;
}
@media screen and (max-width: 768px) {
.sslStatus {
height: 100% !important;
}
.sslStatusOne{
padding: 0px;
}
.sslStatusOnedivTwo{
padding-right:0px !important;
}
.ssl_operations{
text-align: left !important;
}
.ssl_domain{
margin: 15px 0px;
}
.ssl_detailDiv>div{
padding-left: 0px !important;
}
.d-j-a-center-operation{
display: block !important;
}
.td_width{
max-width: auto !important;
min-width: auto !important;
}
.label-text-right{
text-align: left !important;
}
.sslIssueDiv{
height: auto !important;
}
}
.ssl_orderDetail{
display: flex;
}
.ssl_orderDetail>label{
color: #999999;
max-width: 100px;
min-width: 100px;
text-align: right;
}
.ssl_detailDiv>div{
padding-left: 20px;
}
.stepDiv{
margin:30px 15px;
}
.step{
padding: 5px 25px 30px;
border-left: 1px solid #EFEFFF;
position: relative;
}
.step>.yuan{
width: 30px;
height: 30px;
border-radius: 50%;
text-align: center;
line-height: 28px;
left: -15px;
border:1px solid;
top: 0px;
position: absolute;
}
.stepContent_text{
margin:10px 0px;
}
.stepNoborder{
border-color: #fff;
}
.ssl-dialog-tip>div{
color: #006EFF;
height: 32px;
display: flex;
align-items: center;
background: #F3F8FF;
opacity: 1;
}
.ssl-more-operations li a{
color: #212529;
padding: .35rem 0.5rem;
}
.d-j-a-center {
display: flex;
justify-content: center;
align-items: center;
flex-flow: wrap;
}
.verification-method{
display: flex;
width: 60%;
}
.verification-method>div{
width:50%;height: 34px;border:1px solid #D1D6DD;
text-align: center;
line-height: 32px;
font-size: 12px;
}
.verification-method>div:first-child{
border-radius: 3px 0px 0px 3px;
}
.verification-method>div:last-child{
border-radius: 0px 3px 3px 0px;
border-left: 0px;
}
.poitner {
cursor: pointer;
}
.v-active{
background: #6064FF;
color: #fff;
}
.d-j-a-center-operation{
display: flex;
}
#v-operation-text{
margin-bottom: 20px;
background: #eff2f7;
padding: 5px 0px;
font-weight: bold;
}
#v-operation-text-two{
margin-bottom: 20px;
background: #eff2f7;
padding: 5px 0px;
font-weight: bold;
}
.td_width{
max-width: 200px;
min-width: 200px;
text-align: center;
}
#file-table{
display: none;
}
.issueCsrDiv{
display: flex;
align-items: center;
}
.issueCsrDiv >div{
display: flex;
align-items: center;
}
.issueCsrDiv >div>span{
margin-left: 10px;
}
.issueCsrDiv >div>input{
width: 16px;
height: 16px;
}
.issueCsrDiv div:last-child{
margin-left: 20px;
}
.issueContactsDiv{
display: flex;
align-items: center;
}
.issueContactsDiv>input{
width: 16px;
height: 16px;
}
.verificationDiv .d-j-a-center>label:before{
content: '*';
color: red;
}
.redStar:before{
content: '*';
color: red;
}
.red_label:before{
content: '*';
color: red;
}
.label-text-right{
text-align: right;
}
.sslIssueDiv{
overflow-y: auto;
height: 450px;
overflow-x: hidden;
}
/* ssl证书待验证 */
.status-verifiy_active{
color: #fff;
background-color: #fca426 !important;
border-color: #fca426 !important;
padding: 5px 10px !important;
}
/* ssl证书即将过期 */
.status-overdue_active{
color: #fff;
background-color: #6064FF !important;
border-color: #6064FF !important;
padding: 5px 10px !important;
}
/* ssl证书已签发 */
.status-issue_active{
color: #fff;
background-color: #3FBF70 !important;
border-color: #3FBF70 !important;
padding: 5px 10px !important;
}
/* ssl证书未付款 */
.status-pending{
color: #fff;
background-color: #EE6161 !important;
border-color: #EE6161 !important;
padding: 5px 10px !important;
}
/* ssl证书未使用 */
.status-active{
color: #fff;
background-color: #67A4FF !important;
border-color: #67A4FF !important;
padding: 5px 10px !important;
}
</style>
<!-- 修改备注弹窗 -->
<div class="modal fade" id="modifyNotesModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">修改备注</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="modifyNotesForm" class="needs-validation" novalidate>
<div class="form-group row">
<label class="col-sm-3 col-form-label text-right">备注</label>
<div class="col-sm-8">
<input type="textarea" class="form-control" id="notesInp" placeholder="请输入备注" required />
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-light" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary mr-2" id="modifyNotesSubmit">确定</button>
</div>
</div>
</div>
</div>
<script>
$("#domainVerification").on('blur', function () {
let verificationText=''
var arrtwo=[]
var arr=$(this).val().split("\n").map(item =>{
if(item.replace(/\s+/g,"") != '') arrtwo.push(item)
})
var ary=arrtwo
var nary=ary.sort();
for(var i=0;i<ary.length;i++){
if (nary[i]==nary[i+1]){
// alert("数组重复内容:"+nary[i]);
verificationText+=` ${nary[i]},`
}
}
$('#currentNum').text(arrtwo.length)
if($('#domainNum').text() == arrtwo.length){
$(this).removeClass('borderRed')
}else{
$(this).addClass('borderRed')
}
if(verificationText!='') toastr.error(verificationText.slice(0,verificationText.length-1)+'域名重复');
})
let isCompanyInfo = 0
$('.sslIncompleteStep button').attr('disabled', true);
$('.sslCompletedStep button').attr('disabled', true)
// 签发提交
$('#issueApply').click(function(){
let _that= $(this)
let text= $(this).text()
$(this).html('<i class="bx bx-loader bx-spin font-size-16 align-middle mr-2" style="color:#fff;"></i>' + text)
$.ajax({
url: '/provision/sslCertFunc'
,data: $('#issus_form').serialize()
,type:'post'
,dataType: 'json'
,success: function(e){
_that.html(text)
if(e.status != 200)
{
toastr.error(e.msg);
return false;
}
toastr.success(e.msg);
setTimeout(function () {
location.reload();
}, 2000)
}
})
})
$('.issueCertBtn').click(function () {
let _that= $(this)
let text= $(this).text()
$(this).html('<i class="bx bx-loader bx-spin font-size-16 align-middle mr-2" style="color:#fff;"></i>' + text)
var hostid = $(this).data('hostid');
issueBeforeCheckInfo(function (e) {
_that.html(text)
if(e.status != 200)
{
toastr.error(e.msg);
return false;
}
// 企业信息是否必填
var is_companyInfo = e.data.is_companyInfo
isCompanyInfo = e.data.is_companyInfo
for(let item of $('.verificationDiv_t')[0].children){
if(is_companyInfo == 0){
item.children[0].classList.remove("redStar");
}else{
item.children[0].classList.add("redStar");
}
}
if(is_companyInfo == 0)
{
$('.company-box').hide();
}
// csr提示信息
var algorithm_tips = e.data.algorithm_tips
if(algorithm_tips!=''){
$('#algorithmTips')[0].placeholder=algorithm_tips
}else{
$('#algorithmTips')[0].placeholder=''
}
$('input[name="id"]').val(hostid);
if(e.data.flex_num == 1)
{
$('#issueDomainTow').hide()
}
if(e.data.flex_num > 1)
{
$('#issueDomainTow').show()
}
$('#domainNum').text(e.data.flex_num - 1)
var arrtwo=[]
var arr=$("#domainVerification").val().split("\n").map(item =>{
if(item.replace(/\s+/g,"") != '') arrtwo.push(item)
})
$('#currentNum').text(arrtwo.length)
$('#sslIssue').modal('show');
}, hostid)
});
function issueBeforeCheckInfo(fun, hostid)
{
$.ajax({
url: '/provision/sslCertFunc'
,data: {id:hostid, func:'issueBeforeCheckInfo'}
,type: 'post'
,dataType: 'json'
,success: function (e) {
fun(e)
}
})
}
//csr 操作
$("#issueCsrRadios2").on('change', function () {
$('#RadioTextarea').show()
})
$("#issueCsrRadios1").on('change', function () {
$('#RadioTextarea').hide()
})
//输入姓 验证
$("#issueLastname").on('blur', function () {
var dom = $("#issueLastname")[0]
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
})
//输入 名验证
$("#issueName").on('blur', function () {
var dom = $("#issueName")[0]
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
})
//输入职位验证
$("#issuePosition").on('blur', function () {
var dom = $("#issuePosition")[0]
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
})
//输入邮箱验证
$("#issueEmail").on('blur', function () {
var dom = $("#issueEmail")[0]
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
})
//输入电话验证
$("#issuePhone").on('blur', function () {
var dom = $("#issuePhone")[0]
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
})
//输入公司名称验证
$("#issueCorporatename").on('blur', function () {
var dom = $("#issueCorporatename")[0]
if(isCompanyInfo == 1){
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
}
})
//输入公司电话验证
$("#issueCorporatephone").on('blur', function () {
var dom = $("#issueCorporatephone")[0]
if(isCompanyInfo == 1){
if (dom.value == '') {
dom.classList.add("is-invalid"); //添加非法状态
return
} else {
dom.classList.remove("is-invalid");
}
}
})
//输入信用代码验证
$("#issueCreditCode").on('blur', function () {
var dom = $("#issueCreditCode")[0]
if(isCompanyInfo == 1){