This commit is contained in:
@jyuhsin
2025-09-18 17:56:58 +08:00
parent 2ab1cc4114
commit 769bec658f
@@ -7,7 +7,8 @@ layout("/layouts/platform_h5.html"){
</style> </style>
<div id="app"> <div id="app">
<van-nav-bar title="慈善捐助项目" left-text="返回" left-arrow @click-left="historyBack" fixed placeholder></van-nav-bar> <van-nav-bar title="慈善捐助项目" left-text="返回" left-arrow @click-left="historyBack" fixed
placeholder></van-nav-bar>
<van-sticky offset-top="46px"> <van-sticky offset-top="46px">
<van-dropdown-menu :close-on-click-outside="false" :close-on-click-overlay="false"> <van-dropdown-menu :close-on-click-outside="false" :close-on-click-overlay="false">
@@ -55,16 +56,24 @@ layout("/layouts/platform_h5.html"){
</div> </div>
<script> <script>
<!--#include('../common/typeInfo.js'){}#--> <!--
<!--#include('../common/projectInfo.js'){}#--> #include("../common/typeInfo.js")
{
}
#-->
<!--
#include("../common/projectInfo.js")
{
}
#-->
<!--#include('../common/applyForm.js'){}#--> <!--#include('../common/applyForm.js'){}#-->
new Vue({ new Vue({
el: "#app", el: "#app",
store, store,
components: { components: {
'type-info': typeInfo, "type-info": typeInfo,
'project-info': projectInfo, "project-info": projectInfo,
'apply-form': applyForm, "apply-form": applyForm
}, },
data() { data() {
return { return {
@@ -73,9 +82,9 @@ layout("/layouts/platform_h5.html"){
pageSize: 10, pageSize: 10,
totalCount: 0, totalCount: 0,
year: new Date().getFullYear(), year: new Date().getFullYear(),
type: null, type: null
}, },
typeOptions: [], typeOptions: []
} }
}, },
methods: { methods: {
@@ -93,7 +102,12 @@ layout("/layouts/platform_h5.html"){
this.doSearch() this.doSearch()
}, },
onApply(row) { onApply(row) {
if(row.contributionMode === 1) { if (!(this.$moment().isAfter(this.$moment(row.contributionStartTime))
&& this.$moment().isBefore(this.$moment(row.contributionEndTime)))) {
this.$toast("不在规定时间范围内")
return
}
if (row.contributionMode === 1) {
location.href = row.contributionUrl location.href = row.contributionUrl
} else { } else {
delete row.contributionFiles delete row.contributionFiles
@@ -107,7 +121,7 @@ layout("/layouts/platform_h5.html"){
this.$refs.projectInfoRef.onOpen(row) this.$refs.projectInfoRef.onOpen(row)
}, },
async queryType() { async queryType() {
const res = await this.$axios.post('/platform/contribution/type/queryContributionType') const res = await this.$axios.post("/platform/contribution/type/queryContributionType")
return res.data return res.data
}, },
doSearch() { doSearch() {
@@ -117,7 +131,7 @@ layout("/layouts/platform_h5.html"){
this.$refs.tableListRef.doSearch() this.$refs.tableListRef.doSearch()
}) })
} }
}, }
}) })
</script> </script>