自定义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>
自定义ionic弹出框的更多相关文章
- 自定义PopupWindow弹出框(带有动画)
使用PopupWindow来实现弹出框,并且带有动画效果 首先自定义PopupWindow public class LostPopupWindow extends PopupWindow { pub ...
- UIPresentationController - iOS自定义模态弹出框
参考: https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/Definin ...
- iOS自定义提示弹出框(类似UIAlertView)
菜鸟一枚,大神勿喷.自己在牛刀小试的时候,发现系统的UIAlertView有点不喜欢,然后就自己自定义了一个UIAlertView,基本上实现了系统的UIAlertView,可以根据项目的需求修改UI ...
- swing自定义JDialog弹出框
第一次搞swing,自定义JDialog的例子较少,写下来备忘 ,对JDialog中的文本框进行了验证 package com.chauvet; import java.awt.Component; ...
- 微信小程序之自定义底部弹出框动画
最近做小程序时,会经常用到各种弹框.直接做显示和隐藏虽然也能达到效果,但是体验性太差,也比较简单粗暴.想要美美地玩,添加点动画还是非常有必要的.下面做一个底部上滑的弹框. wxml <view ...
- vue中点击屏幕其他区域关闭自定义div弹出框
直接上代码: mounted: function () { let that = this; $(document).on('click', function (e) { let dom = $('. ...
- 自定义一个类似UIAlertView的弹出框
这个是和UIAlertView类似,但是可以自定义view的样式废话不多说,上代码: 首先第一步:创建一个继承自View的类如: #import <UIKit/UIKit.h> @clas ...
- android自定义弹出框样式实现
前言: 做项目时,感觉Android自带的弹出框样式比较丑,很多应用都是自己做的弹出框,这里也试着自己做了一个. 废话不说先上图片: 实现机制 1.先自定义一个弹出框的样式 2.自己实现CustomD ...
- 弹出框优化实例(alert和confirm)
在项目过程中会遇到需要使用自己定义的弹出框的情况.以前用过ymprompt,但是它太复杂而且不好自己操控.所以自己写了一个弹出框实例. 主要有两类弹出框alert和confirm.基于jQuery a ...
随机推荐
- How to check the 'OLE DB Destination' INPUT and OUTPUT
Step 1: Step 2: Step 3:
- C语言 | 基础知识点笔记
函数 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
- MySQL + Amoeba 负载均衡、主从备份方案
1. 基本环境 4台内网虚拟机的操作系统都是ubuntu-14.04.4 64位 IP为:192.168.169.11.192.168.169.12.192.168.169.13.192.168.1 ...
- automaticallyAdjustsScrollViewInsets(UITextView文字顶部留有空白)
iOS7新添加的UIViewController的属性automaticallyAdjustsScrollViewInsets 此属性默认为YES,这样UIViewController下如果只有一个U ...
- 二维树状数组的区间加减及查询 tyvj 1716 上帝造题的七分钟
详细解释见小结.http://blog.csdn.net/zmx354/article/details/31740985 #include <algorithm> #include < ...
- docker 查看容器挂载的目录
$ docker inspect container_name | grep Mounts -A 20
- mysql更改表结构:添加、删除、修改字段、调整字段顺序
添加字段: alter table `user_movement_log` Add column GatewayId int not null default 0 AFTER `Regionid` ( ...
- Away3D引擎学习笔记(二)CameraController相机控制的应用
cameraController---相机控制器 这里针对Away3D里面封装的CameraController的区别和使用做些简单介绍.相机控制器的设计思路比较清晰,所以难点东西不多.使用方面附上源 ...
- Google Code Jam 资格赛: Problem A. Magic Trick
Note: To advance to the next rounds, you will need to score 25 points. Solving just this problem wil ...
- Ubuntu配置apache2.4配置虚拟主机遇到的问题
update: 偶然看到了 apache的更新说明,直接贴个地址过来吧. http://httpd.apache.org/docs/2.4/upgrading.html 最近想把web开发目录从/va ...