This commit is contained in:
server
2025-09-16 18:05:01 +08:00
parent 9bebf2d960
commit 869b9c520e
4 changed files with 20 additions and 18 deletions
@@ -108,8 +108,14 @@ layout("/layouts/platform.html"){
<activity-info ref="infoRef"></activity-info>
<span slot="footer" class="dialog-footer">
<template v-if="time >= 0 || $store.state.user.loginname === '45066'">
<el-button @click="infoVisible = false">取消</el-button>
<el-button type="primary" @click="onOpen(infoRow)">
去报名
</el-button>
</template>
<el-statistic
v-if="time < 0"
v-else
format="DD 天 HH 时 mm 分钟 ss 秒"
:value="new Date(infoRow.activitySignUpStartTime)"
time-indices
@@ -117,12 +123,6 @@ layout("/layouts/platform.html"){
@finish="time = 0"
>
</el-statistic>
<template v-else>
<el-button @click="infoVisible = false">取消</el-button>
<el-button type="primary" @click="onOpen(infoRow)" :disabled="time < 0">
去报名
</el-button>
</template>
</span>
</el-dialog>
@@ -138,6 +138,7 @@ layout("/layouts/platform.html"){
"course-list": courseList,
"activity-info": info,
},
store,
data() {
return {
pageForm: {
@@ -165,7 +166,7 @@ layout("/layouts/platform.html"){
})
},
onOpen(row) {
if(this.$moment().isBefore(this.$moment(row.activitySignUpStartTime))) {
if(this.$store.state.user.loginname !== '45066' && this.$moment().isBefore(this.$moment(row.activitySignUpStartTime))) {
this.onView(row)
return
}
@@ -75,7 +75,7 @@ layout("/layouts/platform_h5.html"){
</div>
<div class="button">
<van-button @click="onApply(infoRow)" type="primary" block>
<span v-if="time >= 0">
<span v-if="time >= 0 || $store.state.user.loginname === '45066'">
去报名
</span>
<template v-else>
@@ -124,7 +124,7 @@ layout("/layouts/platform_h5.html"){
this.infoVisible = true
},
onApply(row) {
if(this.$moment().isBefore(this.$moment(row.activitySignUpStartTime))) {
if(this.$store.state.user.loginname !== '45066' && this.$moment().isBefore(this.$moment(row.activitySignUpStartTime))) {
this.onView(row)
return
}