outlet-will-start.page.js
1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Created by runner on 16/6/14.
*/
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 ($indexNav.length > 0) {
iscroll({
el: '#index_nav'
}).goto($indexNav.find('.active').index());
}
if ($bgw.length < 1) {
$('.empty').show();
}
$bgw.on('click', function() {
tip.show('活动即将开始,敬请期待!');
return false;
});
$.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('网络断开连接了~');
}
});