ionic 提示框$ionicPopup

2017-03-30  本文已影响0人  如果你还记得我是小双鱼

$scope.myPopup = $ionicPopup.sho({

title: '提示',                          //提示标题

template: '提示文字'          //提示文字

templateUrl: 'templates/please-bet.html',     //提示文字链接

scope: $scope,

buttons: [{

text: '确定',

type: 'sale-sure',

onTap: function (e) {

e.preventDefault();

$scope.myPopup.close();

}

}]

})

$scope.myPopup = $ionicPopup.show({

       title: '提示',

       template:'提示内容!',

     // templateUrl: 'templates/system-fail.html',

      scope: $scope,

      buttons: [{

             text: '取消',

             type: 'sale-cancel',

             onTap: function (e) {

            $scope.myPopup.close();

            }

       }, {

               text: '确定',

               type: 'sale-sure',

               onTap: function (e) {

                     e.preventDefault();

                    $state.go("tab.set-enter",{reload:true});

                    $scope.myPopup.close();

                }

         }]

 }) 

上一篇 下一篇

猜你喜欢

热点阅读