修复前端bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 8m58s

This commit is contained in:
sexygoat
2026-04-03 11:47:11 +08:00
parent ea14ae92ca
commit ff087abd44
5 changed files with 24 additions and 16 deletions

View File

@@ -83,8 +83,9 @@
placeholder="请选择支付方式"
style="width: 100%"
>
<!--<ElOption label="微信在线支付" value="wechat" />-->
<!-- 只有平台用户才显示线下转账选项 -->
<!-- 所有用户都显示微信在线支付 -->
<ElOption label="微信在线支付" value="wechat" />
<!-- 平台用户额外显示线下转账 -->
<ElOption
v-if="userStore.info.user_type === 1 || userStore.info.user_type === 2"
label="线下转账"
@@ -298,7 +299,7 @@
const createForm = reactive<{ amount: number; payment_method: string; shop_id: number | null }>({
amount: 100,
payment_method: '线下转账',
payment_method: '',
shop_id: null
})
@@ -530,6 +531,8 @@
const showCreateDialog = async () => {
// 重新加载店铺列表,确保获取最新数据
await loadShops()
// 所有用户默认微信支付
createForm.payment_method = 'wechat'
createDialogVisible.value = true
}
@@ -537,7 +540,7 @@
const handleCreateDialogClosed = () => {
createFormRef.value?.resetFields()
createForm.amount = 100
createForm.payment_method = '线下转账'
createForm.payment_method = ''
createForm.shop_id = null
}