Authored by cailing

发票类型修改

... ... @@ -34,8 +34,8 @@ var invoiceCont = {
7: '数码产品'
},
invoicesType = {
1: '电子',
2: '纸质'
1: '纸质',
2: '电子',
};
require('../common');
... ... @@ -125,7 +125,7 @@ $invoice.on('touchend', '.checkbox', function() {
orderInfo('invoiceText', '');
orderInfo('invoiceType', '1');
orderInfo('receiverMobile', $('.user-mobile').val());
orderInfo('invoicesType', '1');
orderInfo('invoicesType', '2');
orderInfo('invoiceTitle', '个人');
}
if ($this.hasClass('icon-radio')) {
... ...
... ... @@ -370,7 +370,7 @@ class IndexController extends AbstractAction
$userData = UserData::userData($uid);
$mobile = $userMobile; //发票人手机
$invoiceType = '1'; //发票类型ID
$invoices_type = '1'; //发票类型 /**纸质 1 ,电子 2 */
$invoices_type = '2'; //发票类型 /**纸质 1 ,电子 2 */
$invoice_Top = '个人';
}
... ... @@ -383,14 +383,14 @@ class IndexController extends AbstractAction
'companyName' => $invoices_title,
'invoicesType' => array(
array(
'id' => '1',
'id' => '2',
'type' => '电子发票',
'choosed' => empty($invoices_type) || $invoices_type == 1 ? true : false,
'choosed' => empty($invoices_type) || $invoices_type == 2 ? true : false,
),
array(
'id' => '2',
'id' => '1',
'type' => '纸质发票',
'choosed' => $invoices_type == 2 ? true : false,
'choosed' => $invoices_type == 1 ? true : false,
)
),
'invoiceTitle' => array(
... ...