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
207dcfcdcd5fc0e2045e63b205fc1f3d48b6b7c4
1 parent
d6cca90d
依赖全局的脚本稍后执行
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
0 deletions
static/js/cart/gift-advance.js
static/js/cart/order-ensure.js
static/js/cart/order-info.js
static/js/cart/select-address.js
static/js/cart/select-coupon.js
static/js/cart/gift-advance.js
View file @
207dcfc
...
...
@@ -14,6 +14,8 @@ var $ = require('jquery'),
var
$page
=
$
(
'.gift-advance-page'
),
queryString
=
$
.
queryString
();
require
(
'../common'
);
lazyLoad
(
$
(
'.lazy'
));
function
getProductInfo
(
skn
,
promotionId
)
{
...
...
static/js/cart/order-ensure.js
View file @
207dcfc
...
...
@@ -26,6 +26,8 @@ var dispatchModeHammer,
orderInfo
=
order
.
orderInfo
,
isSubmiting
;
require
(
'../common'
);
lazyLoad
();
if
(
window
.
getUid
()
!==
orderInfo
(
'uid'
))
{
...
...
static/js/cart/order-info.js
View file @
207dcfc
...
...
@@ -6,6 +6,8 @@
var
$
=
require
(
'jquery'
);
var
info
=
window
.
cookie
(
'order-info'
);
require
(
'../common'
);
function
init
()
{
info
=
{
uid
:
window
.
getUid
(),
...
...
static/js/cart/select-address.js
View file @
207dcfc
...
...
@@ -10,6 +10,8 @@ var $ = require('jquery'),
var
$confim
=
$
(
'.confim-mask'
),
deleteId
;
require
(
'../common'
);
$
(
'.address-item'
).
on
(
'touchend'
,
function
()
{
var
$this
=
$
(
this
);
var
addressId
=
$this
.
data
(
'address-id'
);
...
...
@@ -19,6 +21,7 @@ $('.address-item').on('touchend', function() {
mobile
:
$this
.
find
(
'.tel'
).
text
(),
address_info
:
$this
.
find
(
'.address-info'
).
text
()
};
orderInfo
(
'addressId'
,
addressId
);
orderInfo
(
'address'
,
address
);
}).
on
(
'touchend'
,
'.edit'
,
function
()
{
...
...
static/js/cart/select-coupon.js
View file @
207dcfc
...
...
@@ -21,6 +21,8 @@ var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()),
var
winH
=
$
(
window
).
height
();
require
(
'../common'
);
// conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()),
function
fixedLayOut
()
{
...
...
@@ -77,6 +79,7 @@ $('#coupon-list').on('touchend', '.employ-main', function() {
}
}).
then
(
function
(
res
)
{
if
(
res
.
code
===
200
)
{
//tip.show('优惠券可用');
orderInfo
(
'couponCode'
,
res
.
data
.
coupon_code
);
orderInfo
(
'couponName'
,
res
.
data
.
coupon_title
);
...
...
Please
register
or
login
to post a comment