This commit is contained in:
whitechiina 2025-09-28 16:43:14 +08:00
parent facfaef315
commit c76bb1ed5a
5 changed files with 29 additions and 21 deletions

36
App.vue
View File

@ -46,14 +46,22 @@
store.commit('SETTOKEN', 'Bearer ' + querys.token);
}
// ?
if (querys.spread) {
setTimeout(() => {
spread({ puid: querys.spread, code: 0 }).then(res => {
console.log(res)
if (uni.getStorageSync('spreadId')) {
console.log(uni.getStorageSync('spreadId'))
spread({ puid: uni.getStorageSync('spreadId'), code: 0 }).then(res => {
})
}, 1000)
};
}
},2000)
// ?
// if (querys.spread) {
// setTimeout(() => {
// spread({ puid: querys.spread, code: 0 }).then(res => {
// console.log(res)
// })
// }, 1000)
// };
if(Object.keys(querys)['length'] > 0){
if(querys?.para){
@ -91,7 +99,6 @@
console.log('没有参数')
}
alert(this['globalData']['parameters']['spread'], '获取1')
this.SETSPREAD(this['globalData']['parameters']['spread']);
//
// if (this['globalData']['parameters']['spread']) {
@ -102,20 +109,21 @@
// }, 1000)
// }
}else{
console.log('分享者的参数1997', !querys.token)
console.log('登录token后存在的参数1997', querys)
alert(querys.userinfor.spread, '获取2')
//
if (querys.userinfor.spread) {
setTimeout(() => {
this.SETSPREAD(querys.userinfor.spread);
spread({ puid: querys.userinfor.spread, code: 0 }).then(res => {
console.log(querys.userinfor?.spread, '分享人分享人分享人分享人分享人分享人分享人分享人分享人')
if (querys.userinfor?.spread) {
uni.setStorageSync('spreadId', querys.userinfor?.spread)
let spreadId = uni.getStorageSync('spreadId')
spread({ puid: spreadId, code: 0 }).then(res => {
})
}, 1000)
}
}, 2000)
if (!querys.token) {
querys.query = querys.query.replace(/=/g, '')
console.log(querys)
for(let key in querys){
const value = querys[key];
querys[key] = JSON.parse(value);

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:1024/JXH5/#/pages/users/h5_login/index?redirectUri=http://10.210.254.176:8090/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.66f4fc5d.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.b20ca689.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