<ion-view view-title="发布梦想" >
   
    <ion-nav-buttons side="right">
        <button class="button button-clear"  ng-click="doSomething()">
           发布说明
        </button>
    </ion-nav-buttons>
    <ion-content>
        <div class="addcontent list">
            <div class="item">你想实现的梦想</div>
            <div class="item item-input-inset itemjs">
                <label class="item-input-wrapper">
                    <input type="text" ng-model="vm.dream">
                </label>
            </div>
            <div class="item">我的梦想介绍</div>
            <div class="item itemjs">
                <textarea rows="4" cols="50" placeholder="添加梦想介绍" ng-model="vm.about" style="border: 1px solid #FF4B82;padding: 10px;width: 98%;"></textarea>
            </div>
            <div class="item">上传图片和视频，让别人更好的了解你</div>
            <div class="item itemjs">
                <a ng-repeat="item in imgs" ng-click="showImages(imgServer+item)" class="img-file-up">
                    <b style="background-image:url({{imgServer+item}});"><em ng-click="deletefile(item)" class="ion-ios-close-outline"></em></b>
                </a>
                <a class="btn-file-up" ng-click="addpict()"><i class="ion-image"></i>添加图片</a>
                <video src="{{video.path}}" ng-show="video.isOK"  height="72px" width="72px" controls="controls">
                </video>
                <a class="btn-file-up" ng-click="addvideo()" ng-show="!video.isOK"><i class="icon ion-cash"></i>添加视频</a>
            </div>
            <div class="item">实现梦想所需要的人民币</div>
            <div class="item item-input-inset itemjs">
                <label class="item-input-wrapper">
                    ￥
                    <input type="text" ng-model="vm.money">
                </label>
            </div>
        </div>
        <div class="padding">
            <button type="submit"  class="button button-full button-calm" ng-click="add()">
                发布梦想
            </button>
        </div>
    </ion-content>
</ion-view>
