Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪晓凯
robot-monitor
Commits
9e5debf9
Commit
9e5debf9
authored
Jul 06, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本ok,等接口完成联调
parent
cf2faf5f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
51 deletions
+2
-51
api-config.js
src/config/api-config.js
+2
-0
Login.vue
src/views/Login.vue
+0
-51
RobotDetails.vue
src/views/RobotDetails.vue
+0
-0
No files found.
src/config/api-config.js
View file @
9e5debf9
...
...
@@ -10,6 +10,8 @@ const Api = {
GetRobotBank
:
"/accountlist"
,
//查询机器人银行账户
GetWalletInfo
:
"/walletInfo "
,
//查询某个账号的当前资产信息
Transfer
:
"/transfer"
,
//充币提币
Transaction
:
"/transaction"
,
//交易记录
Records
:
"/records"
,
//历史记录
}
export
default
Api
;
src/views/Login.vue
View file @
9e5debf9
...
...
@@ -188,57 +188,6 @@ export default {
});
});
},
//找回密码获取验证码
/* getYZM2(){
if(this.forget_email == '' || ! (regEmail.test(this.forget_email) || regEmail2.test(this.forget_email))){
this.$notify({
title: '提示',
message: "请输入正确的邮箱",
type: 'error',
duration:'2000',
});
return;
}
//获取验证码倒计时60s
this.count = TIME_COUNT;
this.show = false;
this.timer = setInterval(() => {
if(this.count > 0 && this.count <= TIME_COUNT){
this.count--;
}else{
this.show = true;
clearInterval(this.timer);
this.timer = null;
}
}, 1000)
axios.post(ApiConfig.SendEmailVcode,{"user":this.forget_email}).then(res => {
console.log(res)
if(res.status == 200&& res.data == "emailsend success"){//发送成功并且注册成功
this.$notify({
title: '提示',
message: "验证码发送成功,请查收",
type: 'success',
duration:'2000',
});
}else{//不存在的33.cn的邮箱
this.$notify({
title: '提示',
message: "验证码发送失败,请检查邮箱后再试",
type: 'error',
duration:'2000',
});
}
})
.catch(err=>{
this.$notify({
title: '提示',
message: "验证码发送失败,请稍后再试",
type: 'error',
duration:'2000',
});
});
},*/
//注册
registered
(){
//console.log(this.regist_email)
...
...
src/views/RobotDetails.vue
View file @
9e5debf9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment