|
@@ -402,11 +402,13 @@ export default {
|
|
|
|
|
|
return _result;
|
|
return _result;
|
|
},
|
|
},
|
|
- userRequest() {
|
|
|
|
- let _result = this.$region == 'hk' ? 'https://cloud.api.cocorobo.hk/api/user' : 'https://beta.api.cocorobo.cn/api/user'
|
|
|
|
|
|
+ // userRequest() {
|
|
|
|
+ // console.log('this.$region',this.$region);
|
|
|
|
|
|
- return _result;
|
|
|
|
- },
|
|
|
|
|
|
+ // let _result = this.$region == 'hk' ? 'https://cloud.api.cocorobo.hk/api/user' : 'https://beta.api.cocorobo.cn/api/user'
|
|
|
|
+
|
|
|
|
+ // return _result;
|
|
|
|
+ // },
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapActions({
|
|
...mapActions({
|
|
@@ -581,7 +583,7 @@ export default {
|
|
console.log("👇", this.prefixL);
|
|
console.log("👇", this.prefixL);
|
|
// this.addOp3('1', "", { type:this.prefixL + "login" }, "success",'0c3735c9-a2ef-11ef-9b30-005056b86db5')
|
|
// this.addOp3('1', "", { type:this.prefixL + "login" }, "success",'0c3735c9-a2ef-11ef-9b30-005056b86db5')
|
|
axios
|
|
axios
|
|
- .post(this.userRequest, qs.stringify(params))
|
|
|
|
|
|
+ .post("https://beta.api.cocorobo.cn/api/user", qs.stringify(params))
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
console.log("res", res);
|
|
console.log("res", res);
|
|
let _data = res.data[0][0];
|
|
let _data = res.data[0][0];
|
|
@@ -659,7 +661,7 @@ export default {
|
|
axios.defaults.withCredentials = true;
|
|
axios.defaults.withCredentials = true;
|
|
console.log("👇进入进行微信绑定环节");
|
|
console.log("👇进入进行微信绑定环节");
|
|
axios
|
|
axios
|
|
- .post(this.userRequest, qs.stringify(params))
|
|
|
|
|
|
+ .post("https://beta.api.cocorobo.cn/api/user", qs.stringify(params))
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
console.log("res", res);
|
|
console.log("res", res);
|
|
let _data = res.data[0][0];
|
|
let _data = res.data[0][0];
|
|
@@ -699,6 +701,8 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|
|
.catch((e) => {
|
|
.catch((e) => {
|
|
|
|
+ console.log(e);
|
|
|
|
+
|
|
if (e.response && e.response.data == "Wrong email or password") {
|
|
if (e.response && e.response.data == "Wrong email or password") {
|
|
this.$message.error(this.lang.Accerror);
|
|
this.$message.error(this.lang.Accerror);
|
|
} else {
|
|
} else {
|
|
@@ -862,7 +866,7 @@ export default {
|
|
this.openid = openid;
|
|
this.openid = openid;
|
|
axios.defaults.withCredentials = true;
|
|
axios.defaults.withCredentials = true;
|
|
axios
|
|
axios
|
|
- .post(this.userRequest, qs.stringify(params))
|
|
|
|
|
|
+ .post("https://beta.api.cocorobo.cn/api/user", qs.stringify(params))
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
console.log("res", res);
|
|
console.log("res", res);
|
|
let _data = res.data[0][0];
|
|
let _data = res.data[0][0];
|
|
@@ -1061,7 +1065,7 @@ export default {
|
|
};
|
|
};
|
|
axios.defaults.withCredentials = true;
|
|
axios.defaults.withCredentials = true;
|
|
axios
|
|
axios
|
|
- .post(this.userRequest, qs.stringify(params))
|
|
|
|
|
|
+ .post("https://beta.api.cocorobo.cn/api/user", qs.stringify(params))
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
console.log("res", res);
|
|
console.log("res", res);
|
|
this.loading = false;
|
|
this.loading = false;
|