scan-auth.html
55.1 KB
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
<!-- 开通默认小程序 -->
<!-- <div class="scan-auth" ng-show="isDefault">
<div class="scan-item relative">
<div class="ibox-content">
<div class="ibox-title" style="border: none;">
<h5>小程序授权流程</h5>
</div>
<div class="m-l-40" id="tasks"></div>
</div>
</div> -->
<div class="scan-item relative default" ng-show="isDefault">
<toaster-container toaster-options="{'position-class': 'toast-top-center'}"></toaster-container>
<div class="ibox-content merchant animated fadeInRight" ng-show="defaultOptions.openStatus===1" style="padding: 0;">
<div class="default-header">已默认为您开通门店小程序,扫描下方二维码即可体验,为了保障客户的良好服务体验,您需要完善下方小程序资料</div>
<!-- <f3>完善资料</f3> -->
<form name="merchantForm" id="test" class="woForm" novalidate="">
<div class="form-group" style="width: 20%; display:inline-block;">
<div class="">
<div
style="width: 160px; height: 160px; border-radius: 100%; overflow: hidden; border: 1px solid #ccc; margin: 0 auto">
<img src="{{defaultOptions.weappQrcode}}" style="width: 160px; height: 160px;" />
</div>
<p style="text-align: center; margin-top: 10px;"><a ng-click="handleCodePic(true)">小程序码下载</a></p>
</div>
</div>
<div class="row wo-row" style="width: 80%; display:inline-block;">
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2">商户名称:</label>
<span class="col-lg-8 col-md-8">
<input type="text" required name="name" class="form-control" ng-model="merchant.model.name"
maxlength="50" placeholder="如:深圳尚城福特4S店">
</span>
<!-- <div class="m-t-xs" ng-show="merchantForm.name.$invalid && merchant.submitted"> -->
<small class="text-danger"
ng-show="merchantForm.name.$error.required && merchant.submitted">此项不能为空</small>
<!-- </div> -->
</div>
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2">商户简称:</label>
<span class="col-lg-8 col-md-8">
<input type="text" required class="form-control" name="shortName" maxlength="25"
ng-model="merchant.model.shortName" placeholder="商户对外显示的名称,如:尚城福特">
</span>
<!-- <div class="m-t-xs" ng-show="merchantForm.name.$invalid && merchant.submitted"> -->
<small class="text-danger"
ng-show="merchantForm.shortName.$error.required && merchant.submitted">此项不能为空</small>
<!-- </div> -->
</div>
<div class="form-group row clearfix">
<label class="control-label required m-r-15 merchant-form-label col-lg-2 col-md-2">商户地址:</label>
<!-- <input type="text" required class="form-control" name="address"
ng-model="merchant.model.address" readonly placeholder=""
ng-click="merchant.openChooseAddress()">
<i class="fa fa-map-marker" aria-hidden="true"
style="position: absolute;top: 27px;right: 20px;font-size: 20px;"></i> -->
<div class="input-group col-lg-8 col-md-8">
<input type="text" class="form-control" name="address" ng-model="merchant.model.address"
readonly placeholder="点击搜索定位" ng-click="merchant.openChooseAddress()">
<span class="input-group-addon" ng-click="merchant.openChooseAddress()">
<span class="glyphicon glyphicon-map-marker"></span>
</span>
</div>
<span class="my-tip col-lg-offset-2 col-md-offset-2" style="padding-left: 15px;">
<i class="fa fa-info-circle" aria-hidden="true"></i>
客户将根据此地址前往商户,请务必填写真实准确的地址。
</span>
<small class="text-danger"
ng-show="merchantForm.address.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2 ">商户电话:</label>
<span class="col-lg-8 col-md-8">
<input type="text" required class="form-control" name="telphone"
ng-model="merchant.model.telphone">
</span>
<small class="text-danger"
ng-show="merchantForm.telphone.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group row clearfix">
<label class="control-label required m-r-15 merchant-form-label col-lg-2 col-md-2">营业时间:</label>
<!-- <input type="text" required class="form-control" name="businessHours" ng-model="merchant.model.businessHours"> -->
<div class="row clock-row">
<div class="input-group clockpicker col-lg-3 col-md-3">
<input type="text" class="form-control" readonly required name="openTime"
ng-model="merchant.model.openTime">
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
<!-- <small class="text-danger"
ng-show="merchantForm.openTime.$error.required && merchant.submitted">此项不能为空</small> -->
-
<div class="input-group clockpicker col-lg-3 col-md-3">
<input type="text" class="form-control" readonly required name="closeTime"
ng-model="merchant.model.closeTime">
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
<!-- <small class="text-danger"
ng-show="merchantForm.closeTime.$error.required && merchant.submitted">此项不能为空</small> -->
</div>
<div ng-show="timeShowError">
<small class="text-danger">请输入正确的营业时间</small>
</div>
</div>
<!-- <div class="form-group col-lg-6 col-md-6 col-lg-offset-1 col-md-offset-1 carbrands" id="test1">
<label class="control-label required">主营品牌:</label>
<input type="hidden" required name="carBrandList" ng-model="merchant.model.carBrandList[0]"> -->
<!-- <div ng-class="{'logo-wrap-no-brand': !merchant.model.carBrandList.length, 'logo-wrap': merchant.model.carBrandList.length'"> -->
<!-- <div class="logo-wrap">
<img ng-src="{{item.brandLogo}}" alt="" ng-repeat="item in merchant.model.carBrandList" /> -->
<!-- <span class="brand" ng-repeat="item in merchant.model.carBrandList">{{item.brandName}}</span> -->
<!-- <a href="javascript:;" ng-click="merchant.openChooseBrands()" class="check-name">编辑</a>
</div>
<small class="text-danger"
ng-show="merchantForm.carBrandList.$error.required && merchant.submitted">此项不能为空</small>
</div> -->
<div class="form-group row clearfix" id="test1">
<label class="control-label required merchant-form-label col-lg-2 col-md-2 ">主营品牌:</label>
<span class="col-lg-10 col-md-10 " style="margin-top: 5px;">
<input type="hidden" required name="carBrandList" ng-model="merchant.model.carBrandList[0]"
class="carbrands">
<!-- <div ng-class="{'logo-wrap-no-brand': !merchant.model.carBrandList.length, 'logo-wrap': merchant.model.carBrandList.length'"> -->
<div class="logo-wrap">
<img ng-src="{{item.brandLogo}}" alt="" style="height: 36px;"
ng-repeat="item in merchant.model.carBrandList" />
<!-- <span class="brand" ng-repeat="item in merchant.model.carBrandList">{{item.brandName}}</span> -->
<a href="javascript:;" ng-click="merchant.openChooseBrands()" class="check-name">编辑</a>
</div>
</span>
<small class="text-danger"
ng-show="merchantForm.carBrandList.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2 ">主营业务:</label>
<input type="hidden" required name="mainBusiness" ng-model="merchant.model.mainBusiness[0]">
<div class="col-lg-10 col-md-10 ">
<span class="service"
ng-repeat="item in merchant.model.mainBusiness track by $index">{{item}}</span>
<a href="javascript:;" ng-click="merchant.openChooseServices()" class="check-name">编辑</a>
</div>
<small class="text-danger"
ng-show="merchantForm.mainBusiness.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group submit">
<label class="control-label merchant-form-label col-lg-2 col-md-2 "></label>
<span class="col-lg-2 col-md-2 " style="padding-left: 3px;">
<button ng-disabled="merchantForm.$invalid" ng-click="merchant.submit(merchantForm.$invalid, true)"
class="btn btn-primary" style="width: 100%;">提交资料
<i ng-show="isSubmitting"></i>
</button>
</span>
</div>
</div>
</form>
<div style="padding: 30px 20px;">如果您需要独立部署小程序,您也可以用点击链接单独申请小程序
<button ng-click="handlePrivate()" class="btn btn-primary" style="width: 90px; margin-left: 30px;">去申请
</button>
</div>
</div>
<div class="ibox-content mp-info animated fadeInRight" ng-show="defaultOptions.openStatus===2 || defaultOptions.openStatus===3"
style="padding: 20px 0 0;">
<div class="mp-info-top" style="height: auto;">
<!-- <f4>小程序信息</f4> -->
<div class="default-header">
<p>太棒了!!!您已完善资料,客户可以使用您的门店专属小程序啦,去<a ng-click="jumpLink('活动列表','activityFlag')">营销管理</a>设置几个活动吸引客户回店吧,<a
ng-click="jumpLink('员工名片','activityFlag')">账户管理-员工名片</a>可为员工添加小程序名片,客户需要
保养、救援时即可快速联系服务顾问啦!</p>
<p>您也可以把小程序配置在您的公众号,再也不怕和客户失去联系!</p>
<p>如果您需要任何帮助,都可以联系我们的客服400-800-9060! </p>
</div>
<div class="row wo-row clearfix">
<div class="form-group col-lg-4 col-md-4">
<div class="m-l-50">
<div
style="width: 160px; height: 160px; border-radius: 100%; overflow: hidden; border: 1px solid #ccc; margin: 20px auto;">
<img src="{{defaultOptions.weappQrcode}}" style="width: 160px; height: 160px;" />
</div>
<p style="text-align: center;"><a ng-click="handleCodePic(true)">下载小程序码</a></p>
</div>
</div>
<div class="form-group clearfix row col-lg-8 col-md-8" style="margin-top: 55px;">
<div class="form-group">
<label class="control-label">AppID :</label>
<span ng-bind="defaultOptions.appId"></span>
</div>
<div class="form-group">
<label class="control-label">备用网页链接 :</label>
<span ng-bind="merchant_auth.wechatUpgradeTipPage"></span>
</div>
<div class="form-group">
<label class="control-label">小程序名称 :</label>
<span ng-bind="defaultOptions.appName"></span>
</div>
<div class="form-group">
<label class="control-label">小程序路径 :</label>
<span ng-bind="defaultOptions.appPath"></span>
</div>
</div>
</div>
</div>
<div class="" style="padding: 20px 20px; border: 1px solid #EEEEEE; border-width: 1px 0;">
<f4>小程序菜单配置教程</f4>
<div class="m-l-50">
<p>
使用微信公众号管理员账号登录
<a href="https://mp.weixin.qq.com/" target="_blank">https://mp.weixin.qq.com</a>
</p>
<p>(1)选择“小程序管理”,开通小程序功能,关联小程序;</p>
<p>(2)拷贝小程序AppID【<span ng-bind="defaultOptions.appId"></span>】到搜索框,搜索小程序;</p>
<p>(3)点击“下一步”,关联“<span ng-bind="defaultOptions.appName"></span>”小程序;</p>
<p>(4)选择“自定义菜单”,选择需要配置的菜单栏;</p>
<p>(5)选择菜单;</p>
<p>(6)选择“跳转小程序”;</p>
<p>(7)点击”选择小程序“,出现“选择小程序”弹出框;</p>
<p>(8)弹出框中选择第(2)步关联的小程序;</p>
<p>(9)点击“确定”;</p>
<p>(10)拷贝小程序路径【<span ng-bind="defaultOptions.appPath"></span>】,覆盖页面上自动填充的小程序路径;</p>
<p>(11)拷贝备用网页链接【<span ng-bind="merchant_auth.wechatUpgradeTipPage"></span>】;</p>
<p>(12)点击“保存并发布”,完成配置。</p>
</div>
<div class="mp-info-bottom" style="border: none;">
<img src="images/mp-setting-1.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-2.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-3.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-4.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-5.jpg" alt="" srcset="">
</div>
</div>
<div style="padding: 30px 20px; font-size: 14px;" ng-show="defaultOptions.openStatus===1 || defaultOptions.openStatus===2">
<span ng-if="active_task <= 4">如果您需要独立部署小程序,您也可以用点击链接单独申请小程序</span>
<span ng-if="active_task >= 5">
<img style="margin: -2px 5px 0 0;" src="images/wechatOpenOk.png" />
恭喜您已经开通了您的专属自由小程序,点击查看
</span>
<button ng-click="handlePrivate()" class="btn btn-primary" style="width: 90px; margin-left: 30px;">
{{active_task >= 5 ? '去查看' : '去申请'}}
</button>
</div>
</div>
</div>
</div>
<!-- 开通独立小程序 -->
<!-- 第二部分:列表部分 start -->
<div class="scan-auth" ng-show="!isDefault">
<div class="scan-item relative">
<div class="ibox-content">
<div class="ibox-title" style="border: none;">
<h5>小程序授权流程</h5>
</div>
<div class="m-l-40" id="tasks"></div>
</div>
</div>
<div class="scan-item relative">
<div class="ibox-content notice animated fadeInRight" ng-show="active_task===0">
<div class="content" style="margin-left: 15px; border-bottom: 1px solid #EEEEEE;">
<!-- <f4><i class="fa fa-info-circle" aria-hidden="true"></i>授权须知</f4> -->
<h4>授权须知</h4>
<!-- <ul class="warnning">
<li>1、授权的微信公众号必须与开通名片的小程序是同一主体;</li>
<li>2、授权的微信公众号必须是微信认证的服务号;</li>
<li>3、扫码授权后请耐心等待3秒,过程中不可提前关闭页面,跳转回企管后台点击【授权成功】</li>
</ul> -->
<!-- <f4>若出现以下提示则按照对应的办法尝试解决:</f4>
<ul class="questions">
<li>
<f5>1、提示:<span class="warnning">【此公众号没有开通开放平台权限,需登录微信公众号平台。】</span></f5>
<f6>解决办法:</f6>
<ul class="solution">
<li>① 登录 <a href="https://mp.weixin.qq.com/" target="_blank">微信公众平台</a>
在【设置】-【公众号设置】-【授权管理】找到绑定的公众号,点【查看平台详情】-【取消授权】即可取消解绑;</li>
<li>② 登录企管后台,在【微信公众号授权】页面点【立即授权】,进入公众平台帐号授权页扫码</li>
<li>③ 扫码后选择要授权的服务号,点【自定义权限】,勾选【开放平台账号管理权限】,点【授权】即可授权成功</li>
</ul>
</li>
<li>
<f5>2、提示:<span class="warnning">【公众号已绑定企业自主开通的开放平台,需企业登录开放平台解绑。】</span></f5>
<f6>解决办法:</f6>
<ul class="solution">
<li>方式一:在 <a href="https://mp.weixin.qq.com/" target="_blank">微信公众号</a>
【开发】-【基本配置】-【已绑定的微信开放平台帐号】进行解绑</li>
<li>方式二:在 <a href="https://open.weixin.qq.com/" target="_blank">微信开放平台</a>
【管理中心】-【公众账号】-【绑定公众号】找到已授权的公众号,点【查看】进入详情页,然后解绑</li>
</ul>
</li>
</ul>-->
<ul style="margin: 30px 0 30px 0;">
<li>1、授权的微信公众号必须与开通名片的小程序是同一主体;</li>
<li>2、授权的微信公众号必须是微信认证的服务号;</li>
<li>3、扫码授权后请耐心等待3秒,过程中不可提前关闭页面,跳转回企管后台点击【授权成功】;</li>
</ul>
</div>
<div class="content">
<h4 style="margin: 30px 0 25px;">若出现以下提示则按照对应的办法尝试解决:</h4>
<ul style="margin-bottom:48px;">
<li style="margin-bottom:30px;">
<p>1、当提示:【此公众号没有开通开放平台权限,需登录微信公众号平台】</p>
<p>① 登录 <a href="https://mp.weixin.qq.com/" target="_blank">微信公众平台</a>
在【设置】-【公众号设置】-【授权管理】找到绑定的公众号,点【查看平台详情】-【取消授权】即可取消解绑;</p>
<p>② 登录企管后台,在【微信公众号授权】页面点【立即授权】,进入公众平台帐号授权页扫码</p>
<p>③ 扫码后选择要授权的服务号,点【自定义权限】,勾选【开放平台账号管理权限】,点【授权】即可授权成功</p>
</li>
<li>
<p>2、当提示:【公众号已绑定企业自主开通的开放平台,需企业登录开放平台解绑。】</p>
<p>方式一:在 <a href="https://mp.weixin.qq.com/" target="_blank">微信公众号</a>
【开发】-【基本配置】-【已绑定的微信开放平台帐号】进行解绑</p>
<p>方式二:在 <a href="https://open.weixin.qq.com/" target="_blank">微信开放平台</a>
【管理中心】-【公众账号】-【绑定公众号】找到已授权的公众号,点【查看】进入详情页,然后解绑</p>
</li>
</ul>
<p class="m-l-40">
<button ng-click="notice.submit($event)" class="btn btn-primary">立即授权 <i class="fa fa-user-plus"
aria-hidden="true"></i> <i class="fa fa-spinner fa-spin"
ng-show="isSubmitting"></i></button>
</p>
</div>
</div>
<div class="ibox-content register animated fadeInRight" ng-show="active_task===1">
<div class="row wo-row">
<div class="form-group lh80">
<img ng-src="{{merchant_auth.authorizerInfo.headImg}}" class="avatar" alt="">
</div>
<div class="form-group lh30">
<label class="control-label">公众号名称:</label>
<span ng-bind="merchant_auth.authorizerInfo.nickname"></span>
</div>
<div class="form-group lh30">
<label class="control-label">主体信息:</label>
<span ng-bind="merchant_auth.authorizerInfo.principalName"></span>
</div>
<div class="form-group lh30">
<label class="control-label">微信认证:</label>
<i ng-class="merchant_auth.authorizerInfo.isVerify?'fa fa-check-circle':'fa fa-times-circle'"
aria-hidden='true'></i>
<span ng-bind="merchant_auth.authorizerInfo.isVerify?'已认证':'未认证'"></span>
</div>
<div class="form-group">
<button ng-click="register.submit()" class="btn btn-primary">申请授权登录
<!-- <i class="fa fa-plug" aria-hidden="true"></i> -->
<i ng-show="isSubmitting"></i></button>
</div>
<div class="form-group">
<span>对上述公众号主体开通小程序</span>
</div>
</div>
</div>
<div class="ibox-content complete-info animated fadeInRight" ng-show="active_task===2">
<!-- <f3>完善小程序资料</f3> -->
<form name="completeInfoForm" class="woForm" novalidate="">
<div class="row wo-row">
<div class="form-group col-lg-5 col-lg-offset-2 col-md-5 col-md-offset-2">
<label class="control-label required">小程序名称:</label>
<!-- <input type="text" required class="form-control" name="nickname"
ng-model="completeInfo.model.nickname"> -->
<div class="input-group">
<input type="text" class="form-control" name="nickname" placeholder="请输入15个汉字以内的名称(汉字、字母)"
ng-model="completeInfo.model.nickname" required ng-blur="completeInfo.checkName()">
<span class="input-group-addon">
<span
ng-class="{'glyphicon glyphicon-asterisk': !model.nickname && !completeInfo.checked,
'glyphicon glyphicon-ok': completeInfo.success && completeInfo.checked && !completeInfo.checking,
'glyphicon glyphicon-remove': !completeInfo.success && completeInfo.checked && !completeInfo.checking,
'glyphicon glyphicon-refresh': completeInfo.checking && completeInfo.checked}">
</span>
</span>
</div>
<!-- <a href="javascript:;" ng-click="completeInfo.checkName()" class="check-name">检测</a> -->
<!-- <i class="fa fa-check"
ng-show="completeInfo.success && completeInfo.checked && !completeInfo.checking"
aria-hidden="true"></i> -->
<!-- <small class="text-danger"
ng-show="completeInfoForm.nickname.$error.required && completeInfo.submitted">此项不能为空</small> -->
</div>
<div class="form-group col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 ">
<span class="info">
<!-- <i class="fa fa-spinner" ng-show="completeInfo.checking && completeInfo.checked"
aria-hidden="true"></i>
<i class="fa fa-times"
ng-show="!completeInfo.success && completeInfo.checked && !completeInfo.checking "
aria-hidden="true"></i> -->
<span class="text-danger form-text" ng-show="!completeInfo.success && completeInfo.checked"
ng-bind="completeInfo.errors.nickname"></span>
<span class="text-danger form-text" ng-show="namingOtherStuffShow"
ng-bind="namingTips"></span>
</span>
</div>
<div class="form-group col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 ">
<label class="control-label required">小程序图标:</label>
<input type="file" class="upload-img"
accept="image/bmp,image/BMP,image/jpeg,image/JPEG,image/jpg,image/JPG,image/gif,image/GIF,image/png,image/PNG"
model="headImageUrl" size="1" sizeError="请上传1M以内大小的图片"
onchange="angular.element(this).scope().completeInfo.beforeUpload(this)" />
<button class="btn btn-select-img" style="background-color: #fff; border: 1px solid #ccc;"><i
class="fa fa-upload" aria-hidden="true"></i> 上传文件
</button>
<span class="text-danger form-text text-tip" ng-show="completeInfo.errors.headImageUrl"
ng-bind="completeInfo.errors.headImageUrl"></span>
<input type="hidden" required name="headImageUrl" ng-model="completeInfo.model.headImageUrl">
<small class="text-danger"
ng-show="completeInfoForm.headImageUrl.$error.required && completeInfo.submitted">此项不能为空</small>
</div>
<div class="form-group col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 ">
<span>格式只支持:BMP、JPEG、JPG、GIF、PNG,大小不超过1M,建议图片尺寸144px*144px</span>
</div>
<!-- <div class="form-group col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 ">
<label class="control-label required">小程序图标:</label>
<a href="javascript:void(0)" class="btn btn-default"><i></i>上传文件</a>
<input type="file" class="form-control fl" style="width: 99px;"
accept="image/bmp,image/BMP,image/jpeg,image/JPEG,image/jpg,image/JPG,image/gif,image/GIF,image/png,image/PNG"
model="headImageUrl" size="2" sizeError="请上传2M以内大小的图片"
onchange="angular.element(this).scope().completeInfo.beforeUpload(this)" />
<span class="text-danger form-text text-tip" ng-show="completeInfo.errors.headImageUrl"
ng-bind="completeInfo.errors.headImageUrl"></span>
<input type="hidden" required name="headImageUrl" ng-model="completeInfo.model.headImageUrl">
<small class="text-danger"
ng-show="completeInfoForm.headImageUrl.$error.required && completeInfo.submitted">此项不能为空</small>
</div>
<div class="form-group col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 ">
<span>格式只支持:BMP、JPEG、JPG、GIF、PNG,大小不超过2M,建议图片尺寸144px*144px</span>
</div> -->
<div class="form-group col-lg-12 col-lg-offset-2 col-md-12 col-md-offset-2 img-view">
<div class="img-origin">
<img ng-src="{{completeInfo.model.headImageUrl ? completeInfo.model.headImageUrl : 'images/fileImg.png'}}"
alt="">
</div>
<div class="img-square">
<img ng-src="{{completeInfo.model.headImageUrl ? completeInfo.model.headImageUrl : 'images/fileImg.png'}}"
alt="">
</div>
<div class="img-circle">
<img ng-src="{{completeInfo.model.headImageUrl ? completeInfo.model.headImageUrl : 'images/fileImg.png'}}"
alt="">
</div>
</div>
<div class="form-group col-lg-12 col-lg-offset-2 col-md-12 col-md-offset-2 ">
<label class="control-label required" style="left:-168px;">组织机构代码证或营业执照:</label>
<input type="file" class="upload-img" accept="image/*" model="licenseUrl" size="2"
sizeError="请上传2M以内大小的图片"
onchange="angular.element(this).scope().completeInfo.beforeUpload(this)" />
<!-- <img class="license-img" ng-src="{{completeInfo.model.licenseUrl}}" alt="营业执照"> -->
<!-- <span class="add-img" ng-show="!completeInfo.model.licenseUrl">+</span> -->
<button class="btn btn-select-img" style="background-color: #fff; border: 1px solid #ccc;"><i
class="fa fa-upload" aria-hidden="true"></i> 选择图片
</button>
<span class="text-danger form-text text-tip" ng-show="completeInfo.errors.licenseUrl"
ng-bind="completeInfo.errors.licenseUrl"></span>
<input type="hidden" required name="licenseUrl" ng-model="completeInfo.model.licenseUrl">
<small class="text-danger"
ng-show="completeInfoForm.licenseUrl.$error.required && completeInfo.submitted">此项不能为空</small>
</div>
<div class="form-group col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 ">
<span>格式只支持:BMP、JPEG、JPG、GIF、PNG,大小不超过2M,建议图片尺寸144px*144px</span>
</div>
<div class="form-group col-lg-12 col-lg-offset-2 col-md-12 col-md-offset-2 img-view">
<div class="img-origin no-after">
<img ng-src="{{completeInfo.model.licenseUrl ? completeInfo.model.licenseUrl : 'images/fileImg.png'}}"
alt="">
</div>
</div>
<div ng-show="namingOtherStuffShow"
class="form-group col-lg-12 col-lg-offset-2 col-md-12 col-md-offset-2 ">
<label class="control-label" style="left:-168px;">商标授权文件或其他证明材料:</label>
<span
style="display: inline-block; width: 80%; padding: 6px 20px 0 0;">你申请的名称涉及特定企业字号、名称、简称等,请提供《商标注册证》、商标授权文件或其他补充材料,以证明你有权合理使用该帐号名称,否则可能审核不通过。如:深圳xxx奔驰店,则需提供奔驰的厂家授权书。</span>
</div>
<div ng-show="namingOtherStuffShow"
class="form-group license col-lg-12 col-lg-offset-2 col-md-12 col-md-offset-2">
<div class="license" style="display: inline-block; padding-left: 0;">
<input type="file" class="upload-img" accept="image/*" model="namingOtherStuffFirstUrl"
size="5" sizeError="请上传5M以内大小的图片"
onchange="angular.element(this).scope().completeInfo.beforeUpload(this)" />
<img class="license-img"
ng-src="{{completeInfo.model.namingOtherStuffFirstUrl ? completeInfo.model.namingOtherStuffFirstUrl : 'images/fileImg.png'}}"
alt="其他证明材料一">
<!-- <span class="add-img" ng-show="!completeInfo.model.namingOtherStuffFirstUrl"
style="left: 77px;">+</span> -->
<span class="text-danger form-text text-tip"
ng-show="completeInfo.errors.namingOtherStuffFirstUrl"
ng-bind="completeInfo.errors.namingOtherStuffFirstUrl"></span>
<input type="hidden" name="namingOtherStuffFirstUrl"
ng-model="completeInfo.model.namingOtherStuffFirstUrl">
</div>
<div class="license" style="display: inline-block; margin-left: 30px;">
<input type="file" class="upload-img" accept="image/*" model="namingOtherStuffSecondUrl"
size="5" sizeError="请上传5M以内大小的图片"
onchange="angular.element(this).scope().completeInfo.beforeUpload(this)" />
<img class="license-img"
ng-src="{{completeInfo.model.namingOtherStuffSecondUrl ? completeInfo.model.namingOtherStuffSecondUrl : 'images/fileImg.png'}}"
alt="其他证明材料二">
<!-- <span class="add-img" ng-show="!completeInfo.model.namingOtherStuffSecondUrl"
style="left: 77px;">+</span> -->
<span class="text-danger form-text text-tip"
ng-show="completeInfo.errors.namingOtherStuffSecondUrl"
ng-bind="completeInfo.errors.namingOtherStuffSecondUrl"></span>
<input type="hidden" name="namingOtherStuffSecondUrl"
ng-model="completeInfo.model.namingOtherStuffSecondUrl">
</div>
</div>
<div class="form-group submit col-lg-4 col-lg-offset-2 col-md-4 col-md-offset-2">
<button ng-disabled="completeInfoForm.$invalid"
ng-click="completeInfo.submit(completeInfoForm.$invalid)" class="btn btn-primary">提交审核
<!-- <i class="fa fa-gavel" aria-hidden="true"></i> -->
<i ng-show="isSubmitting"></i></button>
</div>
</div>
</form>
</div>
<div class="ibox-content step4 animated fadeInRight" ng-show="active_task===3">
<div class="row wo-row">
<div class="form-group">
<div style="text-align: center; margin: 44px 0;">
<!-- <p class="fa fa-clock-o" style="font-size: 60px; color:#00A479;" aria-hidden="true"></p> -->
<img src="images/waiting.png">
<p style="font-size: 18px; margin: 28px 0 10px;">提交成功,等待资料审核</p>
<p class="tip">等待微信平台审核,需要3个工作日,请耐心等待。</p>
</div>
</div>
</div>
</div>
<div class="ibox-content merchant animated fadeInRight" ng-show="active_task===4">
<!-- <f3>完善资料</f3> -->
<form name="merchantForm" id="test" class="woForm" novalidate="">
<div class="row wo-row">
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2">商户名称:</label>
<span class="col-lg-8 col-md-8">
<input type="text" required name="name" class="form-control" ng-model="merchant.model.name"
maxlength="50" placeholder="如:深圳尚城福特4S店">
</span>
<!-- <div class="m-t-xs" ng-show="merchantForm.name.$invalid && merchant.submitted"> -->
<small class="text-danger"
ng-show="merchantForm.name.$error.required && merchant.submitted">此项不能为空</small>
<!-- </div> -->
</div>
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2">商户简称:</label>
<span class="col-lg-8 col-md-8">
<input type="text" required class="form-control" name="shortName" maxlength="25"
ng-model="merchant.model.shortName" placeholder="商户对外显示的名称,如:尚城福特">
</span>
<!-- <div class="m-t-xs" ng-show="merchantForm.name.$invalid && merchant.submitted"> -->
<small class="text-danger"
ng-show="merchantForm.shortName.$error.required && merchant.submitted">此项不能为空</small>
<!-- </div> -->
</div>
<div class="form-group row clearfix">
<label class="control-label required m-r-15 merchant-form-label col-lg-2 col-md-2">商户地址:</label>
<!-- <input type="text" required class="form-control" name="address"
ng-model="merchant.model.address" readonly placeholder=""
ng-click="merchant.openChooseAddress()">
<i class="fa fa-map-marker" aria-hidden="true"
style="position: absolute;top: 27px;right: 20px;font-size: 20px;"></i> -->
<div class="input-group col-lg-8 col-md-8">
<input type="text" class="form-control" name="address" ng-model="merchant.model.address"
readonly placeholder="点击搜索定位" ng-click="merchant.openChooseAddress()">
<span class="input-group-addon">
<span class="glyphicon glyphicon-map-marker"></span>
</span>
</div>
<span class="my-tip col-lg-offset-2 col-md-offset-2" style="padding-left: 15px;">
<i class="fa fa-info-circle" aria-hidden="true"></i>
客户将根据此地址前往商户,请务必填写真实准确的地址。
</span>
<small class="text-danger"
ng-show="merchantForm.address.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2 ">商户电话:</label>
<span class="col-lg-8 col-md-8">
<input type="text" required class="form-control" name="telphone"
ng-model="merchant.model.telphone">
</span>
<small class="text-danger"
ng-show="merchantForm.telphone.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group row clearfix">
<label class="control-label required m-r-15 merchant-form-label col-lg-2 col-md-2">营业时间:</label>
<!-- <input type="text" required class="form-control" name="businessHours" ng-model="merchant.model.businessHours"> -->
<div class="row clock-row">
<div class="input-group clockpicker col-lg-3 col-md-3">
<input type="text" class="form-control" readonly required name="openTime"
ng-model="merchant.model.openTime">
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
<!-- <small class="text-danger"
ng-show="merchantForm.openTime.$error.required && merchant.submitted">此项不能为空</small> -->
-
<div class="input-group clockpicker col-lg-3 col-md-3">
<input type="text" class="form-control" readonly required name="closeTime"
ng-model="merchant.model.closeTime">
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
<!-- <small class="text-danger"
ng-show="merchantForm.closeTime.$error.required && merchant.submitted">此项不能为空</small> -->
</div>
<div ng-show="timeShowError">
<small class="text-danger">请输入正确的营业时间</small>
</div>
</div>
<!-- <div class="form-group col-lg-6 col-md-6 col-lg-offset-1 col-md-offset-1 carbrands" id="test1">
<label class="control-label required">主营品牌:</label>
<input type="hidden" required name="carBrandList" ng-model="merchant.model.carBrandList[0]"> -->
<!-- <div ng-class="{'logo-wrap-no-brand': !merchant.model.carBrandList.length, 'logo-wrap': merchant.model.carBrandList.length'"> -->
<!-- <div class="logo-wrap">
<img ng-src="{{item.brandLogo}}" alt="" ng-repeat="item in merchant.model.carBrandList" /> -->
<!-- <span class="brand" ng-repeat="item in merchant.model.carBrandList">{{item.brandName}}</span> -->
<!-- <a href="javascript:;" ng-click="merchant.openChooseBrands()" class="check-name">编辑</a>
</div>
<small class="text-danger"
ng-show="merchantForm.carBrandList.$error.required && merchant.submitted">此项不能为空</small>
</div> -->
<div class="form-group row clearfix" id="test1">
<label class="control-label required merchant-form-label col-lg-2 col-md-2 ">主营品牌:</label>
<span class="col-lg-10 col-md-10 " style="margin-top: 5px;">
<input type="hidden" required name="carBrandList" ng-model="merchant.model.carBrandList[0]"
class="carbrands">
<!-- <div ng-class="{'logo-wrap-no-brand': !merchant.model.carBrandList.length, 'logo-wrap': merchant.model.carBrandList.length'"> -->
<div class="logo-wrap">
<img ng-src="{{item.brandLogo}}" alt="" style="height: 36px;"
ng-repeat="item in merchant.model.carBrandList" />
<!-- <span class="brand" ng-repeat="item in merchant.model.carBrandList">{{item.brandName}}</span> -->
<a href="javascript:;" ng-click="merchant.openChooseBrands()" class="check-name">编辑</a>
</div>
</span>
<small class="text-danger"
ng-show="merchantForm.carBrandList.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group row clearfix">
<label class="control-label required merchant-form-label col-lg-2 col-md-2 ">主营业务:</label>
<input type="hidden" required name="mainBusiness" ng-model="merchant.model.mainBusiness[0]">
<div class="col-lg-10 col-md-10 ">
<span class="service"
ng-repeat="item in merchant.model.mainBusiness track by $index">{{item}}</span>
<a href="javascript:;" ng-click="merchant.openChooseServices()" class="check-name">编辑</a>
</div>
<small class="text-danger"
ng-show="merchantForm.mainBusiness.$error.required && merchant.submitted">此项不能为空</small>
</div>
<div class="form-group submit">
<label class="control-label merchant-form-label col-lg-2 col-md-2 "></label>
<span class="col-lg-2 col-md-2 " style="padding-left: 3px;">
<button ng-disabled="merchantForm.$invalid"
ng-click="merchant.submit(merchantForm.$invalid, false)" class="btn btn-primary"
style="width: 100%;">提交资料
<!-- <i class="fa fa-gavel" aria-hidden="true"></i> -->
<i ng-show="isSubmitting"></i>
</button>
</span>
</div>
</div>
</form>
</div>
<div class="ibox-content mp-info animated fadeInRight" ng-show="active_task===5">
<div class="mp-info-top" style="height: auto;">
<f4>小程序信息</f4>
<div class="row wo-row clearfix">
<div class="form-group col-lg-3 col-md-3 ">
<div class="m-l-50">
<div
style="width: 100px; height: 100px; border-radius: 100%; overflow: hidden; border: 1px solid #ccc;">
<img src="{{merchant_auth.headImageUrl}}" style="width: 100px; height: 100px;" />
</div>
<p><a ng-click="handleCodePic()" style="margin-left: 10px;">下载小程序码</a></p>
</div>
</div>
<div class="form-group clearfix row col-lg-9 col-md-9" style="margin-top: 20px;">
<div class="form-group col-lg-4 col-md-4">
<label class="control-label">AppID :</label>
<span ng-bind="merchant_auth.weAppId"></span>
</div>
<div class="form-group col-lg-8 col-md-8">
<label class="control-label">备用网页链接 :</label>
<span ng-bind="merchant_auth.wechatUpgradeTipPage"></span>
</div>
<div class="form-group col-lg-4 col-md-4">
<label class="control-label">小程序名称 :</label>
<span ng-bind="merchant_auth.nickname"></span>
</div>
<div class="form-group col-lg-4 col-md-4">
<label class="control-label">小程序路径 :</label>
<span ng-bind="merchant_auth.weAppPath"></span>
</div>
<div class="form-group col-lg-8 col-md-8">
<label class="control-label">小程序主体 :</label>
<span ng-bind="merchant_auth.principalName"></span>
</div>
</div>
</div>
</div>
<div class="" style="padding-top: 10px; border-top: 1px solid #ccc;">
<f4>小程序菜单配置教程</f4>
<div class="m-l-50">
<p>
使用微信公众号管理员账号登录
<a href="https://mp.weixin.qq.com/" target="_blank">https://mp.weixin.qq.com</a>
</p>
<p>(1)选择“小程序管理”,开通小程序功能,关联小程序;</p>
<p>(2)拷贝小程序AppID【<span ng-bind="merchant_auth.weAppId"></span>】到搜索框,搜索小程序;</p>
<p>(3)点击“下一步”,关联小程序;</p>
<p>(4)选择“自定义菜单”,选择需要配置的菜单栏;</p>
<p>(5)选择菜单;</p>
<p>(6)选择“跳转小程序”;</p>
<p>(7)点击”选择小程序“,出现“选择小程序”弹出框;</p>
<p>(8)弹出框中选择第(2)步关联的小程序;</p>
<p>(9)点击“确定”;</p>
<p>(10)拷贝小程序路径【<span ng-bind="merchant_auth.weAppPath"></span>】,覆盖页面上自动填充的小程序路径;</p>
<p>(11)拷贝备用网页链接【<span ng-bind="merchant_auth.wechatUpgradeTipPage"></span>】;</p>
<p>(12)点击“保存并发布”,完成配置。</p>
</div>
<div class="mp-info-bottom" style="border: none;">
<img src="images/mp-setting-1.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-2.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-3.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-4.jpg" alt="" srcset="">
<br>
<br>
<img src="images/mp-setting-5.jpg" alt="" srcset="">
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$('.clockpicker').clockpicker();
})
</script>
<style>
.default .merchant .default-header {
height: 80px;
line-height: 80px;
}
.default .mp-info .default-header p {
line-height: 30px;
}
.default .default-header {
padding: 0 20px;
border-bottom: 1px solid #EEEEEE;
}
.default .woForm {
padding: 20px 0px 20px 50px;
border-bottom: 1px solid #EEEEEE;
}
.register .wo-row {
text-align: center;
}
.register .avatar {
border-radius: 100%;
border: 1px solid #999;
}
.register .fa-check-circle {
font-size: 16px;
color: #00A479;
}
.register .fa-times-circle {
font-size: 16px;
color: red;
}
.merchant .carbrands {
margin-top: 35px;
margin-bottom: -60px;
}
.merchant .carbrands img {
height: 100px;
width: 100px;
border: 1px solid #e5e6e7;
border-radius: 50px;
}
/* .merchant .carbrands .logo-wrap-no-brand{
margin-left: 70px;
margin-top: -24px
} */
.merchant .carbrands .logo-wrap {
transform: translate3d(75px, -66px, 0);
line-height: 8;
min-height: 100px;
}
.merchant .merchant-form-label {
text-align: right;
margin: 5px 0 0;
}
.clock-row {
display: flex;
justify-content: left;
align-items: center;
margin-left: 0px;
}
.clock-row .clockpicker:nth-child(1) {
margin-right: 35px
}
.clock-row .clockpicker:nth-child(2) {
margin-left: 35px
}
.mp-info-top {
height: 116px;
}
.mp-info .m-l-50 {
margin-left: 50px;
}
.scan-item .m-l-40 {
margin-left: 40px;
}
.scan-item .lh30 {
line-height: 30px;
}
.scan-item .btn-primary {
background-color: #00A479;
}
.scan-item .img-origin.no-after:after {
content: '';
}
.merchant .m-r-15 {
margin-right: 15px;
}
.complete-info a i {
display: inline-block;
background: url('images/icon_upload.png') no-repeat;
width: 13.2px;
height: 13.2px;
background-size: 100%;
vertical-align: middle;
margin-right: 4px;
}
</style>
<!-- <div class="my-success" id="my-success">
<i class="fa fa-check-circle" aria-hidden="true"></i>
<div>提交成功</div>
</div> -->
<!-- $('#my-success').fadeIn()
$timeout(() => {
$('#my-success').fadeOut()
}, 3 * 1000) -->