优化续费体验
This commit is contained in:
parent
d23f45f84a
commit
31f8a6a5da
|
|
@ -144,7 +144,6 @@ export default {
|
||||||
rented: '已出租',
|
rented: '已出租',
|
||||||
maintenance: '维护中',
|
maintenance: '维护中',
|
||||||
scrapped: '报废',
|
scrapped: '报废',
|
||||||
normal: '正常',
|
|
||||||
}
|
}
|
||||||
return statusMap[status] || '未知状态'
|
return statusMap[status] || '未知状态'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ import { getNewAnnouncement } from '../../api/article/article.js'
|
||||||
import { getBannerList } from '../../api/banner/banner.js'
|
import { getBannerList } from '../../api/banner/banner.js'
|
||||||
import { getDeviceList } from '../../api/device/device.js'
|
import { getDeviceList } from '../../api/device/device.js'
|
||||||
import { renewDevice, getPeriodPackages } from '../../api/lease/lease.js'
|
import { renewDevice, getPeriodPackages } from '../../api/lease/lease.js'
|
||||||
|
import { sleep } from '../../uni_modules/uv-ui-tools/libs/function'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -299,9 +300,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 使用设备的类型ID获取套餐
|
// 使用设备的类型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)
|
console.log('设备类型ID:', typeId)
|
||||||
|
|
||||||
const response = await getPeriodPackages(typeId)
|
const response = await getPeriodPackages(typeId)
|
||||||
|
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
|
|
@ -370,6 +372,8 @@ export default {
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
await sleep(1000)
|
||||||
|
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
this.closeRenewModal()
|
this.closeRenewModal()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user