...
|
...
|
@@ -22,9 +22,9 @@ const parseUrl = (url) => { |
|
|
return {
|
|
|
path: url[0],
|
|
|
query: query
|
|
|
};
|
|
|
}
|
|
|
let env = ''
|
|
|
}
|
|
|
};
|
|
|
let env = '';
|
|
|
export default {
|
|
|
//evn
|
|
|
env: function () {
|
...
|
...
|
@@ -33,7 +33,7 @@ export default { |
|
|
document.addEventListener('deviceready', function () {
|
|
|
});
|
|
|
env = 'app';
|
|
|
} else if ((!envFlag && navigator.userAgent.match(/miniProgram/i)) || (envFlag == 'miniprogram')) {
|
|
|
} else if ((!envFlag && navigator.userAgent.match(/miniProgram/i)) || (envFlag === 'miniprogram')) {
|
|
|
env = 'miniprogram';
|
|
|
} else if (location.origin === 'https://www.yohobuy.com') {
|
|
|
env = 'pc'
|
...
|
...
|
@@ -89,11 +89,11 @@ export default { |
|
|
if (r.code === 200) {
|
|
|
uid = Number(r.data)
|
|
|
}
|
|
|
resolve(uid)
|
|
|
resolve(uid);
|
|
|
});
|
|
|
} else {
|
|
|
let uid = Number(cookies.cookie('app_uid')) || Number(getQueryObj().uid) || 0;
|
|
|
resolve(uid)
|
|
|
resolve(uid);
|
|
|
}
|
|
|
})
|
|
|
}
|
...
|
...
|
|