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>
<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-dropdown-menu :close-on-click-outside="false" :close-on-click-overlay="false">
@@ -55,16 +56,24 @@ layout("/layouts/platform_h5.html"){
</div>
<script>
<!--#include('../common/typeInfo.js'){}#-->
<!--#include('../common/projectInfo.js'){}#-->
<!--
#include("../common/typeInfo.js")
{
}
#-->
<!--
#include("../common/projectInfo.js")
{
}
#-->
<!--#include('../common/applyForm.js'){}#-->
new Vue({
el: "#app",
store,
components: {
'type-info': typeInfo,
'project-info': projectInfo,
'apply-form': applyForm,
"type-info": typeInfo,
"project-info": projectInfo,
"apply-form": applyForm
},
data() {
return {
@@ -73,9 +82,9 @@ layout("/layouts/platform_h5.html"){
pageSize: 10,
totalCount: 0,
year: new Date().getFullYear(),
type: null,
type: null
},
typeOptions: [],
typeOptions: []
}
},
methods: {
@@ -93,7 +102,12 @@ layout("/layouts/platform_h5.html"){
this.doSearch()
},
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
} else {
delete row.contributionFiles
@@ -107,7 +121,7 @@ layout("/layouts/platform_h5.html"){
this.$refs.projectInfoRef.onOpen(row)
},
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
},
doSearch() {
@@ -117,7 +131,7 @@ layout("/layouts/platform_h5.html"){
this.$refs.tableListRef.doSearch()
})
}
},
}
})
</script>