ffb67970 by 杨炀

no message

1 parent 91ac4d3f
...@@ -135,9 +135,7 @@ ...@@ -135,9 +135,7 @@
135 135
136 <div class="tip" v-if="remark"> 136 <div class="tip" v-if="remark">
137 <label>{{ language == 0 ?'开票须知':'Invoice Notice' }}:</label> 137 <label>{{ language == 0 ?'开票须知':'Invoice Notice' }}:</label>
138 <div> 138 <div v-html="remark"></div>
139 {{remark}}
140 </div>
141 </div> 139 </div>
142 </div> 140 </div>
143 </el-col> 141 </el-col>
...@@ -358,7 +356,8 @@ function goEditAddress(id) { ...@@ -358,7 +356,8 @@ function goEditAddress(id) {
358 function getRemark() { 356 function getRemark() {
359 getBaseInfoByActiveId(cptId).then(res=>{ 357 getBaseInfoByActiveId(cptId).then(res=>{
360 if(res.data){ 358 if(res.data){
361 remark.value = res.data.remarks 359 // remark.value = res.data.remarks
360 remark.value = res.data.remarks.replace(/\n/g, '<br>')
362 } 361 }
363 }) 362 })
364 } 363 }
......
...@@ -76,6 +76,7 @@ import useUserStore from "@/store/modules/user"; ...@@ -76,6 +76,7 @@ import useUserStore from "@/store/modules/user";
76 import cache from "@/plugins/cache"; 76 import cache from "@/plugins/cache";
77 import {useStorage} from "@vueuse/core/index"; 77 import {useStorage} from "@vueuse/core/index";
78 import {refundApply} from "@/apiPc/match"; 78 import {refundApply} from "@/apiPc/match";
79 import dayjs from "dayjs";
79 const language= useStorage('language',0) 80 const language= useStorage('language',0)
80 const router = useRouter() 81 const router = useRouter()
81 const {proxy} = getCurrentInstance() 82 const {proxy} = getCurrentInstance()
...@@ -146,6 +147,13 @@ function continueSign(n){ ...@@ -146,6 +147,13 @@ function continueSign(n){
146 }) 147 })
147 return 148 return
148 } 149 }
150 if(n.signEndTime <= dayjs().format('YYYY-MM-DD HH:mm:ss')){
151 ElMessage({
152 message: language.value==0?'赛事报名已结束无法继续报名':'The event registration has ended.',
153 type: 'warning'
154 })
155 return
156 }
149 if (user.utype == '1') { 157 if (user.utype == '1') {
150 // 个人报名 158 // 个人报名
151 router.push({ 159 router.push({
......
...@@ -46,11 +46,12 @@ ...@@ -46,11 +46,12 @@
46 </el-form-item> 46 </el-form-item>
47 </el-col> 47 </el-col>
48 <el-col :lg="12"> 48 <el-col :lg="12">
49 <el-form-item :label="language==0?'出生日期':'Date of Birth'" prop="birth" required> 49 <el-form-item :label="language==0?'出生日期1':'Date of Birth'" prop="birth" required>
50 <el-date-picker 50 <el-date-picker
51 v-model="form.birth" :disabled="editgay&&form.labelArr.indexOf('0')>-1" 51 v-model="form.birth" :disabled="editgay&&form.labelArr.indexOf('0')>-1"
52 style="width: 100%;" 52 style="width: 100%;"
53 type="date" format="YYYY-MM-DD" value-format="YYYY-MM-DD" 53 type="date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
54 :disabled-date="disabledBirth"
54 /> 55 />
55 </el-form-item> 56 </el-form-item>
56 <el-form-item :label="language==0?'主要会员角色':'roles'" prop="labelArr"> 57 <el-form-item :label="language==0?'主要会员角色':'roles'" prop="labelArr">
...@@ -106,7 +107,7 @@ ...@@ -106,7 +107,7 @@
106 import {reactive, ref, toRefs, watch} from 'vue' 107 import {reactive, ref, toRefs, watch} from 'vue'
107 import {getCurrentInstance, nextTick, onMounted} from '@vue/runtime-core' 108 import {getCurrentInstance, nextTick, onMounted} from '@vue/runtime-core'
108 import * as match from '@/apiPc/match' 109 import * as match from '@/apiPc/match'
109 import {ElMessage} from 'element-plus' 110 import {dayjs, ElMessage} from 'element-plus'
110 import _ from 'lodash' 111 import _ from 'lodash'
111 import {useStorage} from "@vueuse/core/index"; 112 import {useStorage} from "@vueuse/core/index";
112 const language= useStorage('language',0) 113 const language= useStorage('language',0)
...@@ -249,6 +250,10 @@ function reset(){ ...@@ -249,6 +250,10 @@ function reset(){
249 }) 250 })
250 } 251 }
251 } 252 }
253 function disabledBirth(date) {
254 const today = dayjs().format('YYYY-MM-DD')
255 return (date.getTime() >= dayjs(today).valueOf())
256 }
252 function getCountryList() { 257 function getCountryList() {
253 match.countryList().then(res => { 258 match.countryList().then(res => {
254 countryList.value = res.data 259 countryList.value = res.data
......
...@@ -90,8 +90,9 @@ ...@@ -90,8 +90,9 @@
90 :required="!form.wdsfMin&&form.labelArr.indexOf('0')>-1"> 90 :required="!form.wdsfMin&&form.labelArr.indexOf('0')>-1">
91 <el-input v-model="form.idcCode" :disabled="editgay" @blur="giveBirthDay"/> 91 <el-input v-model="form.idcCode" :disabled="editgay" @blur="giveBirthDay"/>
92 </el-form-item> 92 </el-form-item>
93 <el-form-item :label="language==0?'出生日期':'Date of Birth'" prop="birth" 93 <el-form-item :label="language==0?'2出生日期':'Date of Birth'" prop="birth"
94 :required="!form.wdsfMin&&form.labelArr.indexOf('0')>-1"> 94 :required="!form.wdsfMin&&form.labelArr.indexOf('0')>-1"
95 :disabled-date="disabledBirth">
95 <el-date-picker 96 <el-date-picker
96 v-model="form.birth" :disabled="form.idcType=='0'" 97 v-model="form.birth" :disabled="form.idcType=='0'"
97 style="width: 100%;" 98 style="width: 100%;"
...@@ -137,7 +138,7 @@ ...@@ -137,7 +138,7 @@
137 import {reactive, ref, toRefs, watch} from 'vue' 138 import {reactive, ref, toRefs, watch} from 'vue'
138 import {getCurrentInstance, nextTick, onMounted} from '@vue/runtime-core' 139 import {getCurrentInstance, nextTick, onMounted} from '@vue/runtime-core'
139 import * as match from '@/apiPc/match' 140 import * as match from '@/apiPc/match'
140 import {ElMessage} from 'element-plus' 141 import {dayjs, ElMessage} from 'element-plus'
141 import _ from 'lodash' 142 import _ from 'lodash'
142 import {useStorage} from "@vueuse/core/index"; 143 import {useStorage} from "@vueuse/core/index";
143 import {checkWdsf, getCaptchaSms} from "@/apiPc/match"; 144 import {checkWdsf, getCaptchaSms} from "@/apiPc/match";
...@@ -284,6 +285,9 @@ watch(show, (value) => { ...@@ -284,6 +285,9 @@ watch(show, (value) => {
284 // proxy.$refs['dialogRef'].clearValidate() 285 // proxy.$refs['dialogRef'].clearValidate()
285 }) 286 })
286 }) 287 })
288 function disabledBirth(time) {
289 return time.getTime() > new Date().getTime()
290 }
287 function resetCode() { 291 function resetCode() {
288 isCodeTrue.value = false 292 isCodeTrue.value = false
289 } 293 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!