This commit is contained in:
whitechiina 2025-09-28 15:39:54 +08:00
parent 47b25ad306
commit 12c0f38644
5 changed files with 21 additions and 19 deletions

28
App.vue
View File

@ -29,15 +29,6 @@
globalData: {
// FPT
urlfileName:'https://jc.agrimedia.cn/discountt',
// parameters: {
// isWechat: true,
// token: "123456",
// cityInfor:{
// city: "",
// lat: '39.093471137152775',
// lon: '117.12767279730903',
// }
// },
parameters: {}
},
@ -66,6 +57,7 @@
if(Object.keys(querys)['length'] > 0){
if(querys?.para){
console.log('正常登录')
// URL
var _para = getUrlParams(window.location.href);
console.log(_para,'_para');
@ -99,10 +91,21 @@
console.log('没有参数')
}
console.log(JSON.stringify(this['globalData']['parameters'],null,10), 'App Launch');
this.SETSPREAD(this['globalData']['parameters']['spread']);
}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) {
for(let key in querys){
const value = querys[key];
@ -152,7 +155,6 @@
}
};
console.log(this['globalData']['parameters']['spread'],'测试取参');
this.SETSPREAD(this['globalData']['parameters']['spread']);
this.clearUrlParams();
return;

View File

@ -133,8 +133,8 @@ class Request {
if (infor['data']['status'] != 200 && infor['data']['code'] != 7777) {
// #ifdef H5
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://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_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:1024/JXH5/#/pages/users/h5_login/index?redirectUri=http://10.210.254.176:8090/privilege/pages/restaurant/home/shop_home/shop_home`;
}
// #endif
if (infor['data']['msg'] == '产品错误' || infor['data']['msg'] == '产品不存在') {

View File

@ -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)'))
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