Authored by ccbikai

为你优选有害

... ... @@ -15,8 +15,8 @@ module.exports = {
port: 6001,
siteUrl: '//m.yohobuy.com',
domains: {
api: 'http://api.yoho.yohoops.org/',
service: 'http://service.yoho.yohoops.org/'
api: 'http://testapi.yoho.cn:28078/',
service: 'http://testservice.yoho.cn:28077/'
// api: 'http://devapi.yoho.cn:58078/',
// service: 'http://devservice.yoho.cn:58077/'
... ...
... ... @@ -24,8 +24,8 @@ function request() {
if (preferenceUrl) {
$.get(preferenceUrl).then(function(html) {
if (html.length < 5) {
$recommendForYou.css('display', 'none');
if ($(html).find('.swiper-slide').length < 5) {
$recommendForYou.hide();
} else {
$recommendForYou.html(html).show();
if ($('#swiper-recommend').length) {
... ...