提交 21dd0d8e authored 作者: pengxiaohui's avatar pengxiaohui

师资培训报名注册昵称随机生成

上级 852402de
......@@ -80,7 +80,7 @@ export default {
tabChange(n) {
this.isBuyShow = false
if (n === 1) {
window.location.href = 'https://login.ezijing.com/xlearn/register'
window.location.href = 'https://login.ezijing.com/xlearn/login/index'
}
if (n === 2) {
window.location.href = 'https://login.ezijing.com/xlearn/register'
......
......@@ -11,7 +11,7 @@
<div class="des-box">
<p>活动类型:师资培训</p>
<p>培训形式:线下培训</p>
<p>培训地点:清控紫荆(北京)教育科技股份有限公司阶梯教室<</p>
<p>培训地点:清控紫荆(北京)教育科技股份有限公司阶梯教室</p>
<p>培训时间:3.29 - 3.31</p>
</div>
<router-link to="/train/form">
......
......@@ -284,7 +284,7 @@ export default {
let param = {
account: this.form.mobile,
code: this.form.checked_code,
username: this.form.username,
username: this.randomNickname(),
password: '123456',
secret: true,
service: 'sofia.ezijing.com'
......@@ -304,6 +304,16 @@ export default {
}) */
return promise
},
randomNickname () {
const chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n']
let str = ''
for(let i= 0; i<5; i++) {
let idx = parseInt(14*Math.random())
str += chars[idx]
}
const timeStamp = Date.now()
return str + '_' + timeStamp
},
back() {
this.$router.go(-1)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论