From bba26b157839f6308f21dcb55109964209d514a8 Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Wed, 1 Jul 2026 09:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9C=AA=E9=80=89=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E6=97=B6=E6=8F=90=E7=A4=BA=E9=80=89=E6=8B=A9,=E4=B8=8D?= =?UTF-8?q?=E9=9D=99=E9=BB=98=E6=98=BE=E7=A4=BA=E7=A9=BA=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/record/record.vue | 53 ++++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/pages/record/record.vue b/pages/record/record.vue index 3e307fa..13f48be 100644 --- a/pages/record/record.vue +++ b/pages/record/record.vue @@ -53,7 +53,12 @@ - + + 👆 + 请在上方选择一个店铺 + 选择店铺后即可查看该店铺的上书记录 + + @@ -119,7 +124,7 @@ - + 📭 暂无上书记录 @@ -160,7 +165,12 @@ export default { onLoad() { uni.setNavigationBarTitle({ title: '上书记录' }) this.loadShopList() - this.fetchRecords() + }, + + computed: { + hasShopSelected() { + return this.shopIndex > 0 + } }, methods: { @@ -223,15 +233,13 @@ export default { // 获取上书记录 async fetchRecords() { if (this.isLoading || this.loadingMore) return + if (!this.hasShopSelected) { + this.isLoading = false + return + } this.isLoading = true try { const shopId = this.getSelectedShopId() - if (!shopId) { - this.isLoading = false - this.recordList = [] - this.hasMore = false - return - } const params = { page: this.page, page_size: this.pageSize, @@ -609,6 +617,33 @@ export default { 100% { transform: rotate(360deg); } } +/* 提示选择店铺 */ +.empty-hint { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 160rpx 40rpx; +} + +.empty-hint-icon { + font-size: 60rpx; + margin-bottom: 24rpx; +} + +.empty-hint-text { + font-size: 30rpx; + color: #4e5969; + font-weight: 500; + margin-bottom: 12rpx; +} + +.empty-hint-desc { + font-size: 26rpx; + color: #909399; + text-align: center; +} + /* 空状态 */ .empty-state { display: flex;