updata
This commit is contained in:
parent
47b25ad306
commit
12c0f38644
32
App.vue
32
App.vue
|
|
@ -29,15 +29,6 @@
|
||||||
globalData: {
|
globalData: {
|
||||||
// FPT上传地址
|
// FPT上传地址
|
||||||
urlfileName:'https://jc.agrimedia.cn/discountt',
|
urlfileName:'https://jc.agrimedia.cn/discountt',
|
||||||
// parameters: {
|
|
||||||
// isWechat: true,
|
|
||||||
// token: "123456",
|
|
||||||
// cityInfor:{
|
|
||||||
// city: "天津市",
|
|
||||||
// lat: '39.093471137152775',
|
|
||||||
// lon: '117.12767279730903',
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
parameters: {}
|
parameters: {}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -65,7 +56,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Object.keys(querys)['length'] > 0){
|
if(Object.keys(querys)['length'] > 0){
|
||||||
if(querys?.para){
|
if(querys?.para){
|
||||||
|
console.log('正常登录')
|
||||||
// 获取URL参数
|
// 获取URL参数
|
||||||
var _para = getUrlParams(window.location.href);
|
var _para = getUrlParams(window.location.href);
|
||||||
console.log(_para,'_para');
|
console.log(_para,'_para');
|
||||||
|
|
@ -98,11 +90,22 @@
|
||||||
} else {
|
} else {
|
||||||
console.log('没有参数')
|
console.log('没有参数')
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(JSON.stringify(this['globalData']['parameters'],null,10), 'App Launch');
|
this.SETSPREAD(this['globalData']['parameters']['spread']);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
console.log('存在参数1997', !querys.token)
|
console.log('分享者的参数1997', !querys.token)
|
||||||
|
console.log('登录token后存在的参数1997', querys)
|
||||||
|
|
||||||
|
|
||||||
|
// 分享者的参数
|
||||||
|
if (querys.userinfor.spread) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.SETSPREAD(querys.userinfor.spread);
|
||||||
|
spread({ puid: querys.userinfor.spread, code: 0 }).then(res => {
|
||||||
|
})
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
|
||||||
if (!querys.token) {
|
if (!querys.token) {
|
||||||
for(let key in querys){
|
for(let key in querys){
|
||||||
const value = querys[key];
|
const value = querys[key];
|
||||||
|
|
@ -152,7 +155,6 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
console.log(this['globalData']['parameters']['spread'],'测试取参');
|
console.log(this['globalData']['parameters']['spread'],'测试取参');
|
||||||
this.SETSPREAD(this['globalData']['parameters']['spread']);
|
|
||||||
this.clearUrlParams();
|
this.clearUrlParams();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,8 +133,8 @@ class Request {
|
||||||
if (infor['data']['status'] != 200 && infor['data']['code'] != 7777) {
|
if (infor['data']['status'] != 200 && infor['data']['code'] != 7777) {
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
if (infor['data']['status'] == 110002 && !isMiniPrograms()) {
|
if (infor['data']['status'] == 110002 && !isMiniPrograms()) {
|
||||||
window.location.href = `${HTTP_REQUEST_URL}/JXH5/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`;
|
// window.location.href = `${HTTP_REQUEST_URL}/JXH5/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`;
|
||||||
// window.location.href = `http://10.210.254.176:8081/JXH5/#/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`;
|
window.location.href = `http://10.210.254.176:1024/JXH5/#/pages/users/h5_login/index?redirectUri=http://10.210.254.176:8090/privilege/pages/restaurant/home/shop_home/shop_home`;
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
if (infor['data']['msg'] == '产品错误' || infor['data']['msg'] == '产品不存在') {
|
if (infor['data']['msg'] == '产品错误' || infor['data']['msg'] == '产品不存在') {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>在线点餐</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>在线点餐</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><script src="https://h5.dhcc.wang/api/apilink-native.min.js?v=20200701"></script><link rel=stylesheet href=/privilege/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/privilege/static/js/chunk-vendors.acc03eee.js></script><script src=/privilege/static/js/index.08d8b296.js></script></body></html>
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><script src="https://h5.dhcc.wang/api/apilink-native.min.js?v=20200701"></script><link rel=stylesheet href=/privilege/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/privilege/static/js/chunk-vendors.acc03eee.js></script><script src=/privilege/static/js/index.a625358b.js></script></body></html>
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue