This commit is contained in:
@jyuhsin
2025-09-18 16:06:27 +08:00
parent e30a1b3315
commit cfc4c5210d
3 changed files with 17 additions and 5 deletions
@@ -22,8 +22,14 @@ const applyForm = {
<van-field label="捐助方式" required :rules="[{ required: true }]" name="payMode" >
<template #input>
<van-radio-group v-model="formData.payMode" direction="horizontal">
<van-radio name="WeChat"><van-icon size="18" name="wechat-pay" />微信</van-radio>
<van-radio name="Alipay"><van-icon size="18" name="alipay" />支付宝</van-radio>
<van-radio name="WeChat">
<van-icon size="18" name="wechat-pay"></van-icon>
微信
</van-radio>
<van-radio name="Alipay">
<van-icon size="18" name="alipay"></van-icon>
支付宝
</van-radio>
</van-radio-group>
</template>
</van-field>
@@ -61,7 +67,7 @@ const applyForm = {
methods: {
onOpen(row) {
this.row = row
if(row && row.id) {
if(row && row.applyId) {
this.formData = clone(row)
} else {
this.init()
@@ -103,6 +109,7 @@ const applyForm = {
style: /*language=CSS*/ `
::v-deep .van-radio__label {
display: flex;
align-items: center;
}
`
}
@@ -93,8 +93,12 @@ layout("/layouts/platform_h5.html"){
this.doSearch()
},
onApply(row) {
delete row.contributionFiles
this.$refs.applyFormRef.onOpen(row)
if(row.contributionMode === 1) {
location.href = row.contributionUrl
} else {
delete row.contributionFiles
this.$refs.applyFormRef.onOpen(row)
}
},
onTypeView(row) {
this.$refs.typeInfoRef.onOpen(row)