Authored by 郭成尧

style-adjust

... ... @@ -2,11 +2,10 @@
* @Author: Targaryen
* @Date: 2017-05-03 14:08:52
* @Last Modified by: Targaryen
* @Last Modified time: 2017-05-03 15:03:38
* @Last Modified time: 2017-05-08 16:35:32
*/
.product-list-box {
height: 138px;
margin: 40px 20px 30px;
overflow-x: scroll;
overflow-y: hidden;
... ...
... ... @@ -5,3 +5,4 @@
@import "info-list";
@import "info";
@import "tvls";
@import "./product-list";
... ...
... ... @@ -259,13 +259,17 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW
let alreadyTop = [];
let alreadyLeft = [];
if (height > 480) {
height = 480;
}
if (tagList.length > 0) {
_.forEach(tagList, (tag, tagIndex) => {
// 产生位置
tagList[tagIndex].top = _randomNumForLabel(height / 2,
alreadyTop);
alreadyTop.push(tagList[tagIndex].top);
tagList[tagIndex].left = _randomNumForLabel(138); // 此数值为能产生的最大值,暂不支持左右颠倒
tagList[tagIndex].left = _randomNumForLabel(105); // 此数值为能产生的最大值,暂不支持左右颠倒
alreadyLeft.push(tagList[tagIndex].left);
// 链接
... ...