代码格式化: prettier --write 统一代码风格

39 个文件按 .prettierrc.json (printWidth 100 / no semi / singleQuote) 统一格式, 纯空白与换行调整, 无逻辑变更。为接入代码门禁做准备, 让 npm run check (format:check + lint:strict + typecheck) 干净通过。
This commit is contained in:
yml
2026-06-14 16:24:01 +08:00
parent ae4297fec7
commit f410be3797
39 changed files with 87 additions and 80 deletions
@@ -160,7 +160,10 @@ async function handleAddAccount() {
return
}
if (!accountForm.account_no.trim()) {
showToast({ message: accountForm.account_type === 'bank' ? '请输入银行卡号' : '请输入账号', icon: 'warning-o' })
showToast({
message: accountForm.account_type === 'bank' ? '请输入银行卡号' : '请输入账号',
icon: 'warning-o',
})
return
}
if (accountForm.account_type === 'bank' && !accountForm.bank_name.trim()) {
@@ -416,7 +419,11 @@ function statusType(status: string): 'primary' | 'success' | 'danger' | 'warning
>
<div class="popup-body">
<h2>添加收款账号</h2>
<van-radio-group v-model="accountForm.account_type" direction="horizontal" class="type-tabs">
<van-radio-group
v-model="accountForm.account_type"
direction="horizontal"
class="type-tabs"
>
<van-radio name="alipay">支付宝</van-radio>
<van-radio name="wechat">微信</van-radio>
<van-radio name="bank">银行卡</van-radio>
@@ -447,11 +454,7 @@ function statusType(status: string): 'primary' | 'success' | 'danger' | 'warning
placeholder="如:中国工商银行"
required
/>
<van-field
v-model.trim="accountForm.bank_branch"
label="开户支行"
placeholder="可选"
/>
<van-field v-model.trim="accountForm.bank_branch" label="开户支行" placeholder="可选" />
</template>
<div class="account-tip">
@@ -232,7 +232,6 @@ function amountPrefix(direction: string) {
@size-change="handleSizeChange"
/>
</div>
</section>
</template>