|
|
|
@ -2,7 +2,10 @@ |
|
|
|
|
<view class="newsshop" :style="{backgroundImage:'url('+shopItem.index_icon+')'}"> |
|
|
|
|
<view class="newsshop-navbar"> |
|
|
|
|
<u-navbar :title="shopItem.title" back-icon-color="#fff" :border-bottom="false" title-color="#fff" |
|
|
|
|
:background="background"></u-navbar> |
|
|
|
|
:background="{ |
|
|
|
|
background: 'url('+shopItem.index_icon+') center top no-repeat', |
|
|
|
|
backgroundSize: '100% auto', |
|
|
|
|
}"></u-navbar> |
|
|
|
|
</view> |
|
|
|
|
<view class="newsshop-hd"> |
|
|
|
|
</view> |
|
|
|
@ -31,7 +34,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<u-empty text="暂无活动数据显示哦~" v-else mode="list"></u-empty> |
|
|
|
|
<u-empty text="暂无活动数据显示哦~" v-if="isShow" mode="list"></u-empty> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -44,6 +47,10 @@ |
|
|
|
|
shopItem: '', |
|
|
|
|
shopList: [], |
|
|
|
|
type: 2, |
|
|
|
|
isShow: false, |
|
|
|
|
background: { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(op) { |
|
|
|
@ -97,6 +104,7 @@ |
|
|
|
|
} else { |
|
|
|
|
this.shopList = [] |
|
|
|
|
} |
|
|
|
|
this.isShow = this.shopList.length == 0?true:false |
|
|
|
|
}) |
|
|
|
|
.finally() |
|
|
|
|
}, |
|
|
|
@ -105,9 +113,9 @@ |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
::v-deep .u-navbar-fixed { |
|
|
|
|
background: none !important; |
|
|
|
|
} |
|
|
|
|
// ::v-deep .u-navbar-fixed { |
|
|
|
|
// background: none !important; |
|
|
|
|
// } |
|
|
|
|
::v-deep .u-empty { |
|
|
|
|
padding: 150rpx 0; |
|
|
|
|
} |
|
|
|
@ -116,7 +124,7 @@ |
|
|
|
|
overflow: hidden; |
|
|
|
|
min-height: 100vh; |
|
|
|
|
background-size: 100% auto; |
|
|
|
|
|
|
|
|
|
background-repeat: no-repeat; |
|
|
|
|
&-hd { |
|
|
|
|
height: 380rpx; |
|
|
|
|
} |
|
|
|
|