自定义ionic弹出框
<img width="64" height="64" src="img/timg.jpg" style="border-radius:10px;margin-top:20px;border:1px solid rgba(255,255,255,.3)" id="imgUp" ng-click="openPuctureStyle()" ng-if="showDefaultFace">
<img width="64" height="64" ng-src="{{BD.user.img}}" style="border-radius:10px;margin-top:20px;border:1px solid rgba(255,255,255,.3)" id="imgUp" ng-click="openPuctureStyle()" ng-if="!showDefaultFace">
$ionicModal.fromTemplateUrl('picture.html', {
scope: $scope,
animation: 'slide-in-up',
backdropClickToClose: true
}).then(function (modal) {
$scope.picture = modal;
});
$scope.openPuctureStyle = function () {
$scope.picture.show();
};
$scope.closePuctureStyle = function () {
$scope.picture.hide();
};
<script id="picture.html" type="text/ng-template">
<ion-modal-view id="openmodel" class="stable-bg" style="height:220px;position:absolute;bottom:20px">
<ion-header-bar style="background-color:#222;z-index:100;border-bottom:1px solid rgba(0,0,0,.25);">
<h5 class="title" style="color:white;">操作</h1>
</ion-header-bar>
<ion-content scroll="true" style="background-color:#1f1f26";>
<div class="list borderdown" style="background-color:#1f1f26;margin-bottom:0"; ng-click="closePuctureStyle()">
<button class="light button-clear" style="padding:20px;margin:0px" ng-click="photo()">拍照</button>
</div>
<div class="list borderdown" style="background-color:#1f1f26"; ng-click="closePuctureStyle()">
<button class="light button-clear" style="padding:20px;margin:0px" ng-click="album()">从相册中选择</button>
</div>
</ion-content>
<a class="button " style="background-color:#222;color:white;width:100%;position: fixed;bottom: 0px;left:0px" z-index:1000; ng-click="picture.hide()" style="width:100%">取消</a>
</ion-modal-view>
</script>
最新文章
- [资料分享]组件方式开发 Web App全站
- grease monkey setTimeout
- curl网站开发指南
- springmvc+hibernate入门-揭开神秘的面纱
- java程序员从笨鸟到菜鸟系列
- onethink和phpwind共享
- asp.net学习之ado.net(连接模式访问)
- bootstrap复习:组件
- jQuery的基本操作
- _1Python简介 安装及版本检测
- redis分布式锁的几种实现方式,以及Redisson的配置和使用
- 什么是yum源,如何更改yum源
- Hystrix 停止开发。。。Spring Cloud 何去何从?
- Spring Boot笔记四:日志框架介绍
- 爬虫----BeautifulSoup模块
- JavaScript 各种验证收集
- ORM的查询操作
- nova-api源码分析(APP中用到的开源库)
- Python之路【第五篇】: 函数、闭包、装饰器、迭代器、生成器
- .NET预处理器指令