去掉验证码
Showing
3 changed files
with
34 additions
and
27 deletions
| ... | @@ -79,17 +79,16 @@ | ... | @@ -79,17 +79,16 @@ |
| 79 | <div class="red">Note: Notifications from the organizing committee will be sent to this email address. | 79 | <div class="red">Note: Notifications from the organizing committee will be sent to this email address. |
| 80 | </div> | 80 | </div> |
| 81 | <el-input v-model="form.email" type="email"> | 81 | <el-input v-model="form.email" type="email"> |
| 82 | <template #append> | 82 | <!-- <template #append> |
| 83 | <el-button v-loading="codeloading" class="codeBtn" @click="sendEmail"> | 83 | <el-button v-loading="codeloading" class="codeBtn" @click="sendEmail"> |
| 84 | {{ language == 0 ? '发送验证码' : 'Send Code' }} | 84 | {{ language == 0 ? '发送验证码' : 'Send Code' }} |
| 85 | </el-button> | 85 | </el-button> |
| 86 | </template> | 86 | </template> --> |
| 87 | </el-input> | 87 | </el-input> |
| 88 | <!-- <div class="tip"></div>--> | ||
| 89 | </el-form-item> | 88 | </el-form-item> |
| 90 | <el-form-item prop="code" required> | 89 | <!-- <el-form-item prop="code" required> |
| 91 | <el-input v-model="form.code" placeholder="Email verification code"/> | 90 | <el-input v-model="form.code" placeholder="Email verification code"/> |
| 92 | </el-form-item> | 91 | </el-form-item> --> |
| 93 | <el-form-item :label="language==0?'姓名':'Contact person Full Name'" prop="fullName" required> | 92 | <el-form-item :label="language==0?'姓名':'Contact person Full Name'" prop="fullName" required> |
| 94 | <el-input v-model="form.fullName"/> | 93 | <el-input v-model="form.fullName"/> |
| 95 | </el-form-item> | 94 | </el-form-item> |
| ... | @@ -578,7 +577,7 @@ const submit = async () => { | ... | @@ -578,7 +577,7 @@ const submit = async () => { |
| 578 | form.value.cptId = cptId.value | 577 | form.value.cptId = cptId.value |
| 579 | addInvitation(form.value).then((res) => { | 578 | addInvitation(form.value).then((res) => { |
| 580 | if (res.data == -200) { | 579 | if (res.data == -200) { |
| 581 | ElMessage.error(language.value == 0 ? '邮箱验证码不正确' : 'Invalid email verification code') | 580 | ElMessage.error(language.value == 0 ? '提交失败' : 'Submission failed') |
| 582 | } else { | 581 | } else { |
| 583 | ElMessage.success(language.value == 0 ? '提交成功' : 'Successfully!') | 582 | ElMessage.success(language.value == 0 ? '提交成功' : 'Successfully!') |
| 584 | showR.value = true | 583 | showR.value = true | ... | ... |
| ... | @@ -29,7 +29,7 @@ | ... | @@ -29,7 +29,7 @@ |
| 29 | </div> | 29 | </div> |
| 30 | </el-form-item> | 30 | </el-form-item> |
| 31 | 31 | ||
| 32 | <el-form-item :label="language==0?'验证码':'Code'" required style="position: relative"> | 32 | <!-- <el-form-item :label="language==0?'验证码':'Code'" required style="position: relative"> |
| 33 | <el-input v-model="form.code"> | 33 | <el-input v-model="form.code"> |
| 34 | <template #append> | 34 | <template #append> |
| 35 | <el-button class="codeBtn" plain style="width: 110px" type="primary" @click="sendsmsMsg"> | 35 | <el-button class="codeBtn" plain style="width: 110px" type="primary" @click="sendsmsMsg"> |
| ... | @@ -50,7 +50,7 @@ | ... | @@ -50,7 +50,7 @@ |
| 50 | <div class="tip"> | 50 | <div class="tip"> |
| 51 | Please click "Send" to receive the verification code via email, then enter it in the field above. | 51 | Please click "Send" to receive the verification code via email, then enter it in the field above. |
| 52 | </div> | 52 | </div> |
| 53 | </el-form-item> | 53 | </el-form-item> --> |
| 54 | <el-form-item :label="language==0?'协会':'Association'"> | 54 | <el-form-item :label="language==0?'协会':'Association'"> |
| 55 | <el-select v-model="form.associationCode" :placeholder="language==0?'请选择':'Please select'" filterable> | 55 | <el-select v-model="form.associationCode" :placeholder="language==0?'请选择':'Please select'" filterable> |
| 56 | <el-option v-for="item in associationList" :key="item.code" :label="language==0?item.nameCn:item.nameEn" | 56 | <el-option v-for="item in associationList" :key="item.code" :label="language==0?item.nameCn:item.nameEn" |
| ... | @@ -203,14 +203,14 @@ function register() { | ... | @@ -203,14 +203,14 @@ function register() { |
| 203 | } | 203 | } |
| 204 | return | 204 | return |
| 205 | } | 205 | } |
| 206 | if (!form.value.code) { | 206 | // if (!form.value.code) { |
| 207 | if (language.value == 0) { | 207 | // if (language.value == 0) { |
| 208 | ElMessage.warning('请填写验证码') | 208 | // ElMessage.warning('请填写验证码') |
| 209 | } else { | 209 | // } else { |
| 210 | ElMessage.warning('Please fill in Code') | 210 | // ElMessage.warning('Please fill in Code') |
| 211 | } | 211 | // } |
| 212 | return | 212 | // return |
| 213 | } | 213 | // } |
| 214 | if (!form.value.password) { | 214 | if (!form.value.password) { |
| 215 | ElMessage.warning(language.value == 0 ? '请输入密码' : 'Please enter password') | 215 | ElMessage.warning(language.value == 0 ? '请输入密码' : 'Please enter password') |
| 216 | return | 216 | return | ... | ... |
| 1 | import {defineConfig, loadEnv} from 'vite' | 1 | import { defineConfig, loadEnv } from 'vite' |
| 2 | import path, {resolve} from 'path' | 2 | import path, { resolve } from 'path' |
| 3 | import createVitePlugins from './vite/plugins' | 3 | import createVitePlugins from './vite/plugins' |
| 4 | import inject from '@rollup/plugin-inject' | 4 | import inject from '@rollup/plugin-inject' |
| 5 | import commonjs from '@rollup/plugin-commonjs' | 5 | import commonjs from '@rollup/plugin-commonjs' |
| 6 | // import legacy from '@vitejs/plugin-legacy' | 6 | // import legacy from '@vitejs/plugin-legacy' |
| 7 | 7 | ||
| 8 | // https://vitejs.dev/config/ | 8 | // https://vitejs.dev/config/ |
| 9 | export default defineConfig(({mode, command}) => { | 9 | export default defineConfig(({ mode, command }) => { |
| 10 | const env = loadEnv(mode, process.cwd()) | 10 | const env = loadEnv(mode, process.cwd()) |
| 11 | return { | 11 | return { |
| 12 | // 部署生产环境和开发环境下的URL。 | 12 | // 部署生产环境和开发环境下的URL。 |
| ... | @@ -64,27 +64,33 @@ export default defineConfig(({mode, command}) => { | ... | @@ -64,27 +64,33 @@ export default defineConfig(({mode, command}) => { |
| 64 | proxy: { | 64 | proxy: { |
| 65 | // https://cn.vitejs.dev/config/#server-proxy | 65 | // https://cn.vitejs.dev/config/#server-proxy |
| 66 | '/dev-api/ztx-train': { | 66 | '/dev-api/ztx-train': { |
| 67 | // target: 'http://123.60.96.243:1896/stage-api', | 67 | target: 'http://192.168.1.118:8082', |
| 68 | target: 'https://jijin.wtwuxicenter.com/stage-api', | 68 | // target: 'https://jijin.wtwuxicenter.com/stage-api', |
| 69 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | ||
| 70 | // target: 'https://tk005.wxjylt.com/stage-api', | ||
| 69 | changeOrigin: true, | 71 | changeOrigin: true, |
| 70 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-train/, '') | 72 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-train/, '') |
| 71 | }, | 73 | }, |
| 72 | '/dev-api/ztx-match': { | 74 | '/dev-api/ztx-match': { |
| 73 | target: 'http://192.168.1.118:8083', | 75 | target: 'http://192.168.1.118:8082', |
| 74 | // target: 'https://wdsfwuxicenter.com/stage-api/', | 76 | // target: 'https://wdsfwuxicenter.com/stage-api/', |
| 77 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | ||
| 78 | // target: 'https://tk005.wxjylt.com/stage-api', | ||
| 75 | changeOrigin: true, | 79 | changeOrigin: true, |
| 76 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '') | 80 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '') |
| 77 | }, | 81 | }, |
| 78 | '/dev-api/ztx-webSite': { | 82 | '/dev-api/ztx-webSite': { |
| 79 | target: 'http://192.168.1.118:8082/', | 83 | target: 'http://192.168.1.118:8082', |
| 84 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | ||
| 80 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | 85 | // target: 'https://jijin.wtwuxicenter.com/stage-api', |
| 81 | // target: 'https://ces.2025wtcwuxi.com/stage-api/', | 86 | // target: 'https://ces.2025wtcwuxi.com/stage-api/', |
| 87 | // target: 'https://tk005.wxjylt.com/stage-api', | ||
| 82 | changeOrigin: true, | 88 | changeOrigin: true, |
| 83 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') | 89 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') |
| 84 | }, | 90 | }, |
| 85 | '/dev-api': { | 91 | '/dev-api': { |
| 86 | // target: 'http://192.168.1.118:8082/', | 92 | target: 'http://192.168.1.118:8082', |
| 87 | target: 'http://192.168.1.22:8082', | 93 | // target: 'http://192.168.1.22:8082', |
| 88 | // target: 'https://tk005.wxjylt.com/stage-api', | 94 | // target: 'https://tk005.wxjylt.com/stage-api', |
| 89 | // target: 'http://124.70.181.90:1880/stage-api', | 95 | // target: 'http://124.70.181.90:1880/stage-api', |
| 90 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | 96 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', |
| ... | @@ -92,10 +98,12 @@ export default defineConfig(({mode, command}) => { | ... | @@ -92,10 +98,12 @@ export default defineConfig(({mode, command}) => { |
| 92 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 98 | rewrite: (p) => p.replace(/^\/dev-api/, '') |
| 93 | }, | 99 | }, |
| 94 | '/ticket': { | 100 | '/ticket': { |
| 95 | // target: 'http://192.168.1.131:8098/', | 101 | target: 'http://192.168.1.118:8082', |
| 96 | target: 'http://36.153.235.222:8899/', | 102 | // target: 'http://36.153.235.222:8899/', |
| 97 | // target: 'https://jijin.wtwuxicenter.com/h5/', | 103 | // target: 'https://jijin.wtwuxicenter.com/h5/', |
| 98 | // target: 'https://ticketh5.wdsfwuxicenter.com/h5/', | 104 | // target: 'https://ticketh5.wdsfwuxicenter.com/h5/', |
| 105 | // target: 'https://sys.2025wtcwuxi.com/stage-api/', | ||
| 106 | // target: 'https://tk005.wxjylt.com/stage-api', | ||
| 99 | changeOrigin: true, | 107 | changeOrigin: true, |
| 100 | rewrite: (p) => p.replace(/^\/ticket/, '') | 108 | rewrite: (p) => p.replace(/^\/ticket/, '') |
| 101 | } | 109 | } | ... | ... |
-
Please register or sign in to post a comment