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