fix: 更新配置和代码逻辑以提升稳定性和可读性

- 在 manifest.json 和 project.config.json 中启用 postcss 和 enhance 设置
- 在多个 Vue 组件中优化空值处理逻辑,确保更健壮的代码执行
- 调整样式和布局以提升用户体验
This commit is contained in:
Yer11214
2026-07-21 14:39:16 +08:00
parent 4bb4bbdc6b
commit 7626f944ad
10 changed files with 48 additions and 38 deletions

View File

@@ -74,7 +74,7 @@ const withdrawParams = ref({ pageNumber: 1, pageSize: 10 })
const achievementParams = ref({ pageNumber: 1, pageSize: 10 })
onLoad((option) => {
const type = Number(option.type ?? 0)
const type = Number(option.type != null ? option.type : 0)
listType.value = type
routeQuery.value = option || {}
uni.setNavigationBarTitle({

View File

@@ -59,7 +59,7 @@ function fetchDistributionInfo() {
}
function submitWithdraw() {
const amount = String(price.value ?? '')
const amount = String(price.value != null ? price.value : '')
if (proxy.$u.test.amount(parseInt(amount))) {
cash({ price: amount }).then((res) => {
if (res.data.success) {
@@ -75,7 +75,10 @@ function submitWithdraw() {
}
function fillAllAmount() {
price.value = distributionData.value.canRebate ?? ''
price.value =
distributionData.value.canRebate != null
? distributionData.value.canRebate
: ''
}
</script>