Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
68d1b995
提交
68d1b995
编写于
11月 08, 2022
作者:
“grape”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复注册功能接口新增密码重置接口
上级
93bf48a4
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
56 行增加
和
6 行删除
+56
-6
.env.dev
.env.dev
+3
-3
forget-pass-mgt.ts
src/constants/api/login/forget-pass-mgt.ts
+30
-0
regist-mgt.api.ts
src/constants/api/login/regist-mgt.api.ts
+2
-2
ForgetPassView.vue
src/views/login/ForgetPassView.vue
+21
-1
未找到文件。
.env.dev
浏览文件 @
68d1b995
...
@@ -17,17 +17,17 @@ VUE_APP_MS_GATEWAY_API = http://192.168.14.1:9140
...
@@ -17,17 +17,17 @@ VUE_APP_MS_GATEWAY_API = http://192.168.14.1:9140
// 业务服务
// 业务服务
VUE_APP_AUTH_API = /ms-system/api/v1/sys-cust-info/permit_endpoint
VUE_APP_AUTH_API = /ms-system/api/v1/sys-cust-info/permit_endpoint
VUE_SYSTEM_API = /ms-system/api/v1/sys-cust-info/permit_endpoint
VUE_APP_MS_SYSTEM_API = /ms-system/api/v1/sys-cust-info/permit_endpoint
VUE_APP_MS_AUTH_API = http://82.157.46.222:9125/ms-auth
VUE_APP_MS_AUTH_API = http://82.157.46.222:9125/ms-auth
VUE_APP_MS_SYSTEM_API = http://15.1.48.21:9140/ms-system
VUE_APP_MS_NETTY_API = http://15.1.48.21:9140/ms-netty
VUE_APP_MS_NETTY_API = http://15.1.48.21:9140/ms-netty
VUE_APP_MS_APPLICATION_API = http://15.1.48.21:9140/ms-application
VUE_APP_MS_APPLICATION_API = http://15.1.48.21:9140/ms-application
// 第三方服务
// 第三方服务
VUE_APP_QL_FORM_API = http://152.136.68.93:9018/ms-qing-long/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype
VUE_APP_QL_FORM_API = http://152.136.68.93:9018/ms-qing-long/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype
// 启动网关 (on | off)
// 启动网关 (on | off)
VUE_APP_ENABLE_GATEWAY = o
ff
VUE_APP_ENABLE_GATEWAY = o
n
VUE_APP_SYS_API = http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
VUE_APP_SYS_API = http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
...
...
src/constants/api/login/forget-pass-mgt.ts
0 → 100644
浏览文件 @
68d1b995
/*
* @Author: jiangzaicheng jiangzaicheng_jzc@163.com
* @Date: 2022-07-05 14:56:29
* @LastEditors: jiangzaicheng jiangzaicheng_jzc@163.com
* @LastEditTime: 2022-07-06 14:53:22
* @FilePath: \mcep-h5\src\constants\api\login\login-mgt.api.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
{
MethodType
}
from
"
@/constants/enum/general/method-type.enum
"
;
import
{
HeaderType
}
from
"
@/constants/enum/general/header-type.enum
"
;
// const prefix = "http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint"
// const prefix = "http://10.0.3.144:9165/online-financial-service/api/v1/cust-info/permit_endpoint"
//网关
const
prefix
=
process
.
env
.
VUE_APP_MS_GATEWAY_API
+
"
/ms-system/api/v1/cust-login/permit_endpoint
"
;
//本地
// const prefix = "http://localhost:9130"+ process.env.VUE_SYSTEM_API ;
const
forgetPassAPI
=
{
ForgetPass
:
{
url
:
prefix
+
"
/changePassword
"
,
method
:
MethodType
.
POST
.
code
,
header
:
HeaderType
.
AUTH
.
code
,
},
};
export
default
forgetPassAPI
;
src/constants/api/login/regist-mgt.api.ts
浏览文件 @
68d1b995
...
@@ -14,10 +14,10 @@ import { HeaderType } from "@/constants/enum/general/header-type.enum";
...
@@ -14,10 +14,10 @@ import { HeaderType } from "@/constants/enum/general/header-type.enum";
//网关
//网关
const
prefix
=
process
.
env
.
VUE_APP_MS_GATEWAY_API
+
process
.
env
.
VUE_
SYSTEM_API
;
const
prefix
=
process
.
env
.
VUE_APP_MS_GATEWAY_API
+
process
.
env
.
VUE_
APP_AUTH_API
;
//本地
//本地
// const prefix = "http://localhost:9130"+ process.env.VUE_
APP_AUTH
_API ;
// const prefix = "http://localhost:9130"+ process.env.VUE_
SYSTEM
_API ;
const
registApi
=
{
const
registApi
=
{
registSystem
:
{
registSystem
:
{
...
...
src/views/login/ForgetPassView.vue
浏览文件 @
68d1b995
...
@@ -119,9 +119,11 @@
...
@@ -119,9 +119,11 @@
import
{
Component
,
Vue
}
from
"
vue-property-decorator
"
;
import
{
Component
,
Vue
}
from
"
vue-property-decorator
"
;
import
{
Image
as
VanImage
,
Toast
}
from
"
vant
"
;
import
{
Image
as
VanImage
,
Toast
}
from
"
vant
"
;
import
apiService
from
"
@/services/api.service
"
;
import
apiService
from
"
@/services/api.service
"
;
import
{
Code
}
from
"
@/constants/enum/general/code.enum
"
;
import
{
Code
}
from
"
@/constants/enum/general/code.enum
"
;
import
{
RestfulResponse
}
from
"
@/model/domain/RestfulResponse
"
;
import
{
RestfulResponse
}
from
"
@/model/domain/RestfulResponse
"
;
import
commonApi
from
"
@/constants/api/login/common.api
"
;
import
commonApi
from
"
@/constants/api/login/common.api
"
;
import
forgetPassAPI
from
"
@/constants/api/login/forget-pass-mgt
"
;
@
Component
({
@
Component
({
name
:
"
ForgetPassView
"
,
name
:
"
ForgetPassView
"
,
...
@@ -141,6 +143,7 @@ export default class ForgetPassView extends Vue {
...
@@ -141,6 +143,7 @@ export default class ForgetPassView extends Vue {
timer
:
any
=
""
;
//定时器
timer
:
any
=
""
;
//定时器
time
:
number
=
60
;
//计数
time
:
number
=
60
;
//计数
radio
:
string
=
"
0
"
;
radio
:
string
=
"
0
"
;
// showCode =false;
// showCode =false;
// noChange(s:string){
// noChange(s:string){
...
@@ -196,7 +199,24 @@ export default class ForgetPassView extends Vue {
...
@@ -196,7 +199,24 @@ export default class ForgetPassView extends Vue {
});
});
}
}
onSubmit
(
values
:
any
)
{
onSubmit
(
values
:
any
)
{
console
.
log
(
"
submit
"
,
values
);
let
param
=
{
loginNo
:
this
.
loginNo
,
newPassword
:
this
.
newpassword
,
phoneVerifyCode
:
this
.
sms
,
requirePassword
:
this
.
restpassword
};
apiService
.
general
(
forgetPassAPI
.
ForgetPass
,
param
,
undefined
,
undefined
)
.
then
((
response
:
RestfulResponse
)
=>
{
if
(
response
.
code
==
Code
.
SUCCESS
.
code
)
{
this
.
$router
.
push
({
name
:
`Mianview`
,
params
:
{
data
:
response
.
data
}
})
}
});
}
}
created
()
{
created
()
{
this
.
$nextTick
(()
=>
this
.
_updatePicCode
());
this
.
$nextTick
(()
=>
this
.
_updatePicCode
());
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录