Ben преди 9 години
родител
ревизия
ee4e3c7709
променени са 5 файла, в които са добавени 10 реда и са изтрити 10 реда
  1. 1 1
      wl/www/js/filters/filter.js
  2. 1 1
      wl/www/templates/car/index.html
  3. 2 2
      wl/www/templates/goods/index.html
  4. 3 3
      wl/www/templates/home/index.html
  5. 3 3
      wl/www/templates/my/message.html

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

xqd
@@ -49,7 +49,7 @@
     module.filter('fullAddress', function () {
         return function (input) {
             if (!input) return input;
-            return input.replace(',','--');
+            return input.replace(',','-');
         };
     });
 })(angular.module('app.filters'));

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

xqd
@@ -39,7 +39,7 @@
                 <div class="list">
                     <a class="item item-thumbnail-left"  ng-repeat="item in items" ng-click="detail(item)">
                         <img src="img/demo/defaultcar.png" />
-                        <h2 style="white-space:normal">【{{item.begin_address }}】-【{{item.end_address }}】<span style="color:gray;">({{item.title}})</span></h2>
+                        <h2 style="white-space:normal">【{{item.begin_address | fullAddress }}】-【{{item.end_address | fullAddress }}】<span style="color:gray;">({{item.title}})</span></h2>
                         <p><span style="float:left"><b style="color:orangered">¥{{item.price}}</b><em style="padding-left:3px;font-size:0.75em">起</em></span></p>
                         <p><span style="float:left">联系人:{{item.contact_name}}</span> <span style="float:right">电话:{{item.contact_phone}}</span></p> 
                     </a>

+ 2 - 2
wl/www/templates/goods/index.html

xqd
@@ -36,10 +36,10 @@
                 </div>          
                 <div class="list">
                     <a class="item" ng-repeat="item in items" ng-click="detail(item)">
-                        <h2>【{{item.begin_address}}】-【{{item.end_address}}】</h2>
+                        <h2>【{{item.begin_address | fullAddress}}】-【{{item.end_address | fullAddress}}】</h2>
                         <p>
                             <span style="float:left"><b style="color:orangered">¥{{item.price}}</b><em style="padding-left:3px;font-size:0.75em">起</em></span>
-                            <span style="float:right">途经:{{item.midway_address | shortAddress}}</span>
+                            <span style="float:right">途经:{{item.midway_address | fullAddress}}</span>
                         </p>
                         <p><span style="float:left">联系人:{{item.contact_name}}</span> <span style="float:right">电话:{{item.contact_phone}}</span></p> 
                     </a>

+ 3 - 3
wl/www/templates/home/index.html

xqd
@@ -54,16 +54,16 @@
         </div>
         <div class="list" ng-if="vm.showIndex==1">
             <a class="item" ng-repeat="item in goods" ng-click="detail(item)">
-                <h2>【{{item.begin_address | shortAddress}}】-【{{item.end_address | shortAddress}}】</h2>
+                <h2>【{{item.begin_address | fullAddress}}】-【{{item.end_address | fullAddress}}】</h2>
                 <p><span style="float:left"><b style="color:orangered">¥{{item.price}}</b><em style="padding-left:3px;font-size:0.75em">起</em></span>
-                 <span style="float:right">途经:{{item.midway_address | shortAddress}}</span></p>
+                 <span style="float:right">途经:{{item.midway_address | fullAddress}}</span></p>
                 <p><span style="float:left">联系人:{{item.contact_name}}</span> </p> 
             </a>
         </div>
         <div class="list" ng-if="vm.showIndex==2">
             <a class="item item-thumbnail-left" ng-repeat="item in cars" ng-click="detail(item)">
                 <img ng-src="{{item.truck.data.photo | truckPhoto}}" />
-                <h2 style="white-space:normal">【{{item.begin_address | shortAddress}}】-【{{item.end_address | shortAddress}}】<span style="color:gray;">({{item.title}})</span></h2>
+                <h2 style="white-space:normal">【{{item.begin_address | fullAddress}}】-【{{item.end_address | fullAddress}}】<span style="color:gray;">({{item.title}})</span></h2>
                 <p><span style="float:left"><b style="color:orangered">¥{{item.price}}</b><em style="padding-left:3px;font-size:0.75em">起</em></span></p>
                 <p><span style="float:left">联系人:{{item.contact_name}}</span>  </p>
             </a>

+ 3 - 3
wl/www/templates/my/message.html

xqd xqd
@@ -14,10 +14,10 @@
         <ion-list  show-delete="shouldShowDelete">
             <div   ng-repeat="item in items">
                 <ion-item class="item" ng-if="item.type==1" ng-click="detail(item)">
-                    <h2>【{{item.begin_address | shortAddress}}】-【{{item.end_address | shortAddress}}】</h2>
+                    <h2>【{{item.begin_address | fullAddress}}】-【{{item.end_address | fullAddress}}】</h2>
                     <p>
                         <span style="float:left"><b style="color:orangered">¥{{item.price}}</b><em style="padding-left:3px;font-size:0.75em">起</em></span>
-                        <span style="float:right">途经:{{item.midway_address | shortAddress}}</span>
+                        <span style="float:right">途经:{{item.midway_address | fullAddress}}</span>
                     </p>
                     <p><span style="float:left">联系人:{{item.contact_name}}</span> <span style="float:right">电话:{{item.contact_phone}}</span></p>
                     <ion-delete-button class="ion-minus-circled"
@@ -26,7 +26,7 @@
                 </ion-item>
                 <ion-item class="item item-thumbnail-left" ng-if="item.type==2" ng-click="detail(item)">
                     <img ng-src="{{item.truck.data.photo | truckPhoto}}" />
-                    <h2 style="white-space:normal">【{{item.begin_address | shortAddress}}】-【{{item.end_address | shortAddress}}】<span style="color:gray;">({{item.title}})</span></h2>
+                    <h2 style="white-space:normal">【{{item.begin_address | fullAddress}}】-【{{item.end_address | fullAddress}}】<span style="color:gray;">({{item.title}})</span></h2>
                     <p><span style="float:left"><b style="color:orangered">¥{{item.price}}</b><em style="padding-left:3px;font-size:0.75em">起</em></span></p>
                     <p><span style="float:left">联系人:{{item.contact_name}}</span> <span style="float:right">电话:{{item.contact_phone}}</span></p>
                     <ion-delete-button class="ion-minus-circled"