Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
8 years ago
Commit
3ee94bbc17f24ea78f289b6ab86d836b8d5a77c4
1 parent
1f86b7ab
product_sku_cookie
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
public/js/buynow/order-ensure.page.js
public/js/buynow/order-info.js
public/js/buynow/order-ensure.page.js
View file @
3ee94bb
...
...
@@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-06-21 10:30:21
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-2
3 18:04:49
* @Last Modified time: 2017-06-2
6 17:51:50
*/
require
(
'buynow/order-ensure.page.css'
);
const
$
=
require
(
'yoho-jquery'
);
...
...
@@ -41,6 +41,18 @@ require('common');
lazyLoad
();
/**
* Cookie Init
*/
function
orderInfoInit
()
{
let
product_sku
=
qs
.
product_sku
;
if
(
orderInfo
(
'product_sku'
)
!==
product_sku
)
{
cookie
.
remove
([
'buynow_info'
]);
orderInfo
(
'product_sku'
,
product_sku
);
}
}
function
getQueryParam
()
{
let
queryArray
=
location
.
search
.
substr
(
1
).
split
(
'&'
),
i
,
...
...
@@ -520,4 +532,4 @@ $(window).scroll(function() {
$
(
'.address-bottom'
).
hide
();
}
});
orderInfoInit
();
...
...
public/js/buynow/order-info.js
View file @
3ee94bb
...
...
@@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-06-22 13:51:16
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-2
3 14:51:56
* @Last Modified time: 2017-06-2
6 17:47:49
*/
require
(
'common'
);
let
info
=
window
.
cookie
(
'buynow_info'
);
...
...
@@ -14,6 +14,7 @@ let actCkOpthn = {
function
init
()
{
info
=
{
product_sku
:
null
,
uid
:
window
.
getUid
(),
delivery_way
:
$
(
'.dispatch-mode .chosed'
).
data
(
'id'
)
||
1
,
delivery_time
:
1
,
...
...
Please
register
or
login
to post a comment