<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>
            <div class="item item-input item-myselect">
                <span class="input-label" style="width:15%">
                    出发地址
                </span>
                <china-area-selector region="vm.begin_addressPick"></china-area-selector>
            </div>
            <div class="item item-input item-myselect">
                <span class="input-label" style="width:15%">
                    到达地址
                </span>
                <china-area-selector region="vm.end_addressPick"></china-area-selector>
            </div>
            <div class="item item-input item-myselect">
                <span class="input-label" style="width:15%">
                    途经地址
                </span>
                <china-area-selector region="vm.midway_addressPick"></china-area-selector>
            </div>
            <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.price" type="text" placeholder="价格">
            </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">
                <input ng-model="vm.expiry_date" 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>
