<ion-view view-title="发布梦想" >
    <ion-content>
        <div class="addcontent list">
            <div class="item" style="color: #7B7B7B">你想实现的梦想</div>
            <div class="item item-input-inset itemjs">
                <label class="item-input-wrapper" style="background: #fff; border: 1px solid #D7D7D7; margin: 0 12px 0 5px">
                    <input type="text" ng-model="vm.name">
                </label>
            </div>
            <div class="item" style="color: #7B7B7B">我的梦想互动信息</div>
            <div class="item itemjs">
                <textarea rows="7" cols="50" placeholder="添加梦想介绍" ng-model="vm.about" style="border: 1px solid #D7D7D7;padding: 10px;width: 98%;"></textarea>
            </div>
            <div class="item" style="color: #7B7B7B">上传图片或视频，让别人更好地了解你</div>
            <div class="item itemjs">
                <a ng-repeat="item in imgs" ng-click="showImages(item)" class="img-file-up">
                    <b style="background-image:url({{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>-->
                <a class="btn-file-up" ng-click="addpict()">
                    <img src="img/icon_photo.svg" style="height: 40px; width: 40px; text-align: center; line-height: 40px" /><br>
                    <em style="font-size: 16px">添加图片</em>
                </a>
                <video ng-src="{{video.file | trustUrl}}" ng-show="video.isOK" poster="{{video.vpic}}" height="72px" width="72px" controls="controls">
                </video>
                <a class="btn-file-up" ng-click="addvideo()" ng-show="!video.isOK">
                    <img src="img/icon_video.svg" style="height: 40px; width: 40px; text-align: center; line-height: 40px" /><br>
                    <em style="font-size: 16px">添加视频</em>
                </a>
            </div>
            <div class="item" style="color: #7B7B7B">实现梦想所需要的人民币</div>
            <div class="item item-input-inset itemjs">
                <label class="item-input-wrapper" style="background: #fff; border: 1px solid #D7D7D7; margin: 0 12px 0 5px">
                    ￥
                    <input type="tel" ng-model="vm.coin">
                </label>
            </div>
        </div>
        <div class="padding">
            <div class="row">
                <div class="col">
                    <button type="submit"  class="button button-block button-calm" style="border-radius: 30px" ng-click="add()">
                        发布梦想
                    </button>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>
