twt 3 years ago
parent
commit
cca2085334
3 changed files with 8 additions and 7 deletions
  1. 2 2
      common/request.js
  2. 5 4
      pages.json
  3. 1 1
      pages/index/index.vue

+ 2 - 2
common/request.js

@@ -1,6 +1,6 @@
- const baseURL = 'https://api.dms.66km.com/'
+ //const baseURL = 'https://api.dms.66km.com/'
 //const baseURL='http://wx.32che.cn/'
-//const baseURL='http://58.56.15.138:20189/'
+const baseURL='http://api.dms.66km.com.cn/'
 
   // baseURL: 'http://192.168.0.140:20187',
 //authorizaURL: 'https://api.dms.66km.com/weixin/authorize',

+ 5 - 4
pages.json

@@ -8,17 +8,18 @@
 			}
 		},
 		{
-			"path": "pages/user/shopidgo",
+			"path": "pages/user/scanCode",
 			"style": {
-				"navigationStyle": "custom"
+				"navigationBarTitleText": "扫码"
 			}
 		},
 		{
-			"path": "pages/user/scanCode",
+			"path": "pages/user/shopidgo",
 			"style": {
-				"navigationBarTitleText": "扫码"
+				"navigationStyle": "custom"
 			}
 		},
+		
 		{
 			"path": "pages/login/empower",
 			"style": {

+ 1 - 1
pages/index/index.vue

@@ -26,7 +26,7 @@
 			uni.getLocation({
 			    type: 'gcj02',
 			    success: function (res) {
-			        console.log('当前位置的经度:' + res.longitude);
+			        console.log('当前位置的经度:' + res.longitude);
 			        console.log('当前位置的纬度:' + res.latitude);
 					if(opt.id){
 						that.url=that.$webURL+'paySuccess?orderId='+opt.id+'&hideHeader=true&codeapp='+that.wxOpendata.code+'&lat='+res.latitude+'&lng='+res.longitude