From 63bcce0dc64d4560413c12118be4b6c7e496af7a Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Mon, 27 May 2024 09:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/squareDynamic/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {