From 8c4343f03d7ebf8083e72120e5525f4326ddfcb3 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Fri, 15 May 2026 17:36:29 +0800 Subject: [PATCH 1/2] 1 --- package2/shop/shopInfo.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package2/shop/shopInfo.vue b/package2/shop/shopInfo.vue index 775286d..742b148 100644 --- a/package2/shop/shopInfo.vue +++ b/package2/shop/shopInfo.vue @@ -28,11 +28,11 @@ - + 店铺地址 - + {{shop.shopAddress}} @@ -103,7 +103,7 @@ } }, onLoad() { - this.shop = JSON.parse(uni.getStorageSync('shop')); + this.shop = uni.getStorageSync('schoolShop')[0]; this.shopImages = this.shop.shopImages.split('@@') this.huanjing = JSON.parse(this.shopImages[3])[0] @@ -149,7 +149,7 @@ let that = this; let hiver_token = uni.getStorageSync("hiver_token") await uni.uploadFile({ - url: getApp().globalData.mainurl + '/upload/file', + url: that.tui.interfaceUrl() + '/upload/file', filePath: path, name: 'file', header: { From cfe29e265623b240a48c456b107d6319977b9e51 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Fri, 15 May 2026 17:36:37 +0800 Subject: [PATCH 2/2] 1 --- pages/index/index.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 402b319..c4c9aaa 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1060,16 +1060,12 @@ that.mallAds = res.result.mallAds for(let i=0;i item.trim() !== '') // 过滤掉空项 - .map(url => ({ - pic: url.trim() - })); + that.adList = that.mallAds[i].adImage.split(',').filter(item => item.trim() !== '').map(url => ({ + pic: url.trim() + })); } else { // 没有逗号:整个字符串作为一个对象 that.adList = [{ @@ -1107,6 +1103,7 @@ }).catch((res) => {}); }, goAdPage(item) { + console.log('hahahahah',item) uni.navigateTo({ url: item.linkUrl + item.linkParams })