diff --git a/pages/squareDynamic/index.vue b/pages/squareDynamic/index.vue index cc6d902..2540e63 100644 --- a/pages/squareDynamic/index.vue +++ b/pages/squareDynamic/index.vue @@ -31,7 +31,7 @@ {{ item.goodsInfo.goods_name }} ¥{{ item.goodsInfo.goods_price_min>0?Number(item.goodsInfo.goods_price_min):0.00 }} - 加购 + 立即购买 @@ -212,14 +212,14 @@ } else { len += 10; } - if (len > 714 && spliti === 0) { + if (len > 710 && spliti === 0) { spliti = i; } } console.log(cont, cont.length, spliti, len); return { isSplit: len > 748, - splitStr: len > 714 ? `${cont.split('').splice(0, spliti).join('')}...` : cont, + splitStr: len > 710 ? `${cont.split('').splice(0, spliti).join('')}...` : cont, }; }, clipCont(cont) {