司机APP端更改代客下单出发地和目的地
- 登陆荣益租车 http://172.16.100.162/gov/Area/index.php
找到从业人员信息,职务(驾驶员),登陆司机端APP;
vip-代客下单,分配登陆司机,找到订单详情页面:order.html
ng-if 里的order.business_id 控制下车状态
1 2 3 4 5
| <div class="center" ng-if="order.business_id<5">至</div> <div class="right" ng-if="order.business_id<5"> <span ng-click="showAddress(order.aboard2)" class="Place">{{order.aboard2||'无'}}</span> <img src="img/imge/dibiao.png"> </div>
|
- filter.js 里定义了不同下单的状态
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| .filter('businessName', function() { return function(input) { switch (input) { case '1': return '接机'; case '2': return '送机'; case '3': return '接火车'; case '4': return '送火车'; case '5': return '半日租'; case '6': return '代驾日租'; case '7': return '代驾时租'; case '8': return '自驾日租'; case '19': return '自驾时租'; default:break; } }; })
|
- 自定义Filter:
1 2 3 4 5 6
| <ion-item class="order-list"> <div class="left">{{(order.business_id | businessName) || '---'}}</div> <div class="center" ng-if='order.business_id>=3' >{{order.train_num|| '---'}}</div> <div class="center" ng-if='order.business_id<=2'>{{order.flight_num|| '---'}}</div> <div class="right">{{order.start_at | data}}</div> </ion-item>
|
order.business_id 传入的数字以 businessName 作为筛选条件。或者显示’—‘