From 31f8a6a5da4f47acc10f42900ea8c494d6cf908e Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 22 Aug 2025 10:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=AD=E8=B4=B9=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/renew-modal/renew-modal.vue | 1 - pages/index/index.vue | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/components/renew-modal/renew-modal.vue b/components/renew-modal/renew-modal.vue index ce5302a..9a95793 100644 --- a/components/renew-modal/renew-modal.vue +++ b/components/renew-modal/renew-modal.vue @@ -144,7 +144,6 @@ export default { rented: '已出租', maintenance: '维护中', scrapped: '报废', - normal: '正常', } return statusMap[status] || '未知状态' }, diff --git a/pages/index/index.vue b/pages/index/index.vue index 383b401..c300506 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -55,6 +55,7 @@ import { getNewAnnouncement } from '../../api/article/article.js' import { getBannerList } from '../../api/banner/banner.js' import { getDeviceList } from '../../api/device/device.js' import { renewDevice, getPeriodPackages } from '../../api/lease/lease.js' +import { sleep } from '../../uni_modules/uv-ui-tools/libs/function' export default { components: { @@ -299,9 +300,10 @@ export default { } // 使用设备的类型ID获取套餐 - const typeId = device.typeId || device.originalData?.typeId || device.originalData?.deviceTypeId || '1' + const typeId = + device.typeId || device.originalData?.typeId || device.originalData?.deviceTypeId || '1' console.log('设备类型ID:', typeId) - + const response = await getPeriodPackages(typeId) if (response.code === 200) { @@ -370,6 +372,8 @@ export default { icon: 'success', }) + await sleep(1000) + // 关闭弹窗 this.closeRenewModal()