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