|
@@ -1,5 +1,5 @@
|
|
// app.js
|
|
// app.js
|
|
-var projectMode = 2;//0代表开发模式(本地环境),1代表测试模式(线上测r试环境),2代表线上模式(正式运行环境)
|
|
|
|
|
|
+var projectMode = 0;//0代表开发模式(本地环境),1代表测试模式(线上测r试环境),2代表线上模式(正式运行环境)
|
|
var info = wx.getSystemInfoSync();
|
|
var info = wx.getSystemInfoSync();
|
|
if (info.platform != "devtools" && projectMode == 0) { projectMode = 0 }
|
|
if (info.platform != "devtools" && projectMode == 0) { projectMode = 0 }
|
|
var envVersion = `${__wxConfig.envVersion}`;//develop 开发版,trial 体验版,release 正式版
|
|
var envVersion = `${__wxConfig.envVersion}`;//develop 开发版,trial 体验版,release 正式版
|
|
@@ -29,11 +29,11 @@ App({
|
|
wx.checkSession({
|
|
wx.checkSession({
|
|
success: res => {
|
|
success: res => {
|
|
if(!wx.getStorageSync('token')){
|
|
if(!wx.getStorageSync('token')){
|
|
- this.login();
|
|
|
|
|
|
+ // this.login();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
fail: (res) => {
|
|
fail: (res) => {
|
|
- this.login();
|
|
|
|
|
|
+ // this.login();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -99,7 +99,6 @@ App({
|
|
},
|
|
},
|
|
|
|
|
|
login(lat = "", lng = "") {
|
|
login(lat = "", lng = "") {
|
|
-
|
|
|
|
var that = this;
|
|
var that = this;
|
|
if(!lat || !lng){
|
|
if(!lat || !lng){
|
|
lat=wx.getStorageSync('latitude')
|
|
lat=wx.getStorageSync('latitude')
|