Authored by wangqing

增加热点

... ... @@ -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');
});
}, 'jsonp');
}, '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);
}
... ...
... ... @@ -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()
}
... ...