小程序首页第一次打开时图片不显示bug修复

This commit is contained in:
邓洁
2023-02-05 17:59:47 +08:00
parent 8db95277dd
commit 0e6d4f02a2
12 changed files with 33 additions and 34 deletions

View File

@@ -27,8 +27,8 @@
}
},
created() {
this.imgUrl = uni.getStorageSync('img_url')
this.getCertifiedCj()
this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
// 获取认证厂家列表

View File

@@ -32,8 +32,8 @@
}
},
created() {
this.imgUrl = uni.getStorageSync('img_url')
this.getNews()
this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
getNews() {

View File

@@ -66,8 +66,8 @@
styleIsolation: 'shared', // 解除样式隔离
},
created() {
this.imgUrl = uni.getStorageSync('img_url')
this.getHistoryOrCollection()
this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
//获取历史记录

View File

@@ -53,8 +53,8 @@
// this.sortType = 2
// }
// })
this.imgUrl = uni.getStorageSync('img_url')
this.getProductsByThumb()
this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
//获取按点赞量排列的产品列表

View File

@@ -38,7 +38,7 @@
export default {
data() {
return {
imgUrl: '',
imgUrl: null,
tagsArray: [],
productList: [],
pageNum: 1, // 当前页
@@ -47,15 +47,8 @@
}
},
created() {
// uni.$on("getCurrent", data => {
// if (data == 0) {
// this.sortType = 1
// } else if (data == 1) {
// this.sortType = 2
// }
// })
this.getProductsByTime()
this.imgUrl = uni.getStorageSync('img_url')
this.getProductsByTime()
},
methods: {
//获取按上架时间排列的产品列表