Showing
8 changed files
with
256 additions
and
4 deletions
@@ -389,7 +389,98 @@ | @@ -389,7 +389,98 @@ | ||
389 | </div> | 389 | </div> |
390 | </div> | 390 | </div> |
391 | </div> | 391 | </div> |
392 | + | ||
393 | + <div class="receipt-info hide"> | ||
394 | + <div class="receipt-mask"> | ||
395 | + </div> | ||
396 | + | ||
397 | + <div class="receipt-info-container"> | ||
398 | + <div class="receipt-title">发票信息 | ||
399 | + </div> | ||
400 | + | ||
401 | + <div class="receipt-type receipt-margin"> | ||
402 | + <span>电子发票</span> | ||
403 | + <span>纸质发票</span> | ||
404 | + </div> | ||
405 | + | ||
406 | + <div class="receipt-container receipt-margin"> | ||
407 | + <div class="e-receipt-desc"> | ||
408 | + </div> | ||
409 | + | ||
410 | + <div class="invoice-list invoice-title"> | ||
411 | + <span class="invoice-star">*</span> | ||
412 | + <span class="invoice-list-type">发票抬头</span> | ||
413 | + <div class="invoice-line first-line"> | ||
414 | + <input checked="true" type="radio" value="1" name="title" /> | ||
415 | + <label>个人</label> | ||
416 | + <input type="radio" value="2" name="title" /> | ||
417 | + <label>单位</label> | ||
418 | + </div> | ||
419 | + <div class="invoice-line second-line input-line hide"> | ||
420 | + <input id="input-organization-name" type="text" placeholder="请填写单位名称"/> | ||
421 | + <i class="enpty-input iconfont"> 请填写发票抬头</i> | ||
422 | + </div> | ||
423 | + </div> | ||
424 | + | ||
425 | + <div class="invoice-list invoice-content"> | ||
426 | + <span class="invoice-star">*</span> | ||
427 | + <span class="invoice-list-type">发票内容</span> | ||
428 | + <div class="invoice-line first-line"> | ||
429 | + <div class="blind"> | ||
430 | + <input checked="true" type="radio" value="1" name="content" /> | ||
431 | + <label>服饰</label> | ||
432 | + </div> | ||
433 | + | ||
434 | + <div class="blind"> | ||
435 | + <input type="radio" value="2" name="content" /> | ||
436 | + <label>图书</label> | ||
437 | + </div> | ||
438 | + | ||
439 | + <div class="blind"> | ||
440 | + <input type="radio" value="3" name="content" /> | ||
441 | + <label>配件</label> | ||
442 | + </div> | ||
443 | + | ||
444 | + <div class="blind"> | ||
445 | + <input type="radio" value="4" name="content" /> | ||
446 | + <label>日用品</label> | ||
447 | + </div class="blind"> | ||
448 | + | ||
449 | + <div class="blind"> | ||
450 | + <input type="radio" value="5" name="content" /> | ||
451 | + <label>办公用品</label> | ||
452 | + </div> | ||
453 | + | ||
454 | + <div class="blind"> | ||
455 | + <input type="radio" value="6" name="content" /> | ||
456 | + <label>体育用品</label> | ||
457 | + </div> | ||
458 | + | ||
459 | + <div class="blind"> | ||
460 | + <input type="radio" value="7" name="content" /> | ||
461 | + <label>数码产品</label> | ||
462 | + </div> | ||
463 | + </div> | ||
464 | + </div> | ||
465 | + | ||
466 | + <div class="invoice-list invoice-phone hide"> | ||
467 | + <span class="invoice-star">*</span> | ||
468 | + <span class="invoice-list-type">收票人手机</span> | ||
469 | + <div class="invoice-line first-line input-line"> | ||
470 | + <input id="input-mobile" type="text"/> | ||
471 | + <i class="enpty-input iconfont"> 请填写手机号码</i> | ||
472 | + </div> | ||
473 | + </div> | ||
474 | + </div> | ||
475 | + | ||
476 | + <div class="receipt-footer"> | ||
477 | + <div class="save-receipt highlight">保存发票信息</div> | ||
478 | + <div class="cancel-receipt normal">取消</div> | ||
479 | + </div> | ||
480 | + </div> | ||
481 | + </div> | ||
392 | {{/ orderEnsure}} | 482 | {{/ orderEnsure}} |
393 | <div class="loading"><span></span>请稍后...</div> | 483 | <div class="loading"><span></span>请稍后...</div> |
484 | + | ||
394 | </div> | 485 | </div> |
395 | {{> layout/footer}} | 486 | {{> layout/footer}} |
web-static/img/order/invoice-desc.png
0 → 100644
8.68 KB
web-static/img/order/invoice-star.png
0 → 100644
1.13 KB
@@ -4,7 +4,10 @@ | @@ -4,7 +4,10 @@ | ||
4 | */ | 4 | */ |
5 | 5 | ||
6 | var $ = require('yoho.jquery'), | 6 | var $ = require('yoho.jquery'), |
7 | - $invoiceCheck = $('.invoice'); | 7 | + $invoiceCheck = $('.invoice'), |
8 | + $receiptInfo = $('.receipt-info'), | ||
9 | + $receiptInfoSaveBtn = $('.receipt-info .save-receipt'), | ||
10 | + $receiptInfoCancelBtn = $('.receipt-info .cancel-receipt'); | ||
8 | 11 | ||
9 | var address = require('./address'); | 12 | var address = require('./address'); |
10 | 13 | ||
@@ -864,8 +867,14 @@ $invoiceCheck.click(function(){ | @@ -864,8 +867,14 @@ $invoiceCheck.click(function(){ | ||
864 | 867 | ||
865 | if ($invoiceCheck.attr('checked')) { | 868 | if ($invoiceCheck.attr('checked')) { |
866 | $invoiceCheck.addClass('active'); | 869 | $invoiceCheck.addClass('active'); |
867 | - alert('开发票'); | 870 | + $receiptInfo.removeClass('hide'); |
868 | } | 871 | } |
869 | - | 872 | +}); |
873 | + | ||
874 | +$receiptInfoSaveBtn.click(function(){ | ||
875 | + $receiptInfo.addClass('hide'); | ||
876 | +}); | ||
870 | 877 | ||
871 | -}) | 878 | +$receiptInfoCancelBtn.click(function(){ |
879 | + $receiptInfo.addClass('hide'); | ||
880 | +}); |
@@ -603,6 +603,158 @@ | @@ -603,6 +603,158 @@ | ||
603 | } | 603 | } |
604 | } | 604 | } |
605 | } | 605 | } |
606 | + | ||
607 | + .receipt-info { | ||
608 | + position: fixed; | ||
609 | + top: 0; | ||
610 | + left: 0; | ||
611 | + width: 100%; | ||
612 | + height: 100%!important; | ||
613 | + | ||
614 | + .receipt-mask { | ||
615 | + | ||
616 | + width: 100%; | ||
617 | + height: 100%; | ||
618 | + overflow: hidden; | ||
619 | + background-color: #000; | ||
620 | + opacity: 0.4; | ||
621 | + z-index: 1000; | ||
622 | + } | ||
623 | + | ||
624 | + .receipt-info-container { | ||
625 | + position: fixed; | ||
626 | + top: 200px; | ||
627 | + left: 0; | ||
628 | + right: 0; | ||
629 | + width: 700px; | ||
630 | + height: auto; | ||
631 | + margin-left: auto; | ||
632 | + margin-right: auto; | ||
633 | + background-color: #fff; | ||
634 | + border: 3px solid #444; | ||
635 | + } | ||
636 | + | ||
637 | + .receipt-title { | ||
638 | + margin: 42px 55px 0; | ||
639 | + text-align: left; | ||
640 | + font-size: 16px; | ||
641 | + padding-bottom: 20px; | ||
642 | + border-bottom: 3px solid #888; | ||
643 | + } | ||
644 | + | ||
645 | + .receipt-type { | ||
646 | + margin: 17px 0; | ||
647 | + | ||
648 | + span { | ||
649 | + margin-right: 17px; | ||
650 | + border: 1px solid red; | ||
651 | + padding: 5px 15px; | ||
652 | + font-size: 14px; | ||
653 | + } | ||
654 | + } | ||
655 | + | ||
656 | + .e-receipt-desc { | ||
657 | + background: url(/order/invoice-desc.png); | ||
658 | + width: 100%; | ||
659 | + height: 108px; | ||
660 | + } | ||
661 | + .receipt-margin { | ||
662 | + margin-left: 55px; | ||
663 | + margin-right: 55px; | ||
664 | + } | ||
665 | + | ||
666 | + .invoice-list { | ||
667 | + position: relative; | ||
668 | + margin-top: 17px; | ||
669 | + height: 70px; | ||
670 | + | ||
671 | + .invoice-star { | ||
672 | + position: absolute; | ||
673 | + top: 0; | ||
674 | + left: 0; | ||
675 | + width: 12px; | ||
676 | + height: 20px; | ||
677 | + line-height: 20px; | ||
678 | + font-size: 20px; | ||
679 | + color: #d0021b; | ||
680 | + text-align: center; | ||
681 | + } | ||
682 | + .invoice-list-type { | ||
683 | + position: absolute; | ||
684 | + top: 0; | ||
685 | + left: 15px; | ||
686 | + width: 80px; | ||
687 | + height: 20px; | ||
688 | + line-height: 20px; | ||
689 | + font-size: 14px | ||
690 | + } | ||
691 | + | ||
692 | + .invoice-line { | ||
693 | + position: absolute; | ||
694 | + left: 120px; | ||
695 | + width: 500px; | ||
696 | + height: 30px; | ||
697 | + } | ||
698 | + | ||
699 | + .first-line { | ||
700 | + top: 0; | ||
701 | + } | ||
702 | + | ||
703 | + .second-line { | ||
704 | + top: 30px; | ||
705 | + } | ||
706 | + | ||
707 | + .input-line { | ||
708 | + height: 40px; | ||
709 | + } | ||
710 | + | ||
711 | + .invoice-line label { | ||
712 | + width: 90px; | ||
713 | + display: inline-block; | ||
714 | + } | ||
715 | + | ||
716 | + .invoice-line i { | ||
717 | + margin-left: 20px; | ||
718 | + } | ||
719 | + } | ||
720 | + .invoice-phone { | ||
721 | + height: 40px; | ||
722 | + } | ||
723 | + | ||
724 | + .blind { | ||
725 | + display: inline-block; | ||
726 | + margin-top: 5px; | ||
727 | + margin-bottom: 5px; | ||
728 | + } | ||
729 | + | ||
730 | + .receipt-footer { | ||
731 | + margin-left: 160px; | ||
732 | + | ||
733 | + div { | ||
734 | + display: inline-block; | ||
735 | + width: 140px; | ||
736 | + height: 40px; | ||
737 | + line-height: 40px; | ||
738 | + text-align: center; | ||
739 | + margin: 30px 20px 35px 20px; | ||
740 | + } | ||
741 | + | ||
742 | + .highlight { | ||
743 | + border: 1px solid #3a3a3a; | ||
744 | + background: #3a3a3a; | ||
745 | + color: #fff; | ||
746 | + | ||
747 | + } | ||
748 | + .normal { | ||
749 | + border: 1px solid #b0b0b0; | ||
750 | + background: #fff; | ||
751 | + color: #444; | ||
752 | + } | ||
753 | + } | ||
754 | + .enpty-input { | ||
755 | + color: red; | ||
756 | + } | ||
757 | + } | ||
606 | } | 758 | } |
607 | .freebie-tag{ | 759 | .freebie-tag{ |
608 | background:#9c3; | 760 | background:#9c3; |
-
Please register or login to post a comment