提交 c072be13 编写于 作者: “grape”'s avatar “grape”

注册登录

上级 d78c3de8
...@@ -21,5 +21,7 @@ VUE_APP_MS_APPLICATION_API = http://15.1.48.21:9140/ms-application ...@@ -21,5 +21,7 @@ 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 = off VUE_APP_ENABLE_GATEWAY = off
VUE_APP_BASE_API = http://10.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint
...@@ -8,9 +8,12 @@ ...@@ -8,9 +8,12 @@
*/ */
import { MethodType } from "@/constants/enum/general/method-type.enum"; import { MethodType } from "@/constants/enum/general/method-type.enum";
import { HeaderType } from "@/constants/enum/general/header-type.enum"; import { HeaderType } from "@/constants/enum/general/header-type.enum";
const prefix = "http://10.0.2.248:9165/online-financial-service/api/v1/cust-info/permit_endpoint" // const prefix = "http://10.0.2.248:9165/online-financial-service/api/v1/cust-info/permit_endpoint"
// const prefix = process.env.VUE_APP_BASE_API; const prefix = process.env.VUE_APP_BASE_API;
console.log(prefix+"=================");
// const prefix = "http://10.0.3.144:9165/online-financial-service/api/v1/cust-info/permit_endpoint"
// console.log(prefix+"=================");
const loginApi = { const loginApi = {
updatePicCode: { updatePicCode: {
url: prefix + "/getVerifyCode", url: prefix + "/getVerifyCode",
......
...@@ -10,7 +10,9 @@ import { MethodType } from "@/constants/enum/general/method-type.enum"; ...@@ -10,7 +10,9 @@ import { MethodType } from "@/constants/enum/general/method-type.enum";
import { HeaderType } from "@/constants/enum/general/header-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.2.3.118:9165/online-financial-service/api/v1/cust-info/permit_endpoint"
const prefix = "http://10.0.2.248: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_BASE_API;
const registApi = { const registApi = {
registSystem: { registSystem: {
url: prefix + "/register", url: prefix + "/register",
......
...@@ -176,9 +176,12 @@ class ApiService { ...@@ -176,9 +176,12 @@ class ApiService {
path = query != null ? this.urlQueryConvert(path, query) : path; path = query != null ? this.urlQueryConvert(path, query) : path;
console.log("服务调用--" + path); console.log("服务调用--" + path);
return Vue.axios.post(`${path}`, params, requestConfig).then(this.createBusCodeHandler(query)).catch(this.createErrorHandler()); // return Vue.axios.post(`${path}`, params, requestConfig).then(this.createBusCodeHandler(query)).catch(this.createErrorHandler());
return Vue.axios.post(`${path}`, params, requestConfig).then(res=>{
//TODO
return res.data
});
} }
/** /**
* POST请求 文件上传 * POST请求 文件上传
......
...@@ -195,21 +195,23 @@ export default class LoginView extends Vue { ...@@ -195,21 +195,23 @@ export default class LoginView extends Vue {
//验证码失败刷新 //验证码失败刷新
//this._updatePicCode(); //this._updatePicCode();
let param = { let param = {
phone: this.loginNo, loginNo: this.loginNo,
//图形验证码 //图形验证码
imageVerifyKey: this.imageSrcValue, imageVerifyKey: this.imageSrcValue,
//渠道 //渠道
loginType: "2", loginType: "5",
//手机验证码 //手机验证码
messCode: this.sms, messCode: this.sms,
//密码 //密码
passWord: this.password credential: this.password
} }
apiService.general(loginApi.loginSystem, undefined, param, undefined).then((response: RestfulResponse) => { apiService.general(loginApi.loginSystem, undefined, param, undefined).then((response: RestfulResponse) => {
console.log(response); console.log(response);
//发送请求就保存账号 //发送请求就保存账号
localStorage.setItem('loginNo', this.loginNo); localStorage.setItem('loginNo', this.loginNo);
// debugger;
if (response.code == Code.SUCCESS.code) { if (response.code == Code.SUCCESS.code) {
Toast(response.msg+"");
this.$router.push({ this.$router.push({
name: `Mianview`, name: `Mianview`,
params: { params: {
......
...@@ -152,7 +152,7 @@ export default class ForgetPassView extends Vue { ...@@ -152,7 +152,7 @@ export default class ForgetPassView extends Vue {
registSystem() { registSystem() {
if (this.password === this.restpassword && this.checked) { if (this.password === this.restpassword && this.checked) {
let param = { let param = {
phone: this.phone, loginNo: this.phone,
//短信验证码TODO //短信验证码TODO
phoneVerifyCode: this.sms, phoneVerifyCode: this.sms,
//数字渠道 //数字渠道
...@@ -170,6 +170,7 @@ export default class ForgetPassView extends Vue { ...@@ -170,6 +170,7 @@ export default class ForgetPassView extends Vue {
} }
}) })
} }
Toast(response.msg + "");
}); });
} }
} }
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
</van-row> </van-row>
</div> </div>
<scroller-view v-calculate-height class="product"> <scroller-view v-calculate-height pulldown="true" pullup="true" :height="10000" class="product" >
<div <div
v-for="(item, index) in productList" v-for="(item, index) in productList"
:key="index" :key="index"
...@@ -374,6 +374,10 @@ export default class Main extends Vue { ...@@ -374,6 +374,10 @@ export default class Main extends Vue {
vanvcol42 = "vandilote"; vanvcol42 = "vandilote";
vanvcol43 = "vandilote"; vanvcol43 = "vandilote";
vanvcol44 = "vandilote"; vanvcol44 = "vandilote";
active=0; active=0;
areaList = area; areaList = area;
outcsinfo = { outcsinfo = {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @ Author: zhaowei * @ Author: zhaowei
* @ Create Time: 2022-09-3 10:20:17 * @ Create Time: 2022-09-3 10:20:17
* @ Modified by: zhaowei * @ Modified by: zhaowei
* @ Modified time: 2022-09-03 11:39:54 * @ Modified time: 2022-09-03 11:41:35
* @ Description: * @ Description:
--> -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册