This commit is contained in:
Aiden 2024-10-21 14:42:31 +08:00
commit 373f1a4f2b
2 changed files with 15 additions and 1 deletions

View File

@ -8,7 +8,7 @@
class="login-input"
placeholder="画家姓名/画作名称"
v-model="state.searchValue"
style="flex: 1; margin-right: 10rpx"
style="flex: 1; margin-right: 10rpx;height: 80rpx;"
clearable
>
</up-input>
@ -28,11 +28,18 @@
>
</view>
<up-list @scrolltolower="scrolltolower" style="height: 1120rpx">
<span >
<up-image v-if="showNoResultImage" src="../../static/empty.png" width="100px" height="100px"
style="margin-left: 240rpx;margin-top: 200rpx;margin-bottom: 20px;">
</up-image>
<span v-if="showNoResultImage" style="font-weight: bold;color: #BABABA;margin-left: 280rpx;margin-top: 20rpx;">暂无画作</span>
</span>
<up-list-item
class="painting-box"
v-for="(painting, index) in state.tableData"
:key="index"
>
<span style="display: flex; align-items: center; position: relative">
<up-image
:show-loading="true"
@ -69,6 +76,7 @@
</span>
</up-list-item>
</up-list>
</view>
</view>
<view class="button-container">
@ -103,6 +111,7 @@ import { closeWebview, hasPermission } from "../../../utils/index";
const { showMessage } = useToast();
const loading = ref(false);
const showNoResultImage = ref(false)
const isButtonDisabled = ref(false);
const buttonText = ref("确认");
const state = reactive({
@ -150,8 +159,10 @@ const paintingList = async (param) => {
};
});
console.log(1111, state.tableData);
showNoResultImage.value = false;
} else {
state.tableData = [];
showNoResultImage.value = true;
showMessage({ type: "error", message: "查询失败,暂无画作!" });
}
} else {
@ -318,4 +329,7 @@ page {
background-color: #fff;
height: 8%;
}
uni-button:after {
border: none;
}
</style>

BIN
src/static/empty.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB