This commit is contained in:
xiaozhiyong
2024-05-31 11:21:11 +08:00
parent 93feaf1148
commit 382d34d7bf
3 changed files with 7 additions and 7 deletions

View File

@@ -179,8 +179,8 @@ export default {
this.findBSiteInfoByPage();
},
jumpDetails(item) {
let Authorization = uni.getStorageSync("Authorization");
if (!Authorization) {
let user = uni.getStorageSync("user");
if (!user) {
uni.showModal({
content: "登录后才能查看哦",
confirmText: "去登录",

View File

@@ -119,8 +119,8 @@ export default {
this.paramter.params.longitude = longitude;
},
jumpDetails(item) {
let Authorization = uni.getStorageSync("Authorization");
if (!Authorization) {
let user = uni.getStorageSync("user");
if (!user) {
uni.showModal({
content: "登录后才能查看哦",
confirmText: "去登录",

View File

@@ -6,8 +6,8 @@ env = "test";
env = "production";
let testUrl = "http://192.168.110.77:38080";
let productUrl = "http://uat.xingoil.com/guest-api";
// let productUrl = "https://www.xingoil.com/adminapi";
// let productUrl = "http://uat.xingoil.com/guest-api";
let productUrl = "https://www.xingoil.com/guest-api";
//
const instance = axios.create({
baseURL: env == "production" ? productUrl : testUrl,
@@ -28,7 +28,7 @@ instance.interceptors.request.use(
}
if (!token) {
token = uni.getStorageSync("Authorization");
token = uni.getStorageSync("Authorization") || " ";
}
if (!unionId) {
unionId = uni.getStorageSync("unionid");