Authored by xuqi

标题文字截取&contentCode

... ... @@ -439,7 +439,7 @@ module.exports = function(flag) {
id: 1,
img: 'http://7xidk0.com1.z0.glb.clouddn.com/bg.png',
alt: '复古风',
title: 'Skin Art Series INN 2015春季新品',
title: 'Skin Art Series INN 2015春季新品测试是否会被截取啊真是的',
text: '复古风劲吹,在各路复古跑鞋嚣张跋扈的当下,历史悠久的Onitsuka Tiger鬼冢' +
'虎也动作频频,于北京时间3.14日在东京发布其与意大利设计师AndreaPompilio合作的' +
'第2波--ONITSUKATIGER X ANDEREAPOMPILIO 2015秋冬新品便是其中之一。Yoho!Boy也' +
... ... @@ -488,7 +488,7 @@ module.exports = function(flag) {
id: 2,
img: 'http://7xidk0.com1.z0.glb.clouddn.com/bg.png',
alt: '复古风',
title: 'Skin Art Series INN 2015春季新品',
title: 'Skin Art Series INN 2015春季新品测试是否会被截取的长字符串',
text: '复古风劲吹,在各路复古跑鞋嚣张跋扈的当下,历史悠久的Onitsuka Tiger鬼冢' +
'虎也动作频频,于北京时间3.14日在东京发布其与意大利设计师AndreaPompilio合作的' +
'第2波--ONITSUKATIGER X ANDEREAPOMPILIO 2015秋冬新品便是其中之一。Yoho!Boy也' +
... ... @@ -507,7 +507,6 @@ module.exports = function(flag) {
id: 1,
avatar: 'http://7xidk0.com1.z0.glb.clouddn.com/avater.png',
name: '山本耀司',
intro: '日本设计界一代宗师',
info:'设计理念:他以简洁而富有韵味,线条流畅,反时尚的设计风格而著称。'
},
content: [
... ... @@ -630,7 +629,7 @@ module.exports = function(flag) {
{
id: 2,
img: 'http://7xidk0.com1.z0.glb.clouddn.com/bg.png',
title: '2.副线不知为何总是好看点',
title: '2.副线不知为何总是好看点测试长度是否会被截取塞真的很恶心啊',
content: '具有绅士气质的英伦风格是永走前沿的经典,在众多的Made ' +
'In England中Panul Smith缔造了一个传奇',
publishTime: '2月13日 12:34',
... ... @@ -647,6 +646,7 @@ module.exports = function(flag) {
return {
promotionId: 1, //促销id
clientType: 'h5', //客户端类型
contentCode: 1,
blocks: [
{
img: {
... ...
... ... @@ -36,7 +36,7 @@ exports.init = function() {
ellipsis.init();
setTimeout(function() {
$intro.mlellipsis(3); //品牌介绍
$('.info-block-content').each(function() { //相关文章
$('.info-block-content, .info-block-title').each(function() { //相关文章
$(this).mlellipsis(2);
});
}, 0);
... ...
... ... @@ -22,7 +22,7 @@ exports.init = function() {
clearTimeout(timer);
timer = setTimeout(function(){
$('.tag-text').each(function() {
$('.tag-text, .tag-title').each(function() {
$(this).mlellipsis(2);
});
}, 0);
... ... @@ -161,7 +161,7 @@ exports.init = function() {
container: $tagList
});
//文字截取
$tagList.find('.tag-text').each(function() {
$tagList.find('.tag-text, .tag-title').each(function() {
$(this).mlellipsis(2);
});
}
... ...
... ... @@ -70,7 +70,8 @@ exports.init = function() {
canLoadAjax = true; //防止下拉请求次数过多
//
var promotionId = $('#promotion').val(),
clientType = $('#client-type').val();
clientType = $('#client-type').val(),
contentCode = $('#content-code').val();
//
var $loginTip = $('#login-tip'),
winW,
... ... @@ -149,6 +150,7 @@ exports.init = function() {
start: nav.start,
promotionId: promotionId,
clientType: clientType,
contentCode: contentCode
});
if (nav.reload) {
... ...
... ... @@ -6,7 +6,7 @@
border-bottom: 1px solid #e0e0e0;
.avatar {
float: left;
margin: (10rem / $pxConvertRem) 0 0 (30rem / $pxConvertRem);
margin-left: 30rem / $pxConvertRem;
img {
width: 100rem / $pxConvertRem;
height: 100rem / $pxConvertRem;
... ... @@ -21,10 +21,6 @@
font-size: 32rem / $pxConvertRem;
line-height: 40rem / $pxConvertRem;
}
.intro {
font-size: 28rem / $pxConvertRem;
line-height: 40rem / $pxConvertRem;
}
.info {
margin: (6rem / $pxConvertRem) 0 0 0;
color: #bdbdbf;
... ...
... ... @@ -7,7 +7,6 @@
</div>
<div class="text">
<p class="name">{{name}}</p>
<p class="intro">{{intro}}</p>
<p class="info">{{info}}</p>
</div>
</div>
... ...
... ... @@ -85,5 +85,6 @@
{{/blocks}}
<input id="promotion" type="hidden" value="{{promotionId}}">
<input id="client-type" type="hidden" value="{{clientType}}">
<input id="content-code" type="hidden" value="{{contentCode}}">
{{/ data}}
</div>
\ No newline at end of file
... ...