风险告知书样式

This commit is contained in:
Paidax
2025-04-05 15:32:30 +08:00
parent 3603a1da77
commit d1ad7f172d
@@ -27,21 +27,15 @@ layout("/mobile/platform.html"){
</style>
<div id="app" v-cloak>
<van-nav-bar :title="title"
@click-left="pjaxReplace('/mobile/activity/Sports/list/activityList')" fixed
left-arrow
placeholder></van-nav-bar>
<van-nav-bar :title="title" @click-left="pjaxReplace('/mobile/activity/Sports/list/activityList')" fixed left-arrow placeholder></van-nav-bar>
<div class="search-fixed">
<van-dropdown-menu active-color="#1989fa">
<!-- <van-dropdown-item v-model="pageForm.isMenWomen" @change="yearChange"
:options="sexList"></van-dropdown-item>-->
<van-dropdown-item v-model="pageForm.groupName" @change="yearChange"
:options="groupList"></van-dropdown-item>
<van-dropdown-item :options="eventList" @change="yearChange"
v-model="pageForm.eventId"></van-dropdown-item>
<van-dropdown-item :options="auditList" @change="yearChange"
v-model="pageForm.isAudit"></van-dropdown-item>
<van-dropdown-item v-model="pageForm.groupName" @change="yearChange" :options="groupList"></van-dropdown-item>
<van-dropdown-item :options="eventList" @change="yearChange" v-model="pageForm.eventId"></van-dropdown-item>
<van-dropdown-item :options="auditList" @change="yearChange" v-model="pageForm.isAudit"></van-dropdown-item>
</van-dropdown-menu>
</div>
@@ -51,20 +45,16 @@ layout("/mobile/platform.html"){
mode="closeable"
text="自己报名的项目如要修改请点击取消报名后再重新报名,若其他人帮助报名则联系报名人取消!"
></van-notice-bar>
<van-list :finished="finished" :finished-text="tableData.length>0?'没有更多了':''"
v-model="loading" @load="pageData">
<van-list :finished="finished" :finished-text="tableData.length>0?'没有更多了':''" v-model="loading" @load="pageData">
<div v-for="o in tableData" class="van-doc-card">
<van-row>
<van-col span="24" class="username">
{{ o.allName }}
<div v-if="o.status"
style="display: flex;justify-content: flex-end">
<div v-if="o.status" style="display: flex; justify-content: flex-end">
<span v-if="o.status===1">待审核</span>
<span v-if="o.status===2">已成功报名</span>
<span v-if="o.status===3">审核不通过</span>
</div>
</van-col>
</van-row>
@@ -106,9 +96,7 @@ layout("/mobile/platform.html"){
<van-row class="info" v-if="o.projectType==2">
<van-col span="24">
<van-cell title="可报队数:">
{{ o.restrictTotalTeam }}队
</van-cell>
<van-cell title="可报队数:">{{ o.restrictTotalTeam }}队</van-cell>
</van-col>
</van-row>
@@ -116,16 +104,11 @@ layout("/mobile/platform.html"){
<van-col span="24">
<span>每队可报人数:</span>
<span v-if="o.athletesMaxNum">{{ o.athletesMaxNum }}人</span>
<span v-else-if="o.applyType===1">{{
o.athletesMaxNum * o.restrictTotalTeam
}}人</span>
<span v-else-if="o.applyType===2&&o.eveProjectType==='1'">{{
o.athletesMaxNum
}}人</span>
<span
v-else-if="o.applyType===2&&o.eveProjectType==='2'">{{
(o.restrictGirlNum ? o.restrictGirlNum : 0) + (o.restrictBoyNum ? o.restrictBoyNum : 0)
}}人</span>
<span v-else-if="o.applyType===1">{{ o.athletesMaxNum * o.restrictTotalTeam }}人</span>
<span v-else-if="o.applyType===2&&o.eveProjectType==='1'">{{ o.athletesMaxNum }}人</span>
<span v-else-if="o.applyType===2&&o.eveProjectType==='2'">
{{ (o.restrictGirlNum ? o.restrictGirlNum : 0) + (o.restrictBoyNum ? o.restrictBoyNum : 0) }}人
</span>
<span v-else>暂无</span>
</van-col>
</van-row>
@@ -142,18 +125,13 @@ layout("/mobile/platform.html"){
v-else-if="o.totalApplyNum>0&&o.applyType===3">{{ o.totalApplyNum }}人</span>
<span v-else>0人</span>-->
<span>{{o.totalApplyNum}}</span>
</van-col>
</van-row>
<van-row class="info"
v-if="JSON.parse(o.applyWay).length===2&&JSON.parse(o.applyWay).includes(1)">
<van-row class="info" v-if="JSON.parse(o.applyWay).length===2&&JSON.parse(o.applyWay).includes(1)">
<van-col span="24">
<span>已报名人员:</span>
<span v-if="o.userApplyNames" style="color: #0e78c5"
@click="openApplyUser(o)">{{
o.userApplyNames
}}</span>
<span v-if="o.userApplyNames" style="color: #0e78c5" @click="openApplyUser(o)">{{ o.userApplyNames }}</span>
<span v-else>未报名</span>
</van-col>
</van-row>
@@ -161,19 +139,23 @@ layout("/mobile/platform.html"){
<van-row class="info">
<van-col span="24">
<div class="register-icon">
<img v-if="o.userApply==0&&o.applyWay.includes(1)"
@click="openActivity(o)"
src="/assets/mobile/svg/activity/wbm.svg" />
<img v-if="o.userApply>0&&o.applyWay.includes(1)&&o.applyUser===userId"
@click="openActivity(o)"
src="/assets/mobile/svg/activity/qxbm.svg" />
<van-button style="border-radius: 10px" block size="small"
type="info"
@click="openSign(o)"
v-if="o.userApply>0
<img v-if="o.userApply==0&&o.applyWay.includes(1)" @click="openActivity(o)" src="/assets/mobile/svg/activity/wbm.svg" />
<img
v-if="o.userApply>0&&o.applyWay.includes(1)&&o.applyUser===userId"
@click="openActivity(o)"
src="/assets/mobile/svg/activity/qxbm.svg"
/>
<van-button
style="border-radius: 10px"
block
size="small"
type="info"
@click="openSign(o)"
v-if="o.userApply>0
&&o.applyWay.includes(1)
&&o.applyUser!==userId
&&o.isSign&&!o.applyUserSign">
&&o.isSign&&!o.applyUserSign"
>
签 字
</van-button>
</div>
@@ -183,37 +165,36 @@ layout("/mobile/platform.html"){
</van-list>
</div>
<van-action-sheet v-model="teamSignUpShow" :close-on-click-overlay="false"
:style="{ height: '100%',width:'100%' ,'overflow-y':'visible'}"
:title="isView?'查看报名信息':'组队报名'">
<div class="van-card-header">
本人信息
</div>
<van-action-sheet
v-model="teamSignUpShow"
:close-on-click-overlay="false"
:style="{ height: '100%',width:'100%' ,'overflow-y':'visible'}"
:title="isView?'查看报名信息':'组队报名'"
>
<div class="van-card-header">本人信息</div>
<div class="van-card-body">
<van-field label="姓名" readonly
v-model="userName"></van-field>
<van-field label="工号" readonly
v-model="loginName"></van-field>
<van-field label="姓名" readonly v-model="userName"></van-field>
<van-field label="工号" readonly v-model="loginName"></van-field>
<van-field label="性别" readonly v-model="sex"></van-field>
<van-field label="所在单位" readonly
v-model="unitName"></van-field>
<van-field label="所属工会" readonly
v-model="unionName"></van-field>
<van-field label="所在单位" readonly v-model="unitName"></van-field>
<van-field label="所属工会" readonly v-model="unionName"></van-field>
<van-field label="签字" readonly v-if="activityData.isSign&&isView">
<template #input>
<van-image
:src="APP_DOMAIN + '/file_server/fileStreamPreview?id=' + formData.applyUserSign"
width="100" height="50" v-if="formData.applyUserSign"></van-image>
width="100"
height="50"
v-if="formData.applyUserSign"
></van-image>
<span v-else>暂无</span>
</template>
</van-field>
</div>
<template
v-for="(item,index) in registerList.filter(v=>v.loginName !== loginName)">
<template v-for="(item,index) in registerList.filter(v=>v.loginName !== loginName)">
<div class="van-card-header">
队友信息{{ index + 1 }}
<span style="color:red;" @click="removeRegUser(item)" v-if="!isView">删除</span>
<span style="color: red" @click="removeRegUser(item)" v-if="!isView">删除</span>
</div>
<div class="van-card-body">
<van-field label="姓名" readonly v-model="item.userName"></van-field>
@@ -225,142 +206,104 @@ layout("/mobile/platform.html"){
<template #input>
<van-image
:src="APP_DOMAIN + '/file_server/fileStreamPreview?id=' + formData.applyUserSign"
width="100" height="50"></van-image>
width="100"
height="50"
></van-image>
<span v-else>暂无</span>
</template>
</van-field>
</div>
</template>
<div
v-if="registerList.filter(v=>v.loginName !== loginName).length === 0">
<div style="padding: 10px 10px;text-align: center;color: #9b9999;">
暂无队友信息,请点击添加队友按钮
</div>
<div v-if="registerList.filter(v=>v.loginName !== loginName).length === 0">
<div style="padding: 10px 10px; text-align: center; color: #9b9999">暂无队友信息,请点击添加队友按钮</div>
</div>
<div style="margin: 20px 20px 10px 20px" v-if="!isView">
<div class="van-card-header">
签字
</div>
<div class="van-card-header">签字</div>
<div class="van-card-body">
<mobile-sign ref="signature" :my_sign.sync="formData.applyUserSign"
:is_value_base64="false"></mobile-sign>
<mobile-sign ref="signature" :my_sign.sync="formData.applyUserSign" :is_value_base64="false"></mobile-sign>
</div>
</div>
<div style="display: flex;justify-content: center" v-if="!isView">
<van-radio-group v-model="formData.isCy" direction="horizontal"
v-if="activityData.isSign">
<div style="display: flex; justify-content: center" v-if="!isView">
<van-radio-group v-model="formData.isCy" direction="horizontal" v-if="activityData.isSign">
<van-radio name="1"></van-radio>
<span style="color: red"
@click="fxgzsActionPopup=true">自愿参赛责任及风险告知书</span>
<span style="color: red" @click="fxgzsActionPopup=true">自愿参赛责任及风险告知书</span>
</van-radio-group>
</div>
<div style="margin: 20px 20px 10px 20px" v-if="!isView">
<van-row gutter="20">
<van-col span="12">
<van-button @click="openUserActionSheet" style="border-radius: 10px" block
type="info">
添加队友
</van-button>
<van-button @click="openUserActionSheet" style="border-radius: 10px" block type="info">添加队友</van-button>
</van-col>
<van-col span="12">
<van-button @click="doTeamSignUp()" style="border-radius: 10px" block
type="info">
提 交
</van-button>
<van-button @click="doTeamSignUp()" style="border-radius: 10px" block type="info">提 交</van-button>
</van-col>
</van-row>
</div>
</van-action-sheet>
<van-action-sheet v-model="userActionSheet" title="选择人员" class="userActionPopup">
<van-search v-model="searchKey" @search="onSearchUser" show-action
placeholder="请输入姓名或者工号搜索">
<van-search v-model="searchKey" @search="onSearchUser" show-action placeholder="请输入姓名或者工号搜索">
<template #action>
<div @click="onSearchUser">搜索</div>
</template>
</van-search>
<div class="van-action-sheet__content mt5 user-select-sheet"
v-if="searchUserList && searchUserList.length>0">
<div class="van-action-sheet__content mt5 user-select-sheet" v-if="searchUserList && searchUserList.length>0">
<template v-if="searchLoading">
<van-loading size="24px" vertical>搜索中...</van-loading>
</template>
<template v-if="!searchLoading">
<template v-for="item in searchUserList"
v-if="!registerList.map(v=>v.id).includes(item.id)">
<button @click="searchUserAdd(item)"
class="van-action-sheet__item">
<span class="van-action-sheet__name"
style="display: flex;flex-direction: column">
<div style="display: flex;justify-content: center;">
{{ item.userName }}-{{ item.loginName }}-{{item.sex}}
</div>
<div>
{{ item.unitName }}
</div>
</span>
<template v-for="item in searchUserList" v-if="!registerList.map(v=>v.id).includes(item.id)">
<button @click="searchUserAdd(item)" class="van-action-sheet__item">
<span class="van-action-sheet__name" style="display: flex; flex-direction: column">
<div style="display: flex; justify-content: center">{{ item.userName }}-{{ item.loginName }}-{{item.sex}}</div>
<div>{{ item.unitName }}</div>
</span>
</button>
</template>
</template>
</div>
<van-empty v-else image="search" description="请输入姓名或者工号搜索"></van-empty>
</van-action-sheet>
<van-action-sheet v-model="fxgzsActionPopup" title="自愿参赛责任及风险告知书">
<div v-html="activityData.precautions"></div>
<div v-html="activityData.precautions" style="padding: 10px 15px"></div>
</van-action-sheet>
<van-action-sheet v-model="signActionPopup" title="签字">
<div class="van-card-header">
签字
</div>
<div class="van-card-header">签字</div>
<div class="van-card-body">
<mobile-sign ref="signature" :my_sign.sync="formData.applyUserSign"
:is_value_base64="false"></mobile-sign>
<mobile-sign ref="signature" :my_sign.sync="formData.applyUserSign" :is_value_base64="false"></mobile-sign>
</div>
<div style="display: flex;justify-content: center;padding-bottom: 10px">
<div style="display: flex; justify-content: center; padding-bottom: 10px">
<van-radio-group v-model="formData.isCy" direction="horizontal">
<van-radio name="1"></van-radio>
<span style="color: red"
@click="fxgzsActionPopup=true">自愿参赛责任及风险告知书</span>
<span style="color: red" @click="fxgzsActionPopup=true">自愿参赛责任及风险告知书</span>
</van-radio-group>
</div>
<van-row gutter="20">
<van-col span="24">
<van-button @click="doSign()" style="border-radius: 10px" block
type="info">
提 交
</van-button>
<van-button @click="doSign()" style="border-radius: 10px" block type="info">提 交</van-button>
</van-col>
</van-row>
</van-action-sheet>
<van-action-sheet v-model="activityDialog" :close-on-click-overlay="false"
:style="{ height: '100%',width:'100%' ,'overflow-y':'visible'}"
title="项目报名">
<div class="van-card-header">
本人信息
</div>
<van-action-sheet
v-model="activityDialog"
:close-on-click-overlay="false"
:style="{ height: '100%',width:'100%' ,'overflow-y':'visible'}"
title="项目报名"
>
<div class="van-card-header">本人信息</div>
<div class="van-card-body">
<van-field label="姓名" readonly
v-model="userName"></van-field>
<van-field label="工号" readonly
v-model="loginName"></van-field>
<van-field label="姓名" readonly v-model="userName"></van-field>
<van-field label="工号" readonly v-model="loginName"></van-field>
<van-field label="性别" readonly v-model="sex"></van-field>
<van-field label="所在单位" readonly
v-model="unitName"></van-field>
<van-field label="所属工会" readonly
v-model="unionName"></van-field>
<van-field label="所在单位" readonly v-model="unitName"></van-field>
<van-field label="所属工会" readonly v-model="unionName"></van-field>
<van-radio-group v-model="formData.teamId" v-if="projectType==2">
<van-cell-group>
<template v-for="i in teams">
@@ -372,28 +315,20 @@ layout("/mobile/platform.html"){
</template>
</van-cell-group>
</van-radio-group>
</div>
<div class="van-card-header">
签字
</div>
<div class="van-card-header">签字</div>
<div class="van-card-body">
<mobile-sign ref="signature" :my_sign.sync="formData.applyUserSign"
:is_value_base64="false"></mobile-sign>
<mobile-sign ref="signature" :my_sign.sync="formData.applyUserSign" :is_value_base64="false"></mobile-sign>
</div>
<div style="display: flex;justify-content: center;padding-bottom: 10px">
<div style="display: flex; justify-content: center; padding-bottom: 10px">
<van-radio-group v-model="formData.isCy" direction="horizontal">
<van-radio name="1"></van-radio>
<span style="color: red"
@click="fxgzsActionPopup=true">自愿参赛责任及风险告知书</span>
<span style="color: red" @click="fxgzsActionPopup=true">自愿参赛责任及风险告知书</span>
</van-radio-group>
</div>
<van-row gutter="20">
<van-col span="24">
<van-button @click="doActivityConfirm()" style="border-radius: 10px" block
type="info">
提 交
</van-button>
<van-button @click="doActivityConfirm()" style="border-radius: 10px" block type="info">提 交</van-button>
</van-col>
</van-row>
</van-action-sheet>
@@ -410,9 +345,7 @@ layout("/mobile/platform.html"){
</van-dialog>-->
<van-empty v-if="mLoading==false&&tableData.length==0" class="custom-image" image="/none.svg"
description="暂无数据"></van-empty>
<van-empty v-if="mLoading==false&&tableData.length==0" class="custom-image" image="/none.svg" description="暂无数据"></van-empty>
</div>
<script>
@@ -482,42 +415,43 @@ layout("/mobile/platform.html"){
methods: {
doSign() {
if (this.activityData.isSign && !this.formData.applyUserSign) {
this.$dialog.alert({
title: "温馨提示",
message: "请签字后再提交!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "请签字后再提交!"
})
.then(() => {})
return
}
if (this.activityData.isSign && !this.formData.isCy) {
this.$dialog.alert({
title: "温馨提示",
message: "请先阅读自愿参赛责任及风险告知书!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "请先阅读自愿参赛责任及风险告知书!"
})
.then(() => {})
return
}
this.$dialog.confirm({
title: "提示",
message: "您确认要提交吗?"
}).then(() => {
$.post("/mobile/activity/Sports/list/doSign", {
applyUserSign: this.formData.applyUserSign,
activityId: this.activityData.activityId,
eventId: this.activityData.eventId
}).then(resp => {
if (resp.code === 0) {
this.$toast.success("提交成功!")
window.location.reload()
} else {
this.$toast.fail(resp.msg)
}
this.$dialog
.confirm({
title: "提示",
message: "您确认要提交吗?"
})
.then(() => {
$.post("/mobile/activity/Sports/list/doSign", {
applyUserSign: this.formData.applyUserSign,
activityId: this.activityData.activityId,
eventId: this.activityData.eventId
}).then((resp) => {
if (resp.code === 0) {
this.$toast.success("提交成功!")
window.location.reload()
} else {
this.$toast.fail(resp.msg)
}
})
})
})
},
openSign(row) {
this.activityData = row
@@ -530,9 +464,9 @@ layout("/mobile/platform.html"){
const resp = await this.selectRegisterList()
if (resp) {
const selfInfo = resp.find(v => v.id === "${@shiro.getPrincipalProperty('id')}" && v.eventId === item.eventId)
const selfInfo = resp.find((v) => v.id === "${@shiro.getPrincipalProperty('id')}" && v.eventId === item.eventId)
if (selfInfo) {
this.registerList = resp.filter(v => v.eventId === item.eventId && v.applyUser === selfInfo.applyUser)
this.registerList = resp.filter((v) => v.eventId === item.eventId && v.applyUser === selfInfo.applyUser)
this.formData.applyUserSign = selfInfo.applyUserSign
}
this.teamSignUpShow = true
@@ -543,66 +477,59 @@ layout("/mobile/platform.html"){
activityId: this.formData.activityId
})
return resp.data
},
async doTeamSignUp() {
if (this.activityData.isSign && !this.formData.applyUserSign) {
this.$dialog.alert({
title: "温馨提示",
message: "请签字后再提交!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "请签字后再提交!"
})
.then(() => {})
return
}
if (this.activityData.isSign && !this.formData.isCy) {
this.$dialog.alert({
title: "温馨提示",
message: "请先阅读自愿参赛责任及风险告知书!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "请先阅读自愿参赛责任及风险告知书!"
})
.then(() => {})
return
}
const {
athletesMaxNum,
startAgeDate,
endAgeDate,
isMenWomen,
restrictBoyNum,
restrictGirlNum
} = this.events.find(v => v.eventId === this.formData.eventId)
const { athletesMaxNum, startAgeDate, endAgeDate, isMenWomen, restrictBoyNum, restrictGirlNum } = this.events.find(
(v) => v.eventId === this.formData.eventId
)
if (restrictBoyNum > 0) {
if (this.registerList.filter(v => v.sex === "男").length !== restrictBoyNum) {
this.$dialog.alert({
title: "温馨提示",
message: "男运动员需要报名" + restrictBoyNum + "人才能提交!"
}).then(() => {
})
if (this.registerList.filter((v) => v.sex === "男").length !== restrictBoyNum) {
this.$dialog
.alert({
title: "温馨提示",
message: "男运动员需要报名" + restrictBoyNum + "人才能提交!"
})
.then(() => {})
return
}
}
if (restrictGirlNum > 0) {
if (this.registerList.filter(v => v.sex === "女").length !== restrictGirlNum) {
this.$dialog.alert({
title: "温馨提示",
message: "女运动员需要报名" + restrictGirlNum + "人才能提交!"
}).then(() => {
})
if (this.registerList.filter((v) => v.sex === "女").length !== restrictGirlNum) {
this.$dialog
.alert({
title: "温馨提示",
message: "女运动员需要报名" + restrictGirlNum + "人才能提交!"
})
.then(() => {})
return
}
}
this.addRegisterList = await this.selectRegisterList()
let arr = []
if (this.addRegisterList && this.addRegisterList.length > 0) {
this.registerList.forEach(r => {
const num = this.addRegisterList.filter(a => Number(a.id) === r.id).length
this.registerList.forEach((r) => {
const num = this.addRegisterList.filter((a) => Number(a.id) === r.id).length
if (num === this.formData.restrictRegNumber) {
arr.push(r.userName)
}
@@ -610,20 +537,20 @@ layout("/mobile/platform.html"){
}
if (arr && arr.length > 0) {
this.$dialog.alert({
title: "温馨提示",
message: "【" + arr.toString() + "】已达到限报数量,您无法添加其组队!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "【" + arr.toString() + "】已达到限报数量,您无法添加其组队!"
})
.then(() => {})
return
}
this.$modal.confirm("您确定要提交吗?").then(async () => {
if (this.formData.teamId) {
this.$set(this.formData, "teamName", this.teams.find(v => v.id === this.formData.teamId).name)
this.$set(this.formData, "teamName", this.teams.find((v) => v.id === this.formData.teamId).name)
}
const userIds = this.registerList.map(v => v.id)
const userIds = this.registerList.map((v) => v.id)
await $.post("/mobile/activity/Sports/list/doTeamSignUp", {
activityId: this.formData.activityId,
eventId: this.formData.eventId,
@@ -631,7 +558,6 @@ layout("/mobile/platform.html"){
teamName: this.formData.teamName,
userIds: JSON.stringify(userIds),
applyUserSign: this.formData.applyUserSign
})
await this.onRefresh()
this.teamSignUpShow = false
@@ -639,27 +565,26 @@ layout("/mobile/platform.html"){
})
},
searchUserAdd(item) {
const {
restrictBoyNum,
restrictGirlNum
} = this.events.find(v => v.eventId === this.formData.eventId)
const nanRegisterList = this.registerList.filter(v => v.sex === "男").map(r => r.sex)
const nvRegisterList = this.registerList.filter(v => v.sex === "女").map(r => r.sex)
const { restrictBoyNum, restrictGirlNum } = this.events.find((v) => v.eventId === this.formData.eventId)
const nanRegisterList = this.registerList.filter((v) => v.sex === "男").map((r) => r.sex)
const nvRegisterList = this.registerList.filter((v) => v.sex === "女").map((r) => r.sex)
if (restrictBoyNum > 0 && nanRegisterList.length === restrictBoyNum && item.sex === "男") {
this.$dialog.alert({
title: "温馨提示",
message: "男教师报名人数已满"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "男教师报名人数已满"
})
.then(() => {})
return
}
if (restrictGirlNum > 0 && nvRegisterList.length === restrictGirlNum && item.sex === "女") {
this.$dialog.alert({
title: "温馨提示",
message: "女教师报名人数已满"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "女教师报名人数已满"
})
.then(() => {})
return
}
@@ -692,14 +617,16 @@ layout("/mobile/platform.html"){
this.$toast.fail("因为是组队报名,自己不能删除")
return
}
this.$dialog.confirm({
title: "提示",
message: "您确认要删除吗?"
}).then(() => {
const index = this.registerList.findIndex(v => v.id === item.id)
this.registerList.splice(index, 1)
}).catch(() => {
})
this.$dialog
.confirm({
title: "提示",
message: "您确认要删除吗?"
})
.then(() => {
const index = this.registerList.findIndex((v) => v.id === item.id)
this.registerList.splice(index, 1)
})
.catch(() => {})
},
openUserActionSheet() {
this.searchKey = ""
@@ -708,27 +635,26 @@ layout("/mobile/platform.html"){
this.userActionSheet = true
},
onBeforeClose(action, done) {
return done(false)
},
async doActivityConfirm() {
if (this.activityData.isSign && !this.formData.applyUserSign) {
this.$dialog.alert({
title: "温馨提示",
message: "请签字后再提交!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "请签字后再提交!"
})
.then(() => {})
return
}
if (this.activityData.isSign && !this.formData.isCy) {
this.$dialog.alert({
title: "温馨提示",
message: "请先阅读自愿参赛责任及风险告知书!"
}).then(() => {
})
this.$dialog
.alert({
title: "温馨提示",
message: "请先阅读自愿参赛责任及风险告知书!"
})
.then(() => {})
return
}
if (this.formData.teamId == null && this.projectType == 2) {
@@ -810,7 +736,7 @@ layout("/mobile/platform.html"){
userId: "${@shiro.getPrincipalProperty('id')}",
activityId: activityId,
eventId: eventId
}).then(resp => {
}).then((resp) => {
if (resp.code === 0) {
this.onRefresh()
this.teamSignUpShow = false
@@ -823,14 +749,7 @@ layout("/mobile/platform.html"){
return
}
const {
athletesMaxNum,
startAgeDate,
endAgeDate,
isMenWomen,
restrictBoyNum,
restrictGirlNum
} = this.events.find(
const { athletesMaxNum, startAgeDate, endAgeDate, isMenWomen, restrictBoyNum, restrictGirlNum } = this.events.find(
(v) => v.id === eventId
)
if (isMenWomen) {
@@ -911,8 +830,6 @@ layout("/mobile/platform.html"){
this.teamSignUpShow = true
return
}
} else {
if (isMenWomen != null && isMenWomen == 1 && "${@shiro.getPrincipalProperty('sex')}" != "男") {
this.$toast("此项目只能男性老师才能报名!")
@@ -1048,7 +965,7 @@ layout("/mobile/platform.html"){
}
.van-card-body {
padding: 0px 10px 0px 10px
padding: 0px 10px 0px 10px;
}
.user-select-sheet {