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
4a6ca6c941b37476bd750a72d1bfa27068bf96b6
1 parent
ef24f7e3
发票bug 修改
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
8 deletions
static/js/cart/invoice-info.js
static/sass/cart/_invoice-info.css
template/m.yohobuy.com/actions/cart/index/invoice-info.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/js/cart/invoice-info.js
View file @
4a6ca6c
...
...
@@ -16,6 +16,7 @@ var $invoiceNotice = $('.invoice-notice'),
$invoiceType
=
$
(
'.invoice-type'
),
$tel
=
$
(
'.tel'
),
$company
=
$
(
'.company'
),
$telArea
=
$
(
'.tel-area'
),
orderInfo
=
order
.
orderInfo
,
$chooseContLi
=
$
(
'.invoice-cont'
).
find
(
'.icon-cb-radio'
).
parent
();
...
...
@@ -51,7 +52,7 @@ function confirmAction() {
cont
=
$chooseCont
.
data
(
'id'
);
if
(
$editFlag
.
val
()
===
'true'
)
{
if
(
!
myreg
.
test
(
$tel
.
attr
(
'data-tel'
)))
{
if
(
type
===
'2'
&&
!
myreg
.
test
(
$tel
.
attr
(
'data-tel'
)))
{
tip
.
show
(
'请输入正确手机号'
);
$tel
.
focus
();
return
false
;
...
...
@@ -118,6 +119,13 @@ $('.invoice-type span').on('touchstart', function() {
}
else
{
$
(
this
).
addClass
(
'on'
).
siblings
().
removeClass
(
'on'
);
$editFlag
.
val
(
'true'
);
// 纸质发票不显示手机号
if
(
$
(
this
).
index
()
===
1
)
{
$telArea
.
slideUp
();
}
else
{
$telArea
.
slideDown
();
}
}
});
...
...
static/sass/cart/_invoice-info.css
View file @
4a6ca6c
...
...
@@ -12,6 +12,14 @@
color
:
#444
;
font-size
:
28px
;
float
:
left
;
position
:
relative
;
.txt-point
{
position
:
absolute
;
left
:
-15px
;
top
:
5px
;
display
:
block
;
}
}
.invoice-form
{
...
...
@@ -20,6 +28,7 @@
padding
:
0
30px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
padding-bottom
:
15px
;
li
{
width
:
100%
;
...
...
@@ -30,11 +39,7 @@
}
li
:first-child
{
margin-bottom
:
15px
;
}
li
:last-child
{
margin-bottom
:
10px
;
margin-bottom
:
5px
;
}
.company
{
...
...
template/m.yohobuy.com/actions/cart/index/invoice-info.phtml
View file @
4a6ca6c
...
...
@@ -18,8 +18,8 @@
{{/invoiceTitle}}
</div>
</li>
<li>
<span class="title">*发票人手机:</span>
<li {{#isPaper}}style="display: none;"{{/isPaper}} class="tel-area">
<span class="title"><i class="txt-point">*</i>发票人手机:</span>
<span class="phone">
<input type="text" name="tel" data-tel="{{completeTel}}" class="tel {{#phone}}istel{{/phone}}" value="{{phone}}" placeholder="可通过手机号在发票服务平台查询">
</span>
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
4a6ca6c
...
...
@@ -384,6 +384,7 @@ class IndexController extends AbstractAction
'completeTel'
=>
$mobile
,
'isCompany'
=>
$invoice_Top
==
'单位'
?
false
:
true
,
'companyName'
=>
$invoices_title
,
'isPaper'
=>
$invoices_type
==
1
?
true
:
false
,
'invoicesType'
=>
array
(
array
(
'id'
=>
'2'
,
...
...
Please
register
or
login
to post a comment