Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
093a934fa4
|
|
@ -84,9 +84,12 @@ export default {
|
|||
point:'积分',
|
||||
is_year_end_box_login:false,
|
||||
email_login:0,
|
||||
code:'',
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.$route.query,this.fun.isWeiXin(),this.$route.query.code)
|
||||
this.code = this.$route.query.code||'';
|
||||
this.newLoginInformation()
|
||||
this.realTimePageHeight()
|
||||
this.start1 = false;
|
||||
|
|
@ -107,6 +110,15 @@ export default {
|
|||
} else {
|
||||
this.appPlatform = false
|
||||
this.appShow = true;
|
||||
if(this.fun.isWeiXin() && this.code==''){
|
||||
console.log('微信登录',location.href)
|
||||
let page = base64_encode(location.href);
|
||||
let url = this.fun.getSiteRoot() + this.fun.getRealUrl("member.login.index",{'iscode':1,page:page});
|
||||
let URL = this.fun.deeplinkURL(url) + 't=' + Math.random();//添加随机数,防止部分机型微信环境下跳转后页面没有刷新
|
||||
console.log(URL)
|
||||
window.location.href = URL;
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.apptoken = this.$route.query.apptoken;
|
||||
this.init_login();
|
||||
|
|
@ -302,6 +314,7 @@ export default {
|
|||
this.loginButtonStatus()
|
||||
},
|
||||
mobile_login() {
|
||||
console.log(this.form);
|
||||
if (this.fun.isTextEmpty(this.form.mobile)) {
|
||||
Toast(this.accountAndPasswordLogin ? "请填写账号" : "请填写手机号");
|
||||
return;
|
||||
|
|
@ -350,8 +363,9 @@ export default {
|
|||
if (this.mobile_login_code != 1) {
|
||||
delete this.form.code;
|
||||
}
|
||||
|
||||
|
||||
if(this.code!=''){
|
||||
this.form.code = this.code;
|
||||
}
|
||||
let yz_redirect = sessionStorage.getItem("yz_redirect");
|
||||
const login_page_mode = this.login_page_mode;
|
||||
const login_diy_url = this.login_diy_url;
|
||||
|
|
@ -362,7 +376,6 @@ export default {
|
|||
const encodedRedirect = this.isBase64(yz_redirect) ? yz_redirect : base64_encode(yz_redirect);
|
||||
this.form.yz_redirect = encodedRedirect;
|
||||
}
|
||||
|
||||
this.login(this.form);
|
||||
},
|
||||
async login(data) { //登录
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ module.exports = {
|
|||
},
|
||||
proxy: {
|
||||
"/addons/yun_shop/api.php": {
|
||||
target: "https://testbzt.cdlfjy.com/", //目标接口域名bztang.cdlfjy.com testbzt.cdlfjy.com
|
||||
target: "https://shuizhi.test.cdlfjy.com/", //目标接口域名bztang.cdlfjy.com testbzt.cdlfjy.com
|
||||
changeOrigin: true, //是否跨域
|
||||
secure: false
|
||||
// pathRewrite: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue