...
|
...
|
@@ -718,7 +718,8 @@ require("js/guang/list"); |
|
|
require("js/guang/detail");
|
|
|
require("js/guang/star-classroom");
|
|
|
require("js/guang/calendar");
|
|
|
require("js/guang/collocation-list");
|
|
|
require("js/guang/collocation-list");
|
|
|
require("js/guang/check-top");
|
|
|
});
|
|
|
define("js/guang/plus-star/list", ["jquery","lazyload","swiper","index"], function(require, exports, module){
|
|
|
/**
|
...
|
...
|
@@ -1947,16 +1948,20 @@ $('.add-intimacy').on('touchstart', function(event) { |
|
|
|
|
|
// 关闭日历弹出窗事件
|
|
|
$('.pop-intimacy .pop-close, .classroom-mask').on('click', function() {
|
|
|
$('.pop-intimacy').css({
|
|
|
zIndex: '-1'
|
|
|
}).hide();
|
|
|
$('.classroom-mask').css({
|
|
|
zIndex: '-1'
|
|
|
}).hide();
|
|
|
// $('.pop-intimacy').css({
|
|
|
// zIndex: '-1'
|
|
|
// }).hide();
|
|
|
// $('.classroom-mask').css({
|
|
|
// zIndex: '-1'
|
|
|
// }).hide();
|
|
|
|
|
|
$('body').css({
|
|
|
overflow: 'visible'
|
|
|
});
|
|
|
// $('body').css({
|
|
|
// overflow: 'visible'
|
|
|
// });
|
|
|
|
|
|
// location.reload();
|
|
|
|
|
|
history.go(0);
|
|
|
});
|
|
|
|
|
|
function setAvatar() {
|
...
|
...
|
@@ -2098,7 +2103,7 @@ $(document).ready(function() { |
|
|
exports.calculateMonthDays = CalendarHandler.calculateMonthDays;
|
|
|
|
|
|
});
|
|
|
define("js/guang/collocation-list", ["jquery","lazyload"], function(require, exports, module){
|
|
|
define("js/guang/collocation-list", ["jquery","lazyload","mlellipsis"], function(require, exports, module){
|
|
|
/**
|
|
|
* 星潮教室-星搭配分页加载
|
|
|
* @author: wsl<shuiling.wang@yoho.cn>
|
...
|
...
|
@@ -2109,13 +2114,18 @@ var $ = require("jquery"), |
|
|
tip = require("js/plugin/tip"),
|
|
|
loading = require("js/plugin/loading"),
|
|
|
lazyLoad = require("lazyload"),
|
|
|
ellipsis = require("mlellipsis"),
|
|
|
stopLoading = false;
|
|
|
|
|
|
var page = 1;
|
|
|
|
|
|
ellipsis.init();
|
|
|
|
|
|
$('body').addClass('star-class-body');
|
|
|
|
|
|
function massageAJAX(page) {
|
|
|
var $this, $title, $cont;
|
|
|
|
|
|
loading.showLoadingMask();
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
...
|
...
|
@@ -2133,6 +2143,17 @@ function massageAJAX(page) { |
|
|
}
|
|
|
|
|
|
$('.collocation-list').append(data);
|
|
|
|
|
|
// 限制标题字数
|
|
|
$('.cont-area').each(function() {
|
|
|
$this = $(this);
|
|
|
$title = $this.find('.title');
|
|
|
$cont = $this.find('.cont-txt');
|
|
|
|
|
|
$title[0].mlellipsis(2);
|
|
|
$cont[0].mlellipsis(2);
|
|
|
});
|
|
|
|
|
|
loading.hideLoadingMask();
|
|
|
lazyLoad($('img.lazy'));
|
|
|
},
|
...
|
...
|
@@ -2212,14 +2233,53 @@ $(document).on('touchstart', '.collection', function(event) { |
|
|
}
|
|
|
|
|
|
if (code === 201) {
|
|
|
window.location = data.data;
|
|
|
if ($('#collocation-link').length <= 0) {
|
|
|
$('body').append('<a href=\'' + data.data + '\' style="display:none;" id="collocation-link">' +
|
|
|
'<span class="collocation-link"></span></a>');
|
|
|
}
|
|
|
|
|
|
$('.collocation-link').click();
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
});
|
|
|
define("js/guang/check-top", ["jquery"], function(require, exports, module){
|
|
|
/**
|
|
|
* 星潮教室-top100
|
|
|
* @author: wsl<shuiling.wang@yoho.cn>
|
|
|
* @date: 2016/4/12
|
|
|
*/
|
|
|
|
|
|
var $ = require("jquery");
|
|
|
|
|
|
$('body').addClass('star-class-body');
|
|
|
|
|
|
function setAvatar($userAvatar) {
|
|
|
var myImage = new Image(),
|
|
|
avatar;
|
|
|
|
|
|
// 部分老用户没有头像,显示默认头像
|
|
|
avatar = $userAvatar.data('avatar');
|
|
|
myImage.src = avatar;
|
|
|
myImage.onload = function() {
|
|
|
$userAvatar.css('background-image', 'url(' + avatar + ')');
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if ($('.ranking-area li').length > 0) {
|
|
|
$.each($('.ranking-area li'), function(key, item) {
|
|
|
setAvatar($(item).find('.rank-avatar'));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ($('.user-avatar').attr('data-avatar') !== '') {
|
|
|
setAvatar($('.user-avatar'));
|
|
|
}
|
|
|
});
|
|
|
define("js/home/entry", ["jquery","swiper","lazyload","hammer","index"], function(require, exports, module){
|
|
|
/**
|
...
|
...
|
@@ -11873,11 +11933,15 @@ if (!orderInfo('addressId')) { |
|
|
orderInfo('addressId', $addressWrap.data('id'));
|
|
|
}
|
|
|
|
|
|
$('.dispatch-mode').on('touchend', 'li', function() {
|
|
|
$('.delivery-id').on('touchend', 'li', function() {
|
|
|
orderInfo('deliveryId', $(this).data('id'));
|
|
|
orderCompute();
|
|
|
});
|
|
|
|
|
|
$('.payment-type').on('touchend', 'li', function() {
|
|
|
orderInfo('paymentType', $('.icon-cb-radio', this).data('id'));
|
|
|
});
|
|
|
|
|
|
$('.dispatch-time').on('touchend', 'li', function() {
|
|
|
orderInfo('deliveryTimeId', $(this).data('id'));
|
|
|
});
|
...
|
...
|
@@ -11978,7 +12042,7 @@ function phoneHidden(phone) { |
|
|
|
|
|
$('.info-phone').html(phoneHidden($('.info-phone').html()));
|
|
|
|
|
|
if (orderInfo('address').is_support === 'N') {
|
|
|
if (orderInfo('address') && orderInfo('address').is_support === 'N') {
|
|
|
orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id'));
|
|
|
orderCompute();
|
|
|
}
|
...
|
...
|
|