This commit is contained in:
冯辉
2025-11-12 17:42:27 +08:00
parent 73f5cb8750
commit 4953bee633
3 changed files with 129 additions and 24 deletions

View File

@@ -2,8 +2,8 @@
<view class="empty" :style="{ background: bgcolor, marginTop: mrTop + 'rpx' }">
<view class="ty_content" :style="{ paddingTop: pdTop + 'rpx' }">
<view class="content_top btn-shaky">
<image v-if="pictrue" :src="pictrue" mode=""></image>
<image v-else src="@/static/icon/empty.png" mode=""></image>
<image v-if="pictrue" :src="pictrue" mode="" class="empty-image"></image>
<image v-else src="@/static/icon/empty.png" mode="" class="empty-image"></image>
</view>
<view class="content_c">{{ content }}</view>
</view>
@@ -47,7 +47,8 @@ export default {
</script>
<style lang="scss" scoped>
image {
// 使用类选择器代替标签选择器
.empty-image {
width: 100%;
height: 100%;
}