Browse Source

必填验证

dev
mk 1 year ago
parent
commit
883c4e6281
  1. 10
      src/views/activity/detail.vue

10
src/views/activity/detail.vue

@ -46,7 +46,7 @@
<template #icon>
<img src="@/assets/images/icons/share.png" alt="" class="img_20">
</template> 转发</van-button>
<van-button type="info" size="small" :disabled="new Date(this.info.cutOffTime.replace(/-/g, '/')).getTime() < Date.now() || this.info.currentParticipants >= this.info.participants" round @click="save" v-if="info.online === 1">立即报名</van-button>
<van-button type="info" size="small" round @click="save" v-if="info.online === 1">立即报名</van-button>
</div>
</div>
<Share :show="showShare" @closeShare="showShare = false" />
@ -126,6 +126,14 @@ export default {
item.applicationId = this.$store.state.app.userInfo.id;
item.customerId = this.$store.state.app.userInfo.customerId;
})
if(this.signUp.findIndex(item=>!item.name) != -1){
this.$toast('人员姓名不能为空')
return
}
if(this.signUp.findIndex(item=>!item.mobile) != -1){
this.$toast('联系电话不能为空')
return
}
let parm = {
formDTOList: this.signUp
}

Loading…
Cancel
Save