Fix(店铺):[#1107]查看没有商品的店铺企业文化图片,返回会自动刷新到最新资讯页
This commit is contained in:
@@ -685,19 +685,21 @@ export default {
|
||||
reqFn(_this.id).then((res) => {
|
||||
const { success, data } = res
|
||||
if (success) {
|
||||
_this.isLoad = true
|
||||
_this.inn = data
|
||||
_this.isLike = data.zanVo !== null
|
||||
_this.isFavorite = data.hasFavorite
|
||||
_this.favoriteCount = data.favoriteCount
|
||||
_this.inn.latitude = _this.inn.latitude ? parseFloat(_this.inn.latitude) : 24.993587
|
||||
_this.inn.longitude = _this.inn.longitude ? parseFloat(_this.inn.longitude) : 102.779656
|
||||
// 该店铺无商品则不显示“精选商品”
|
||||
if (data.hasProduct <= 0) {
|
||||
_this.activeIndex = 1
|
||||
_this.tabList[0].isShow = false
|
||||
} else {
|
||||
_this.fetchGoods()
|
||||
// fix bug#1107
|
||||
if (!_this.isLoad) {
|
||||
// 该店铺无商品则不显示“精选商品”
|
||||
if (data.hasProduct <= 0) {
|
||||
_this.activeIndex = 1
|
||||
_this.tabList[0].isShow = false
|
||||
} else {
|
||||
_this.fetchGoods()
|
||||
}
|
||||
}
|
||||
// coverType: 1-图片,2-视频
|
||||
if (data.coverType === 2) {
|
||||
@@ -736,6 +738,7 @@ export default {
|
||||
})
|
||||
*/
|
||||
}
|
||||
_this.isLoad = true
|
||||
}
|
||||
}).finally(() => {
|
||||
uni.stopPullDownRefresh()
|
||||
@@ -1027,7 +1030,7 @@ export default {
|
||||
z-index: 1;
|
||||
.bg-color {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
top: -5px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
|
||||
Reference in New Issue
Block a user