<ion-view view-title="个人信息">
    <ion-content>
        <div class="list">
            <div class="item item-divider">
                完善个人信息
            </div>
            <a class="item item-avatar-right item-arrow-no" ng-click="setAvator()">
                <img ng-src="{{host + user.avatar | avator}}" />
                <h2>头像</h2>
                <p style="font-size:12px">点击上传</p>
            </a>
            <a class="item">
                <em class="fl">手机号</em>
                <span style="float:right;margin-right:60px">{{user.phone}}</span>
                <span class="badge badge-assertive" style="right:10px">已认证</span>
            </a>
            <label class="item item-input ">
                <span class="input-label">姓名<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="user.name" type="text" placeholder="真实姓名">
            </label>
            <label class="item item-input">
                <span class="input-label">身份证号<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="user.idcard_no" type="text" placeholder="证件号码">
            </label>
            <label class="item item-input ">
                <span class="input-label">昵称<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="user.nick_name" type="text" placeholder="昵称">
            </label>
            <label class="item item-input item-select item-select-width">
                <span class="input-label">
                    性别
                </span>
                <select ng-model="user.sex" ng-options="x.value as x.name for x in genderOpt"></select>
            </label>
            <label class="item item-input ">
                <span class="input-label">年龄</span>
                <input style="text-align:right" ng-model="user.age" type="number" placeholder="年龄">
            </label>
            <label class="item item-input ">
                <span class="input-label">紧急联系电话</span>
                <input style="text-align:right" ng-model="user.emergnency_phone" type="tel" placeholder="紧急联系电话">
            </label>
            <label class="item item-input ">
                <span class="input-label">公司</span>
                <input style="text-align:right" type="text"  ng-model="user.company" placeholder="公司">
            </label>
            <label class="item item-input ">
                <span class="input-label">所在城市</span>
                <input style="text-align:right" type="text"  ng-model="user.city"  placeholder="所在城市">
            </label>
            <label class="item item-input ">
                <span class="input-label">地址</span>
                <input style="text-align:right" type="text" ng-model="user.address" placeholder="地址">
            </label>
            <div class="padding">
                <button type="button" ng-click="save()" class="button button-full button-positive">提交</button>
            </div>
        </div>
    </ion-content>
</ion-view>
