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(); this.findBSiteInfoByPage();
}, },
jumpDetails(item) { jumpDetails(item) {
let Authorization = uni.getStorageSync("Authorization"); let user = uni.getStorageSync("user");
if (!Authorization) { if (!user) {
uni.showModal({ uni.showModal({
content: "登录后才能查看哦", content: "登录后才能查看哦",
confirmText: "去登录", confirmText: "去登录",

View File

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

View File

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