Authored by 王水玲

gulp ge

@@ -13630,17 +13630,17 @@ var $invoice = $('.invoice'), @@ -13630,17 +13630,17 @@ var $invoice = $('.invoice'),
13630 13630
13631 var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info')); 13631 var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
13632 var invoiceCont = { 13632 var invoiceCont = {
13633 - 1: '服装',  
13634 - 2: '图书',  
13635 - 3: '配件',  
13636 - 4: '日用品',  
13637 - 5: '办公用品', 13633 + 7: '服装',
  13634 + 1: '图书',
  13635 + 9: '配件',
  13636 + 11: '日用品',
  13637 + 3: '办公用品',
13638 6: '体育用品', 13638 6: '体育用品',
13639 - 7: '数码产品' 13639 + 10: '数码产品'
13640 }, 13640 },
13641 invoicesType = { 13641 invoicesType = {
13642 1: '纸质', 13642 1: '纸质',
13643 - 2: '电子', 13643 + 2: '电子'
13644 }; 13644 };
13645 13645
13646 require("js/common"); 13646 require("js/common");
@@ -13728,7 +13728,7 @@ $invoice.on('touchend', '.checkbox', function() { @@ -13728,7 +13728,7 @@ $invoice.on('touchend', '.checkbox', function() {
13728 if ($this.hasClass('icon-cb-radio')) { 13728 if ($this.hasClass('icon-cb-radio')) {
13729 $invoice.addClass('focus'); 13729 $invoice.addClass('focus');
13730 orderInfo('invoiceText', ''); 13730 orderInfo('invoiceText', '');
13731 - orderInfo('invoiceType', '1'); 13731 + orderInfo('invoiceType', '7');
13732 orderInfo('receiverMobile', $('.user-mobile').val()); 13732 orderInfo('receiverMobile', $('.user-mobile').val());
13733 orderInfo('invoicesType', '2'); 13733 orderInfo('invoicesType', '2');
13734 orderInfo('invoiceTitle', '个人'); 13734 orderInfo('invoiceTitle', '个人');
@@ -14091,21 +14091,6 @@ var $invoiceNotice = $('.invoice-notice'), @@ -14091,21 +14091,6 @@ var $invoiceNotice = $('.invoice-notice'),
14091 var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/, 14091 var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/,
14092 linkUrl = '/cart/index/orderEnsure?cartType=ordinary'; 14092 linkUrl = '/cart/index/orderEnsure?cartType=ordinary';
14093 14093
14094 -// var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));  
14095 -// var invoiceCont = {  
14096 -// 1: '服装',  
14097 -// 2: '图书',  
14098 -// 3: '配件',  
14099 -// 4: '日用品',  
14100 -// 5: '办公用品',  
14101 -// 6: '体育用品',  
14102 -// 7: '数码产品'  
14103 -// },  
14104 -// invoicesType = {  
14105 -// 1: '电子',  
14106 -// 2: '纸质'  
14107 -// };  
14108 -  
14109 require("js/common"); 14094 require("js/common");
14110 14095
14111 if (window.getUid() !== orderInfo('uid')) { 14096 if (window.getUid() !== orderInfo('uid')) {
@@ -14126,30 +14111,6 @@ function chooseAction(pDom, dom) { @@ -14126,30 +14111,6 @@ function chooseAction(pDom, dom) {
14126 } 14111 }
14127 } 14112 }
14128 14113
14129 -// 初始化页面数据  
14130 -// function initData() {  
14131 -// if (orderCont.invoicesType !== null) {  
14132 -// $invoiceType.find('span').each(function() {  
14133 -// if (parseInt($(this).data('id')) === orderCont.invoicesType) {  
14134 -// $(this).addClass('on');  
14135 -// } else {  
14136 -// $(this).removeClass('on');  
14137 -// }  
14138 -// });  
14139 -// }  
14140 -  
14141 -// if (orderCont.invoiceType !== null) {  
14142 -// chooseAction($invoiceCont, $invoiceCont.find('span').eq(orderCont.invoiceType-1))  
14143 -// // $invoiceCont.find('span').each(function() {  
14144 -// // if (parseInt($(this).data('id')) === orderCont.invoiceType) {  
14145 -// // $(this).addClass('on');  
14146 -// // } else {  
14147 -// // $(this).removeClass('on');  
14148 -// // }  
14149 -// // });  
14150 -// }  
14151 -// }  
14152 -  
14153 // 确认表单事件 14114 // 确认表单事件
14154 function confirmAction() { 14115 function confirmAction() {
14155 var type = $invoiceType.find('.on').data('id'), 14116 var type = $invoiceType.find('.on').data('id'),
@@ -14167,6 +14128,10 @@ function confirmAction() { @@ -14167,6 +14128,10 @@ function confirmAction() {
14167 tip.show('请填写发票抬头'); 14128 tip.show('请填写发票抬头');
14168 $company.focus(); 14129 $company.focus();
14169 return false; 14130 return false;
  14131 + } else if (title === '单位' && company.length > 30) {
  14132 + tip.show('发票抬头不得超过30个汉字');
  14133 + $company.focus();
  14134 + return false;
14170 } else { 14135 } else {
14171 dialog.showDialog({ 14136 dialog.showDialog({
14172 dialogText: '确认保存修改内容?', 14137 dialogText: '确认保存修改内容?',
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.