<ion-view view-title="车源信息">
    <ion-content>
        <div class="list">
            <img ng-src="{{vm.picUrl}}" style="width:100%;" />
            <div class="list card">
                <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>
                    <p>价格:<b style="color:red">￥{{vm.price}}</b></p>
                </div>

                <div class="item item-body">
                    <p>车牌号：{{vm.truck.data.truck_no}}</p>
                    <p>车类型：{{vm.truck.data.type}}</p>
                    <p>出发地：{{vm.begin_address | fullAddress}}</p>
                    <p>途经：{{vm.midway_address | fullAddress}}</p>
                    <p>目的地：{{vm.end_address | fullAddress}}</p>
                    <p>
                      备注：{{vm.detail}}
                    </p>

                </div>

                <div class="item item-body">
                    <p>联系人：{{vm.contact_name}}</p>
                    <p>联系电话：{{vm.contact_phone}}</p>
                    <p>信息有效期：{{vm.expiry_date}}</p>
                </div>

                <div class="item item-body">
                    <p>车名：{{vm.truck.data.name}}</p>
                    <p>载重：{{vm.truck.data.load_weight}}</p>
                    <p>车长：{{vm.truck.data.length}}</p>
                    <p>车宽：{{vm.truck.data.width}}</p>
                    <p>车高：{{vm.truck.data.height}}</p>
                    <p>容量：{{vm.truck.data.capacity}}</p>
                    <p>自重：{{vm.truck.data.truck_weight}}</p>
                    <p>开始使用日期：{{vm.truck.data.begin_use_date}}</p>
                    <p>报废日期：{{vm.truck.data.expire_date}}</p>
                    
                    <p> 
                     {{vm.created_at}}
                    </p>
                </div>

            </div>
            <div class="row padding">
                <div class="col-50">
                    <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                </div>
                <div class="col-50">
                    <a ng-href="tel:{{vm.contact_phone}}" class="button button-full button-energized">拨打电话</a>
                </div>
            </div>
        </div>   
    </ion-content>
</ion-view>
 