diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 1308996..82ed35a 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -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
>
@@ -28,11 +28,18 @@
>
+
+
+
+ 暂无画作
+
+
+
@@ -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;
+}
diff --git a/src/static/empty.png b/src/static/empty.png
new file mode 100644
index 0000000..6b6755f
Binary files /dev/null and b/src/static/empty.png differ