标签:ESS url get actor tle pst else show let
1 //确认框 2 .factory(‘ActionSheet‘, function ($ionicActionSheet, TipsPort, Service,Loading) { 3 var ActionSheet = function (urlAction, tipsTitle, params, status, successTips, failTips, successBack, errorBack) { 4 return $ionicActionSheet.show({ 5 buttons: [ 6 {text: ‘<b>确定</b>‘} 7 ], 8 //destructiveText: ‘Delete‘, 9 titleText: ‘<b>‘ + tipsTitle + ‘</b>‘, 10 cancelText: ‘取消‘, 11 cancel: function () { 12 }, 13 //点击确定 14 buttonClicked: function (index) { 15 if (index == "0") { 16 // console.log(params);//get还是post 17 // params = ConvertString(params); 18 Loading(1); 19 Service.GetData(urlAction, params) 20 .success(function (res) { 21 Loading(); 22 if (res.status === status) { 23 TipsPort(successTips, successBack, res); 24 } else { 25 TipsPort(failTips, errorBack, res); 26 } 27 }).error(function (err) { 28 Loading(); 29 TipsPort(failTips); 30 }) 31 } 32 return true; 33 } 34 }); 35 36 return ActionSheet; 37 } 38 })
标签:ESS url get actor tle pst else show let
原文地址:https://www.cnblogs.com/nelsonlei/p/10382016.html