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
ccbikai
9 years ago
Commit
195c5074a4b35ff42fec795741c1fc680c43d431
1 parent
9357298d
修改地址添加 loading
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
static/js/me/address.js
static/js/me/address.js
View file @
195c507
...
...
@@ -5,7 +5,8 @@
*/
var
$
=
require
(
'jquery'
),
tip
=
require
(
'../plugin/tip'
);
tip
=
require
(
'../plugin/tip'
),
loading
=
require
(
'../plugin/loading'
);
var
$action
=
$
(
'.action'
),
$addressForm
=
$
(
'.edit-address'
),
...
...
@@ -67,6 +68,7 @@ $confim.on('touchend', '.cancel', function() {
deleteId
=
null
;
$confim
.
hide
();
}).
on
(
'touchend'
,
'.confim'
,
function
()
{
loading
.
showLoadingMask
();
$
.
ajax
({
method
:
'POST'
,
url
:
'/home/deladdress'
,
...
...
@@ -87,6 +89,7 @@ $confim.on('touchend', '.cancel', function() {
}).
always
(
function
()
{
deleteId
=
null
;
$confim
.
hide
();
loading
.
hideLoadingMask
();
});
});
...
...
@@ -137,6 +140,7 @@ $addressForm.on('submit', function() {
}
isSubmiting
=
true
;
loading
.
showLoadingMask
();
$
.
ajax
({
method
:
'POST'
,
url
:
'/home/saveaddress'
,
...
...
@@ -154,6 +158,7 @@ $addressForm.on('submit', function() {
tip
.
show
(
'网络出了点问题~'
);
}).
always
(
function
()
{
isSubmiting
=
false
;
loading
.
hideLoadingMask
();
});
return
false
;
});
...
...
Please
register
or
login
to post a comment