Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
0c8ba77e754c9a99b45445e431e9ee14b2a30505
1 parent
4b311457
清空地址后退回结算界面,发现还保留了最后的地址 fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
static/js/cart/select-address.js
static/js/cart/select-address.js
View file @
0c8ba77
...
...
@@ -7,9 +7,20 @@
var
$
=
require
(
'jquery'
),
orderInfo
=
require
(
'./order-info'
).
orderInfo
;
var
$confim
=
$
(
'.confim-mask'
),
deleteId
;
$
(
'.address-item'
).
on
(
'touchend'
,
function
()
{
orderInfo
(
'addressId'
,
$
(
this
).
data
(
'address-id'
));
}).
on
(
'touchend'
,
'.edit'
,
function
()
{
window
.
location
.
href
=
$
(
this
).
data
(
'href'
);
return
false
;
}).
on
(
'touchend'
,
'.del'
,
function
()
{
deleteId
=
$
(
this
).
data
(
'address-id'
);
});
$confim
.
on
(
'touchend'
,
'.confim'
,
function
()
{
if
(
orderInfo
(
'addressId'
)
===
deleteId
)
{
orderInfo
(
'addressId'
,
null
);
}
});
...
...
Please
register
or
login
to post a comment