小程序首页第一次打开时图片不显示bug修复
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
this.getCertifiedCj()
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
},
|
||||
methods: {
|
||||
// 获取认证厂家列表
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
this.getNews()
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
},
|
||||
methods: {
|
||||
getNews() {
|
||||
|
||||
@@ -66,8 +66,8 @@
|
||||
styleIsolation: 'shared', // 解除样式隔离
|
||||
},
|
||||
created() {
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
this.getHistoryOrCollection()
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
},
|
||||
methods: {
|
||||
//获取历史记录
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
// this.sortType = 2
|
||||
// }
|
||||
// })
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
this.getProductsByThumb()
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
},
|
||||
methods: {
|
||||
//获取按点赞量排列的产品列表
|
||||
|
||||
@@ -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: {
|
||||
//获取按上架时间排列的产品列表
|
||||
|
||||
Reference in New Issue
Block a user