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
Plain Diff
Browse Files
Authored by
郭成尧
7 years ago
Commit
70e43825c6d9c03b9e0faf0ff5ecbe13fb4fa808
2 parents
87e67afa
f2b1af18
Merge branch 'hotfix/6.6' into 'gray'
Hotfix/6.6 See merge request
!1385
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
6 deletions
apps/cart/controllers/pay.js
apps/cart/models/pay.js
package.json
public/js/cart/pay.page.js
public/js/channel/maybe-like.js
utils/list-params-process.js
apps/cart/controllers/pay.js
View file @
70e4382
...
...
@@ -267,7 +267,8 @@ const payAli = (req, res, next) => {
uid
:
req
.
user
.
uid
,
udid
:
req
.
cookies
.
udid
||
require
(
'yoho-md5'
)(
req
.
ip
)
||
'yoho'
,
orderCode
:
req
.
query
.
out_trade_no
,
contentCode
:
'78d0fb6c97d691863286edcb4d8abfa9'
contentCode
:
'78d0fb6c97d691863286edcb4d8abfa9'
,
client_id
:
req
.
cookies
.
_yasvd
||
''
};
// 如果没有uid,跳转到首页
...
...
apps/cart/models/pay.js
View file @
70e4382
...
...
@@ -44,7 +44,7 @@ class payModel extends global.yoho.BaseModel {
return
this
.
get
({
data
:
{
method
:
'app.recommend.purchased'
,
productSkn
:
param
.
skn
,
u
d
id
:
param
.
uid
,
uid
:
param
.
uid
,
rec_pos
:
'100005'
,
limit
:
2
,
client_id
:
param
.
client_id
...
...
package.json
View file @
70e4382
{
"name"
:
"yohobuywap-node"
,
"version"
:
"6.6.
1
"
,
"version"
:
"6.6.
2
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/js/cart/pay.page.js
View file @
70e4382
...
...
@@ -64,12 +64,11 @@ function getGender() {
require
(
'channel/maybe-like'
)({
gender
:
getGender
()});
// 你可能喜欢没有数据就隐藏
setTimeout
(
function
()
{
$
(
document
).
on
(
'PAY_SUCCESS_PAGE_MAYBE_LIKE_LOAD'
,
()
=>
{
if
(
$
(
'#goods-list'
).
find
(
'.good-info'
).
length
===
0
)
{
$
(
'.maybe-like'
).
hide
();
}
}
,
200
);
});
function
Marquee
()
{
prompt
.
scrollLeft
(
prompt
.
scrollLeft
()
+
1
);
...
...
public/js/channel/maybe-like.js
View file @
70e4382
...
...
@@ -213,8 +213,13 @@ module.exports = function(likeParameter) {
});
// 为您优选埋点 end
// 支付成功页,请求数据完成
$
(
document
).
trigger
(
'PAY_SUCCESS_PAGE_MAYBE_LIKE_LOAD'
);
},
error
:
function
()
{
// 支付成功页,请求数据完成
$
(
document
).
trigger
(
'PAY_SUCCESS_PAGE_MAYBE_LIKE_LOAD'
);
tip
.
show
(
'网络断开连接了~'
);
searching
=
false
;
loading
.
hideLoadingMask
();
...
...
utils/list-params-process.js
View file @
70e4382
...
...
@@ -46,6 +46,8 @@ const PARAMMAP = {
const
getParams
=
(
pathParams
)
=>
{
let
params
=
{};
pathParams
=
_
.
replace
(
pathParams
,
'.html'
,
''
);
if
(
pathParams
)
{
let
paramsRaw
=
_
.
split
(
pathParams
,
'-'
);
...
...
Please
register
or
login
to post a comment