|
@@ -19,35 +19,7 @@
|
|
$scope.toggleLeftSideMenu = function () {
|
|
$scope.toggleLeftSideMenu = function () {
|
|
$ionicSideMenuDelegate.toggleLeft();
|
|
$ionicSideMenuDelegate.toggleLeft();
|
|
};
|
|
};
|
|
- $scope.openFilter = function ($event) {
|
|
|
|
- // 一个精心制作的自定义弹窗
|
|
|
|
- var myPopup = $ionicPopup.show({
|
|
|
|
- template: '请选择<select><option value="opel">性别</option><option value="audi">Audi</option></select> <br>请选择<select><option value="opel">地区</option><option value="audi">Audi</option></select>',
|
|
|
|
- title: '筛选',
|
|
|
|
- scope: $scope,
|
|
|
|
- buttons: [
|
|
|
|
- { text: '取消' },
|
|
|
|
- {
|
|
|
|
- text: '<b>提交</b>',
|
|
|
|
- type: 'button-positive',
|
|
|
|
- onTap: function(e) {
|
|
|
|
- if (!$scope.data.wifi) {
|
|
|
|
- //不允许用户关闭,除非他键入wifi密码
|
|
|
|
- e.preventDefault();
|
|
|
|
- } else {
|
|
|
|
- return $scope.data.wifi;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
- });
|
|
|
|
- myPopup.then(function(res) {
|
|
|
|
- console.log('Tapped!', res);
|
|
|
|
- });
|
|
|
|
- $timeout(function() {
|
|
|
|
- myPopup.close(); //由于某种原因3秒后关闭弹出
|
|
|
|
- }, 3000);
|
|
|
|
- };
|
|
|
|
|
|
+
|
|
$scope.openPopover = function ($event) {
|
|
$scope.openPopover = function ($event) {
|
|
$scope.popover.show($event);
|
|
$scope.popover.show($event);
|
|
};
|
|
};
|