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
@@ -58,6 +58,7 @@ public class H5ContributionMineController {
Sql sql = Sqls.create(""" Sql sql = Sqls.create("""
SELECT SELECT
ca.*, ca.*,
ca.id as applyId,
cp.contributionName AS projectName, cp.contributionName AS projectName,
cp.contributionTypeCode, cp.contributionTypeCode,
cp.contributionStartTime, cp.contributionStartTime,
@@ -22,8 +22,14 @@ const applyForm = {
<van-field label="捐助方式" required :rules="[{ required: true }]" name="payMode" > <van-field label="捐助方式" required :rules="[{ required: true }]" name="payMode" >
<template #input> <template #input>
<van-radio-group v-model="formData.payMode" direction="horizontal"> <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="WeChat">
<van-radio name="Alipay"><van-icon size="18" name="alipay" />支付宝</van-radio> <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> </van-radio-group>
</template> </template>
</van-field> </van-field>
@@ -61,7 +67,7 @@ const applyForm = {
methods: { methods: {
onOpen(row) { onOpen(row) {
this.row = row this.row = row
if(row && row.id) { if(row && row.applyId) {
this.formData = clone(row) this.formData = clone(row)
} else { } else {
this.init() this.init()
@@ -103,6 +109,7 @@ const applyForm = {
style: /*language=CSS*/ ` style: /*language=CSS*/ `
::v-deep .van-radio__label { ::v-deep .van-radio__label {
display: flex; display: flex;
align-items: center;
} }
` `
} }
@@ -93,8 +93,12 @@ layout("/layouts/platform_h5.html"){
this.doSearch() this.doSearch()
}, },
onApply(row) { onApply(row) {
if(row.contributionMode === 1) {
location.href = row.contributionUrl
} else {
delete row.contributionFiles delete row.contributionFiles
this.$refs.applyFormRef.onOpen(row) this.$refs.applyFormRef.onOpen(row)
}
}, },
onTypeView(row) { onTypeView(row) {
this.$refs.typeInfoRef.onOpen(row) this.$refs.typeInfoRef.onOpen(row)