...
|
...
|
@@ -5,23 +5,46 @@ var $ = require('yoho-jquery'), |
|
|
tip = require('../plugin/tip'),
|
|
|
iscroll = require('./outlet/nav');
|
|
|
|
|
|
var $bgw = $('.back-ground-white'),
|
|
|
$indexNav = $('#index_nav');
|
|
|
|
|
|
require('../common');
|
|
|
require('./outlet/set-backurl');
|
|
|
|
|
|
// 导航滚动
|
|
|
if ($('#index_nav').length > 0) {
|
|
|
if ($indexNav.length > 0) {
|
|
|
iscroll({
|
|
|
el: '#index_nav'
|
|
|
}).goto($('#index_nav').find('.active').index());
|
|
|
}).goto($indexNav.find('.active').index());
|
|
|
}
|
|
|
|
|
|
if ($('.back-ground-white').length < 1) {
|
|
|
if ($bgw.length < 1) {
|
|
|
$('.empty').show();
|
|
|
}
|
|
|
|
|
|
$('.back-ground-white').on('click', function() {
|
|
|
$bgw.on('click', function() {
|
|
|
tip.show('活动即将开始,敬请期待!');
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
$('.cd-medium').show(); |
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/outlet/activityTime',
|
|
|
data: {
|
|
|
type: window.queryString.type || 3
|
|
|
},
|
|
|
success: function(data) {
|
|
|
var $cdMedium = $('.cd-medium');
|
|
|
|
|
|
if (data) {
|
|
|
$cdMedium.each(function(key, item) {
|
|
|
$(item).html(data[key]);
|
|
|
});
|
|
|
|
|
|
$cdMedium.show();
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
|
|
}
|
|
|
}); |
...
|
...
|
|