/**
* 监听点击物理返回键或者页面按钮离开页面
*/
$scope.$on("$destroy", function() {
if($state.current.name !='uploadImagePage'){//判断是返回上一页还是进入下一页
alert("delete");
//调用自己的方法
runServiceWithSession(
$http,
$ionicLoading,
$ionicPopup,
$state,
'imageFilesDelete',
{busNo: flwCode,},
function (data, status) {
var deletRs = data["operatorMsg"];
});
}
});