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: {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4e1987d..51f8040 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
})