This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user