Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c4285d0f
authored
2025-09-28 16:27:23 +0800
by
李婷婷
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉验证码
1 parent
b76c2301
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
27 deletions
src/viewsPc/match/components/affix-invitation.vue
src/viewsPc/register/components/utype3.vue
vite.config.js
src/viewsPc/match/components/affix-invitation.vue
View file @
c4285d0
...
...
@@ -79,17 +79,16 @@
<div
class=
"red"
>
Note: Notifications from the organizing committee will be sent to this email address.
</div>
<el-input
v-model=
"form.email"
type=
"email"
>
<template
#
append
>
<
!--
<
template
#
append
>
<el-button
v-loading=
"codeloading"
class=
"codeBtn"
@
click=
"sendEmail"
>
{{
language
==
0
?
'发送验证码'
:
'Send Code'
}}
</el-button>
</
template
>
</
template
>
-->
</el-input>
<!-- <div class="tip"></div>-->
</el-form-item>
<el-form-item
prop=
"code"
required
>
<
!-- <
el-form-item prop="code" required>
<el-input v-model="form.code" placeholder="Email verification code"/>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"language==0?'姓名':'Contact person Full Name'"
prop=
"fullName"
required
>
<el-input
v-model=
"form.fullName"
/>
</el-form-item>
...
...
@@ -578,7 +577,7 @@ const submit = async () => {
form
.
value
.
cptId
=
cptId
.
value
addInvitation
(
form
.
value
).
then
((
res
)
=>
{
if
(
res
.
data
==
-
200
)
{
ElMessage
.
error
(
language
.
value
==
0
?
'
邮箱验证码不正确'
:
'Invalid email verification code
'
)
ElMessage
.
error
(
language
.
value
==
0
?
'
提交失败'
:
'Submission failed
'
)
}
else
{
ElMessage
.
success
(
language
.
value
==
0
?
'提交成功'
:
'Successfully!'
)
showR
.
value
=
true
...
...
src/viewsPc/register/components/utype3.vue
View file @
c4285d0
...
...
@@ -29,7 +29,7 @@
</div>
</el-form-item>
<el-form-item
:label=
"language==0?'验证码':'Code'"
required
style=
"position: relative"
>
<
!--
<
el-form-item
:label=
"language==0?'验证码':'Code'"
required
style=
"position: relative"
>
<el-input
v-model=
"form.code"
>
<template
#
append
>
<el-button
class=
"codeBtn"
plain
style=
"width: 110px"
type=
"primary"
@
click=
"sendsmsMsg"
>
...
...
@@ -50,7 +50,7 @@
<div
class=
"tip"
>
Please click "Send" to receive the verification code via email, then enter it in the field above.
</div>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"language==0?'协会':'Association'"
>
<el-select
v-model=
"form.associationCode"
:placeholder=
"language==0?'请选择':'Please select'"
filterable
>
<el-option
v-for=
"item in associationList"
:key=
"item.code"
:label=
"language==0?item.nameCn:item.nameEn"
...
...
@@ -203,14 +203,14 @@ function register() {
}
return
}
if
(
!
form
.
value
.
code
)
{
if
(
language
.
value
==
0
)
{
ElMessage
.
warning
(
'请填写验证码'
)
}
else
{
ElMessage
.
warning
(
'Please fill in Code'
)
}
return
}
//
if (!form.value.code) {
//
if (language.value == 0) {
//
ElMessage.warning('请填写验证码')
//
} else {
//
ElMessage.warning('Please fill in Code')
//
}
//
return
//
}
if
(
!
form
.
value
.
password
)
{
ElMessage
.
warning
(
language
.
value
==
0
?
'请输入密码'
:
'Please enter password'
)
return
...
...
vite.config.js
View file @
c4285d0
import
{
defineConfig
,
loadEnv
}
from
'vite'
import
path
,
{
resolve
}
from
'path'
import
{
defineConfig
,
loadEnv
}
from
'vite'
import
path
,
{
resolve
}
from
'path'
import
createVitePlugins
from
'./vite/plugins'
import
inject
from
'@rollup/plugin-inject'
import
commonjs
from
'@rollup/plugin-commonjs'
// import legacy from '@vitejs/plugin-legacy'
// https://vitejs.dev/config/
export
default
defineConfig
(({
mode
,
command
})
=>
{
export
default
defineConfig
(({
mode
,
command
})
=>
{
const
env
=
loadEnv
(
mode
,
process
.
cwd
())
return
{
// 部署生产环境和开发环境下的URL。
...
...
@@ -64,27 +64,33 @@ export default defineConfig(({mode, command}) => {
proxy
:
{
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api/ztx-train'
:
{
// target: 'http://123.60.96.243:1896/stage-api',
target
:
'https://jijin.wtwuxicenter.com/stage-api'
,
target
:
'http://192.168.1.118:8082'
,
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
// target: 'https://tk005.wxjylt.com/stage-api',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-train/
,
''
)
},
'/dev-api/ztx-match'
:
{
target
:
'http://192.168.1.118:808
3
'
,
target
:
'http://192.168.1.118:808
2
'
,
// target: 'https://wdsfwuxicenter.com/stage-api/',
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
// target: 'https://tk005.wxjylt.com/stage-api',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-match/
,
''
)
},
'/dev-api/ztx-webSite'
:
{
target
:
'http://192.168.1.118:8082/'
,
target
:
'http://192.168.1.118:8082'
,
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://ces.2025wtcwuxi.com/stage-api/',
// target: 'https://tk005.wxjylt.com/stage-api',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-webSite/
,
''
)
},
'/dev-api'
:
{
// target: 'http://192.168.1.118:8082/
',
target
:
'http://192.168.1.22:8082'
,
target
:
'http://192.168.1.118:8082
'
,
//
target: 'http://192.168.1.22:8082',
// target: 'https://tk005.wxjylt.com/stage-api',
// target: 'http://124.70.181.90:1880/stage-api',
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
...
...
@@ -92,10 +98,12 @@ export default defineConfig(({mode, command}) => {
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
},
'/ticket'
:
{
// target: 'http://192.168.1.131:8098/
',
target
:
'http://36.153.235.222:8899/'
,
target
:
'http://192.168.1.118:8082
'
,
//
target: 'http://36.153.235.222:8899/',
// target: 'https://jijin.wtwuxicenter.com/h5/',
// target: 'https://ticketh5.wdsfwuxicenter.com/h5/',
// target: 'https://sys.2025wtcwuxi.com/stage-api/',
// target: 'https://tk005.wxjylt.com/stage-api',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
ticket/
,
''
)
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment