Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
9 years ago
Commit
9a191d6178b5202a11087020f9591fc6c4150e7f
1 parent
93e00c8a
发票还原
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
53 deletions
static/js/cart/order-ensure.js
static/sass/cart/_order-ensure.css
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
static/js/cart/order-ensure.js
View file @
9a191d6
...
...
@@ -23,21 +23,6 @@ var $invoice = $('.invoice'),
dispatchInfo
,
total
;
var
orderCont
=
window
.
cookie
(
'order-info'
)
&&
JSON
.
parse
(
window
.
cookie
(
'order-info'
));
var
invoiceCont
=
{
7
:
'服装'
,
1
:
'图书'
,
9
:
'配件'
,
11
:
'日用品'
,
3
:
'办公用品'
,
6
:
'体育用品'
,
10
:
'数码产品'
},
invoicesType
=
{
1
:
'纸质'
,
2
:
'电子'
};
require
(
'../common'
);
lazyLoad
();
...
...
@@ -122,19 +107,9 @@ $invoice.on('touchend', '.checkbox', function() {
if
(
$this
.
hasClass
(
'icon-cb-radio'
))
{
$invoice
.
addClass
(
'focus'
);
orderInfo
(
'invoiceText'
,
''
);
orderInfo
(
'invoiceType'
,
'7'
);
orderInfo
(
'receiverMobile'
,
$
(
'.user-mobile'
).
val
());
orderInfo
(
'invoicesType'
,
'2'
);
orderInfo
(
'invoiceTitle'
,
'个人'
);
}
if
(
$this
.
hasClass
(
'icon-radio'
))
{
$invoice
.
removeClass
(
'focus'
);
orderInfo
(
'invoiceText'
,
null
);
orderInfo
(
'invoiceType'
,
null
);
orderInfo
(
'receiverMobile'
,
null
);
orderInfo
(
'invoicesType'
,
null
);
orderInfo
(
'invoiceTitle'
,
null
);
}
});
...
...
@@ -215,16 +190,16 @@ function submitOrder() {
return
false
;
}
// if (orderInfo('invoice')) {
// if (!invoiceText) {
// tip.show('请输入发票抬头');
// return;
// }
// if (invoiceText.length > 30) {
// tip.show('发票抬头不得超过30个汉字');
// return;
// }
// }
if
(
orderInfo
(
'invoice'
))
{
if
(
!
invoiceText
)
{
tip
.
show
(
'请输入发票抬头'
);
return
;
}
if
(
invoiceText
.
length
>
30
)
{
tip
.
show
(
'发票抬头不得超过30个汉字'
);
return
;
}
}
if
(
msg
)
{
if
(
msg
.
length
>
40
)
{
...
...
@@ -400,9 +375,3 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') {
orderInfo
(
'deliveryId'
,
$
(
'.delivery-id .icon-cb-radio'
).
data
(
'id'
));
orderCompute
();
}
if
(
orderCont
.
invoiceType
)
{
$
(
'.invoice-type'
).
text
(
invoiceCont
[
orderCont
.
invoiceType
]
+
'('
+
invoicesType
[
orderCont
.
invoicesType
]
+
')'
);
}
else
{
$
(
'.invoice-type'
).
text
(
'服装(电子)'
);
}
\ No newline at end of file
...
...
static/sass/cart/_order-ensure.css
View file @
9a191d6
...
...
@@ -495,12 +495,6 @@
#invoice
{
border-top
:
1px
solid
#f7f7f7
;
.invoice-type
{
float
:
right
;
font-size
:
28px
;
color
:
#444
;
}
label
{
display
:
block
;
border-top
:
1px
solid
#f7f7f7
;
...
...
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
View file @
9a191d6
...
...
@@ -144,11 +144,7 @@
<input
type=
"hidden"
class=
"user-mobile"
value=
"{{userMobile}}"
/>
<span
class=
"title"
>发票</span>
<span
class=
"iconfont checkbox {{#if needInvoice}}icon-cb-radio{{else}}icon-radio{{/if}}"
></span>
<a
id=
"invoice"
class=
"invoice-info"
href=
"invoiceInfo"
>
<span
class=
"title"
>发票信息</span>
<span
class=
"invoice-type"
><i
class=
"iconfont"
>
614
;</i></span>
</a>
<!--
<form
id=
"invoice"
>
<form
id=
"invoice"
>
<input
type=
"text"
name=
"invoice-title"
value=
"{{invoiceText}}"
maxlength=
"30"
placeholder=
"发票抬头"
>
<label>
发票类型
...
...
@@ -158,7 +154,7 @@
{
{/
invoice
}
}
</select>
</label>
</form>
-->
</form>
</li>
{
{/if
}
}
</ul>
...
...
Please
register
or
login
to post a comment