Authored by 陈轩

FIX

/* eslint-disable camelcase */
'use strict';
const url = require('url');
const _ = require('lodash');
const API = global.yoho.API;
const serviceAPI = global.yoho.ServiceAPI;
... ... @@ -102,6 +103,9 @@ exports.getGoods = cate => {
productList.forEach(product=> {
let skn = product.productSkn;
let imgSrc = url.parse(product.defaultImages);
product.defaultImages = ['//', imgSrc.hostname, imgSrc.pathname].join('');
product.url = helpers.appUrlFormat(product.url, 'go.productDetail', {
product_skn: skn
... ...
... ... @@ -94,13 +94,7 @@
<textarea class="vip-msg-content"></textarea>
<button class="vip-msg-send" type="button">写好啦!</button>
</div>
<p class="label">
<strong>写留言去抽奖!</strong>
<br>
<strong>100%中奖机会</strong>
<br><br>
潮/酷/屌炸天为你而造~告诉我们你的想法可再次参与抽奖,100%中奖哦。
</p>
<img class="txt" src="{{imgSrc 'img/activity/vip_day/leava-msg.png'}}" alt="">
</div>
<div class="vip-day-msg-input"></div>
</div>
... ...
... ... @@ -32,6 +32,7 @@ function appJump(where, option) {
var page = {
rollTimer: null,
init: function() {
this.domInit();
this.bindEvents();
... ... @@ -178,6 +179,7 @@ var page = {
return;
}
window.clearTimeout(this.rollTimer);
var $frag = $('<ul></ul>'),
$fragClone;
... ... @@ -192,6 +194,7 @@ var page = {
$fragClone = $frag.clone();
$msgRoll
.html('')
.append($frag, $frag.clone());
// .css({ visibility: 'visible' });
... ... @@ -206,7 +209,7 @@ var page = {
function rolling() {
$msgRoll.animate({
$msgRoll.delay(2000).animate({
scrollTop: '+='.concat(oneMsgH)
}, 400, function() {
var curT = $msgRoll[0].scrollTop;
... ... @@ -215,7 +218,7 @@ var page = {
$msgRoll[0].scrollTop = curT - $frag[0].getBoundingClientRect().height;
}
setTimeout(rolling, 1000);
self.rollTimer = setTimeout(rolling, 2000);
});
}
... ...
... ... @@ -16,6 +16,7 @@ var ClassName = {
};
var Modal = function(elem, config) {
this.$element = $(elem);
this.$body = $(document.body);
this._backdrop = null;
this._config = $.extend(
{},
... ... @@ -36,6 +37,7 @@ Modal.prototype.show = function(relatedTarget) {
if (this._isShown) {
return this;
}
this.$body.toggleClass('ymodal-open', true);
this.$element.trigger('show.yoho.modal', relatedTarget);
this.$element.on('click.dismiss.yoho.modal', Selector.DATA_DISMISS, $.proxy(this.hide, this));
... ... @@ -57,6 +59,7 @@ Modal.prototype.hide = function(e) {
this.$element
.off('click.dismiss.yoho.modal')
.hide();
this.$body.removeClass('ymodal-open');
this.backdrop();
this.$element.trigger('hiden.yoho.modal');
};
... ...
... ... @@ -339,14 +339,13 @@
float: left;
width: 400px;
margin-right: 35px;
color: block;
padding: 5px;
background-color: #e9e9ea;
border-radius: 4px;
}
.vip-msg-content {
height: 90px;
display: block;
height: 128px;
background-color: #e9e9ea;
border: none;
outline: none;
... ... @@ -364,15 +363,10 @@
border-radius: 8px;
}
.label {
padding-right: 40px;
overflow: hidden;
font-size: 19px;
strong {
font-size: 27px;
color: #e95d3f;
}
.txt {
float: left;
width: 195px;
height: 132px;
}
}
... ...
.ymodal-open {
overflow: hidden;
}
.ymodal {
position: fixed;
top: 0;
... ...