更新
This commit is contained in:
@@ -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: "去登录",
|
||||
|
||||
@@ -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: "去登录",
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user