Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
b39128d3928c05f675ee73cd912b7bff70ffae2e
1 parent
802a2ed9
地址管理 取消删除穿透, 弹窗加过渡
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
19 deletions
static/js/me/address-act.js
static/js/me/address.js
static/js/me/address-act.js
View file @
b39128d
...
...
@@ -101,6 +101,9 @@ $addressForm.on('submit', function() {
});
$submit
.
on
(
'touchend'
,
function
()
{
if
(
security
.
hasDangerInput
(
false
))
{
return
false
;
}
$input
.
blur
();
$addressForm
.
submit
();
return
false
;
...
...
static/js/me/address.js
View file @
b39128d
...
...
@@ -6,12 +6,9 @@
var
$
=
require
(
'jquery'
),
tip
=
require
(
'../plugin/tip'
),
security
=
require
(
'../plugin/security'
),
loading
=
require
(
'../plugin/loading'
);
var
$action
=
$
(
'.action'
),
$addressForm
=
$
(
'.edit-address'
),
$submit
=
$
(
'.submit'
),
$addAddress
=
$
(
'.add-address'
),
$footer
=
$
(
'#yoho-footer'
),
$confim
=
$
(
'.confim-mask'
),
...
...
@@ -24,12 +21,13 @@ $pageWrap.first().css('min-height', function() {
});
window
.
rePosFooter
();
$confim
.
on
(
'touchend'
,
'.cancel'
,
function
()
{
$confim
.
on
(
'touchend'
,
'.cancel'
,
function
(
e
)
{
deleteId
=
null
;
$confim
.
hide
();
$confim
.
fadeOut
();
return
false
;
}).
on
(
'touchend'
,
'.confim'
,
function
()
{
loading
.
showLoadingMask
();
$confim
.
hide
();
$confim
.
fadeOut
();
$
.
ajax
({
method
:
'POST'
,
url
:
'/home/delAddress'
,
...
...
@@ -52,6 +50,7 @@ $confim.on('touchend', '.cancel', function() {
}).
always
(
function
()
{
deleteId
=
null
;
});
return
false
;
});
...
...
@@ -69,17 +68,5 @@ $addAddress.on('touchend', function() {
// 删除
$action
.
on
(
'touchend'
,
'.del'
,
function
()
{
deleteId
=
$
(
this
).
data
(
'id'
);
$confim
.
show
();
});
$submit
.
on
(
'touchend'
,
function
()
{
if
(
security
.
hasDangerInput
(
false
))
{
return
false
;
}
$addressForm
.
submit
();
return
false
;
}).
on
(
'touchstart'
,
function
()
{
$
(
this
).
addClass
(
'highlight'
);
}).
on
(
'touchend touchcancel'
,
function
()
{
$
(
this
).
removeClass
(
'highlight'
);
$confim
.
fadeIn
();
});
...
...
Please
register
or
login
to post a comment