This commit is contained in:
@jyuhsin
2025-12-31 09:56:08 +08:00
parent 0dcf566571
commit 1ea5a34f66
@@ -403,10 +403,12 @@ layout("/layouts/platform_h5.html"){
methods: {
init() {
if (this.id) {
this.$axios.post("/platform/activity/culture/infoManage/activityInfo", {id: this.id}).then((res) => {
if(!this.id) return
this.$axios.post("/platform/activity/culture/infoManage/activityInfo", {id: this.id})
.then((res) => {
if (res.code === 0) {
this.viewData = res.data
this.checkScope(this.viewData.groupId)
//总人数限制
if (this.viewData.userNumberLimit === 1) {
} else if (this.viewData.userNumberLimit === 2) {
@@ -425,7 +427,6 @@ layout("/layouts/platform_h5.html"){
}
}
})
}
},
//查询报名人员
listTeamUser() {
@@ -764,14 +765,13 @@ layout("/layouts/platform_h5.html"){
//移除队友
removeTeamUser(index) {
this.teamUsers.splice(index, 1)
}
},
created() {
this.$axios.post('/platform/activity/basic/scope/getScopeUser', {activityGroupId: Number(GetQueryString("groupId"))}).then(res => {
if (res.code === 0) {
if (res.data > 0) {
this.init()
} else {
},
checkScope(groupId) {
this.$axios.post('/platform/activity/basic/scope/getScopeUser', {
activityGroupId: Number(groupId)
}).then(res => {
if (res.data === 0) {
this.$dialog.alert({
title: '标题',
message: '您没有权限参加此活动',
@@ -780,10 +780,11 @@ layout("/layouts/platform_h5.html"){
this.$pjaxReplace("/platform/home")
});
}
}
})
})
},
},
created() {
this.init()
}
})
</script>