no message
Showing
2 changed files
with
12 additions
and
2 deletions
| ... | @@ -135,6 +135,14 @@ function getCountryList() { | ... | @@ -135,6 +135,14 @@ function getCountryList() { |
| 135 | 135 | ||
| 136 | const submit = () => { | 136 | const submit = () => { |
| 137 | proxy.$refs.iformRef.validate(valid => { | 137 | proxy.$refs.iformRef.validate(valid => { |
| 138 | if (form.value.email.indexOf('@') == -1) { | ||
| 139 | if (language.value == 0) { | ||
| 140 | ElMessage.warning('请填写正确的邮箱') | ||
| 141 | } else { | ||
| 142 | ElMessage.warning('Please fill in the correct email') | ||
| 143 | } | ||
| 144 | return | ||
| 145 | } | ||
| 138 | if (valid) { | 146 | if (valid) { |
| 139 | ElMessageBox.confirm( | 147 | ElMessageBox.confirm( |
| 140 | language.value == 0 ? '请确认信息正确并提交吗?' : 'Please confirm that the information is correct and submit it', | 148 | language.value == 0 ? '请确认信息正确并提交吗?' : 'Please confirm that the information is correct and submit it', |
| ... | @@ -148,7 +156,7 @@ const submit = () => { | ... | @@ -148,7 +156,7 @@ const submit = () => { |
| 148 | form.value.passportCopy = form.value.passportCopy[0].url | 156 | form.value.passportCopy = form.value.passportCopy[0].url |
| 149 | } | 157 | } |
| 150 | addInvitation(form.value).then((res) => { | 158 | addInvitation(form.value).then((res) => { |
| 151 | ElMessage.success('提交成功') | 159 | ElMessage.success(language.value == 0 ?'提交成功':'Successfully!') |
| 152 | showR.value = true | 160 | showR.value = true |
| 153 | }) | 161 | }) |
| 154 | }) | 162 | }) | ... | ... |
| ... | @@ -18,7 +18,9 @@ | ... | @@ -18,7 +18,9 @@ |
| 18 | <p>{{ n.belongTime }}</p> | 18 | <p>{{ n.belongTime }}</p> |
| 19 | </div> | 19 | </div> |
| 20 | <div class="item-body"> | 20 | <div class="item-body"> |
| 21 | <h3 class="esp_2"><span class="istop">{{ language==0?'置顶':'TOP' }}</span>{{n.name}}</h3> | 21 | <h3 class="esp_2"> |
| 22 | <span class="istop" v-if="n.isTop == '1'">{{ language==0?'置顶':'TOP' }}</span> | ||
| 23 | {{n.name}}</h3> | ||
| 22 | </div> | 24 | </div> |
| 23 | <a class="go">{{ language==0?'查看详情':'DETAIL' }} ⇀</a> | 25 | <a class="go">{{ language==0?'查看详情':'DETAIL' }} ⇀</a> |
| 24 | </div> | 26 | </div> | ... | ... |
-
Please register or sign in to post a comment