baimeng 9 anni fa
parent
commit
34b01f86e3

+ 2 - 2
wl/www/js/config/config.js

xqd
@@ -2,8 +2,8 @@
     //全局配置 
     app.constant("config", {
         //server: (!!window.cordova) ? "http://w2.9026.com/" : location.origin, //服务端,
-         // server: "http://120.25.204.211/"
-       server: "http://wl.youawan.com/"
+        server: "http://211.149.200.17/"
+      // server: "http://wl.youawan.com/"
        // server: 'http://localhost:8094/'
        
     });

+ 2 - 1
wl/www/js/filters/filter.js

xqd
@@ -48,8 +48,9 @@
     });
     module.filter('fullAddress', function () {
         return function (input) {
+           
             if (!input) return input;
-            return input.replace(',','-');
+            return input.replace(/,/g,'-');
         };
     });
 })(angular.module('app.filters'));

+ 1 - 1
wl/www/templates/car/detail.html

xqd
@@ -5,7 +5,7 @@
             <div class="list">
                 <div class="item item-avatar" style="border-width:0">
                     <img ng-src="{{user.data.avatar | avator}}" />
-                    <h2 style="white-space:normal">【{{vm.begin_address | shortAddress}}】-【{{vm.end_address | shortAddress}}】的车源信息</h2>
+                    <h2 style="white-space:normal">【{{vm.begin_address | fullAddress}}】-【{{vm.end_address | fullAddress}}】的车源信息</h2>
                     <p>价格:<b style="color:red">¥{{vm.price}}</b></p>
                 </div>
 

+ 1 - 1
wl/www/templates/goods/detail.html

xqd
@@ -5,7 +5,7 @@
             <div class="list" >
                 <div class="item item-avatar" style="border-width:0">
                     <img ng-src="{{user.data.avatar | avator}}" />
-                    <h2 style="white-space:normal">【{{vm.begin_address | shortAddress}}】-【{{vm.end_address | shortAddress}}】的货源信息</h2>
+                    <h2 style="white-space:normal">【{{vm.begin_address | fullAddress}}】-【{{vm.end_address | fullAddress}}】的货源信息</h2>
                     <p>价格:<b style="color:red">¥{{vm.price}}</b></p>
                 </div>
                 <div class="item item-body">