<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>

最新文章

  1. [资料分享]组件方式开发 Web App全站
  2. grease monkey setTimeout
  3. curl网站开发指南
  4. springmvc+hibernate入门-揭开神秘的面纱
  5. java程序员从笨鸟到菜鸟系列
  6. onethink和phpwind共享
  7. asp.net学习之ado.net(连接模式访问)
  8. bootstrap复习:组件
  9. jQuery的基本操作
  10. _1Python简介 安装及版本检测
  11. redis分布式锁的几种实现方式,以及Redisson的配置和使用
  12. 什么是yum源,如何更改yum源
  13. Hystrix 停止开发。。。Spring Cloud 何去何从?
  14. Spring Boot笔记四:日志框架介绍
  15. 爬虫----BeautifulSoup模块
  16. JavaScript 各种验证收集
  17. ORM的查询操作
  18. nova-api源码分析(APP中用到的开源库)
  19. Python之路【第五篇】: 函数、闭包、装饰器、迭代器、生成器
  20. .NET预处理器指令

热门文章

  1. JSP 基于Oracle分页
  2. redis中的事务(版本2.6.16)
  3. object-c 框架之经常使用结构体
  4. Android轻量级日志管理框架
  5. iOS将数组中的内容分拼接成字符串
  6. MVC| Razor 布局-模板页 | ViewStart.cshtml
  7. Qemu事件处理机制简介
  8. Android应用架构之MVP---&amp;gt;天气实例
  9. URL重写:Rewirte模块原理详解
  10. BFS 和 DFS