代码格式化: prettier --write 统一代码风格
39 个文件按 .prettierrc.json (printWidth 100 / no semi / singleQuote) 统一格式, 纯空白与换行调整, 无逻辑变更。为接入代码门禁做准备, 让 npm run check (format:check + lint:strict + typecheck) 干净通过。
This commit is contained in:
@@ -237,7 +237,9 @@ export function startPayment(orderId: number, payWay: string, jsPayFlag?: string
|
||||
}
|
||||
|
||||
export async function queryOrderPayment(orderId: number) {
|
||||
const { data } = await apiClient.get<ApiResponse<PaymentOrder>>(`/orders/${orderId}/query-payment`)
|
||||
const { data } = await apiClient.get<ApiResponse<PaymentOrder>>(
|
||||
`/orders/${orderId}/query-payment`
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
|
||||
@@ -479,7 +479,9 @@ export function useOrderActions(options: UseOrderActionsOptions) {
|
||||
uploadingEvidence.value = true
|
||||
try {
|
||||
const uploaded = await uploadFile(file, 'dispute')
|
||||
disputeEvidenceText.value = [disputeEvidenceText.value, uploaded.url].filter(Boolean).join('\n')
|
||||
disputeEvidenceText.value = [disputeEvidenceText.value, uploaded.url]
|
||||
.filter(Boolean)
|
||||
.join('\n')
|
||||
options.notifySuccess('证据文件已上传')
|
||||
} catch (error) {
|
||||
options.notifyError(readError(error, '上传失败'))
|
||||
|
||||
@@ -132,7 +132,6 @@ function getStatusTagType(status: string) {
|
||||
return 'danger'
|
||||
}
|
||||
|
||||
|
||||
async function copyListingCode() {
|
||||
if (!order.value) return
|
||||
try {
|
||||
@@ -144,7 +143,6 @@ async function copyListingCode() {
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<template>
|
||||
<main class="mobile-order-detail-view">
|
||||
<header class="page-header">
|
||||
|
||||
@@ -158,7 +158,6 @@ async function copyListingCode() {
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<template>
|
||||
<section class="page order-detail-page" v-loading="loading">
|
||||
<div v-if="order" class="page-header">
|
||||
|
||||
@@ -103,7 +103,6 @@ async function handlePay(order: Order) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function orderRole(order: Order) {
|
||||
if (order.renter_id === session.userId) return '租客'
|
||||
if (order.owner_id === session.userId) return '号主'
|
||||
|
||||
Reference in New Issue
Block a user