From 9e02802b996c978a410c61db23ea4cfde5fae702 Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Mon, 18 May 2026 11:32:32 +0800
Subject: [PATCH] 1
---
pages/index/index.vue | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index a52ad0d..21a2ca2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -20,7 +20,7 @@
:interval="interval" :duration="duration">
-
+
@@ -1123,17 +1123,12 @@
that.mallAds = res.result.mallAds
for(let i=0;i item.trim() !== '').map(url => ({
- pic: url.trim()
- }));
- } else {
- // 没有逗号:整个字符串作为一个对象
- that.adList = [{
- pic: that.mallAds[i].adImage.trim()
- }];
+ if (that.mallAds[i].adImage.endsWith(',')) {
+ that.mallAds[i].adImage = that.mallAds[i].adImage.slice(0, -1);
+ }
}
}else{
if (that.mallAds[i].adImage.endsWith(',')) {