xiaohaizhao преди 9 месеца
родител
ревизия
6a5e50e94f
променени са 3 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 2 2
      main.js
  2. 4 4
      manifest.json
  3. 3 3
      pages/index/index/index.vue

+ 2 - 2
main.js

@@ -39,8 +39,8 @@ http.baseUrl = isDev ? "/apis1" : "/apis";
 http.socket = isDev ? "/socket1" : "/socket";
 // #endif
 // #ifndef H5
-http.baseUrl = isDev ? "http://61.164.207.46:8200" : "http://61.164.207.46:8200";
-http.socket = isDev ? "ws://61.164.207.46:8200" : "wss://www.ibpchina.com.cn";
+http.baseUrl = isDev ? "http://61.164.207.46:8900" : "http://61.164.207.46:8900";
+http.socket = isDev ? "ws://61.164.207.46:8900" : "wss://www.ibpchina.com.cn";
 // #endif
 console.log("接口地址", http)
 

+ 4 - 4
manifest.json

@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid": "wxa78dcac45940aceb",
+        "appid" : "wxa78dcac45940aceb",
         // "appid": "wxede092280fc9f7c7",
         // "appid": "wx08b337e860e3ea58",
         "setting" : {
@@ -90,7 +90,7 @@
             "disableHostCheck" : true,
             "proxy" : {
                 "/socket1" : {
-                    "target" : "ws://61.164.207.46:8200",
+                    "target" : "ws://61.164.207.46:8900",
                     "changeOrigin" : true,
                     "pathRewrite" : {
                         "^/apis1" : ""
@@ -104,14 +104,14 @@
                     }
                 },
                 "/apis1" : {
-                    "target" : "http://61.164.207.46:8200",
+                    "target" : "http://61.164.207.46:8900",
                     "changeOrigin" : true,
                     "pathRewrite" : {
                         "^/apis1" : ""
                     }
                 },
                 "/apis" : {
-                    "target" : "http://61.164.207.46:8200",
+                    "target" : "http://61.164.207.46:8900",
                     "changeOrigin" : false,
                     "pathRewrite" : {
                         "^/apis" : ""

+ 3 - 3
pages/index/index/index.vue

@@ -232,8 +232,8 @@ export default {
                     : uni.getStorageSync("site").logo || "";
                   v.distance =
                     v.distance > 1000
-                      ? (v.distance / 1000).toFixed(2) - 0 + "km"
-                      : v.distance.toFixed(2) - 0 + "m";
+                      ? (v.distance / 1000).toFixed(2) + "km"
+                      : v.distance + "m";
                   return v;
                 });
                 this.shopDetail = list[0];
@@ -366,7 +366,7 @@ export default {
 
   .bottom {
     width: 100%;
-    height: 24px;
+    line-height: 24px;
     box-sizing: border-box;
     padding-top: 7px;
     border-top: 1px solid #dddddd;