Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
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
wangqing
9 years ago
Commit
b566eb76bac539ecaf5f251c7dae5511660d9f14
1 parent
436ec569
增加热点
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
web-static/js/header.js
web-static/js/passport/back.js
web-static/js/header.js
View file @
b566eb7
...
...
@@ -142,7 +142,7 @@ function actionGoodsCart() {
return
false
;
}
key
=
encodeURI
(
key
);
$
.
get
(
searchDomain
+
'?
callback=?&
query='
+
key
,
function
(
htmlData
)
{
$
.
get
(
searchDomain
+
'?query='
+
key
,
function
(
htmlData
)
{
$
(
'.search-list'
).
html
(
htmlData
.
data
);
queryNum
=
$
(
'.search-list'
).
children
(
'li'
).
length
;
listIndex
=
-
1
;
...
...
@@ -156,7 +156,7 @@ function actionGoodsCart() {
},
function
()
{
$
(
this
).
css
(
'background-color'
,
'#fff'
);
});
},
'json
p
'
);
},
'json'
);
}
function
getText
(
obj
)
{
...
...
@@ -525,7 +525,7 @@ function createNewArray(obj) {
var
$that
=
$
(
this
);
var
$alink
=
$that
.
find
(
'a'
);
var
_href
=
$alink
.
attr
(
'href'
);
var
hottag
=
$alink
.
attr
(
'hot'
)
===
'
true
'
?
true
:
false
;
var
hottag
=
$alink
.
attr
(
'hot'
)
===
'
hot
'
?
true
:
false
;
var
objt
=
{};
if
(
$that
.
hasClass
(
'category-title'
))
{
...
...
@@ -721,7 +721,6 @@ function actionNav() {
}
/**
* 查询跳转后保留关键字
* @return {[type]} [description]
...
...
@@ -1172,7 +1171,7 @@ function actionExeTemplate() {
* @return {[type]} [description]
*/
function
actionSearch
()
{
var
searchDomain
=
'http://search.yohobuy.com/
api
/suggest'
;
var
searchDomain
=
'http://search.yohobuy.com/
product/search
/suggest'
;
$
(
'#query_key'
).
search
(
searchDomain
);
}
...
...
web-static/js/passport/back.js
View file @
b566eb7
...
...
@@ -14,17 +14,19 @@ var $cr = $('#country-code-hide'),
emailReg
=
/^
[
.
\-
_a-zA-Z0-9
]
+@
[\-
_a-zA-Z0-9
]
+
\.[
a-zA-Z0-9
]
/
,
acAccount
=
[
[
'qq.com'
,
'163.com'
,
'126.com'
,
'sina.com'
,
'gmail.com'
,
'sohu.com'
,
'hotmail.com'
,
'139.com'
,
'189.com'
],
//数字顺序
'sohu.com'
,
'hotmail.com'
,
'139.com'
,
'189.com'
],
//数字顺序
[
'gmail.com'
,
'qq.com'
,
'163.com'
,
'126.com'
,
'sina.com'
,
'sohu.com'
,
'hotmail.com'
,
'139.com'
,
'189.com'
]
//组合顺序
'sohu.com'
,
'hotmail.com'
,
'139.com'
,
'189.com'
]
//组合顺序
],
$ccList
=
$
(
'#country-code-list'
),
$cc
=
$
(
'#country-code'
),
$btn
=
$
(
'#find-btn'
),
$accErr
=
$
(
'#account-err'
),
$caErr
=
$
(
'#captcha-err'
),
time
,
//timeout-id
caCount
=
4
,
//验证码位数
time
,
//timeout-id
caCount
=
4
,
//验证码位数
hasPh
=
false
,
hasCa
=
false
;
...
...
@@ -42,8 +44,9 @@ require('yoho.placeholder');
function
imgcode
()
{
var
time
=
new
Date
(),
$captchaImg
=
$
(
'#captcha-img'
),
captchaImgSrc
=
$captchaImg
.
attr
(
'src'
).
split
(
'?'
)[
0
];
$captchaImg
=
$
(
'#captcha-img'
),
captchaImgSrc
=
$captchaImg
.
attr
(
'src'
).
split
(
'?'
)[
0
];
$
(
'#captcha-img'
).
attr
(
'src'
,
captchaImgSrc
+
'?t='
+
time
.
getTime
());
//getSource('yoho_family_web', '换一张', 'homepage_man');
...
...
@@ -101,8 +104,8 @@ function vaCa() {
type
:
'POST'
,
url
:
'/passport/back/authcode'
,
data
:
{
verifyCode
:
v
,
phoneNum
:
$
(
'#phone-num'
).
val
(),
verifyCode
:
v
,
phoneNum
:
$
(
'#phone-num'
).
val
(),
area
:
$
(
'#country-code-hide'
).
val
()
}
...
...
Please
register
or
login
to post a comment