<ion-view view-title="发布车源">
    <ion-content>
        <div class="list">
            <div class="item item-divider">
                <span>请填写您要发布的车源信息</span>
            </div>
            <label class="item item-input">
                <input ng-model="vm.price"   type="number" placeholder="价格">
            </label>
            <ionic-city-picker options='vm.begin_addressPick'></ionic-city-picker>
            <ionic-city-picker options='vm.end_addressPick'></ionic-city-picker>
            <ionic-city-picker options='vm.midway_addressPick'></ionic-city-picker>
            <label class="item item-input item-select item-select-width">
                <span class="input-label">
                    车辆
                </span>
                <select ng-model="vm.truck_id" ng-options="x.id as x.name for x in truckOpt" placeholder="车辆"></select>
            </label>
            <label class="item item-input ">
                <input ng-model="vm.contact_name" type="text" placeholder="随车联系人">
            </label>
              <label class="item item-input ">
                <input  ng-model="vm.contact_phone" type="text" placeholder="联系电话">
            </label>
            <label class="item item-input">
                <textarea placeholder="详情" rows="8" ng-model="vm.detail"></textarea>
            </label>
            <div class="padding">
                <button type="button" ng-click="save()" class="button button-full button-positive">提交</button>
            </div>
        </div>
    </ion-content>
</ion-view>
