angular.module('push')
.controller('BindOnAccountCtrl', function ($scope, $ionicPopup, $ionicActionSheet) {
$scope.settingsList= [
{ id: 0,
text:"微信",
checked: true
},
{ id: 1 ,
text:"新浪微博",
checked: false
},
{ id: 2 ,
text:"腾讯QQ",
checked: false
}
];
// 编辑头像
$scope.show_header = function () {
// 弹出头像选择框
$ionicActionSheet.show({
cancelOnStateChange: true,
cssClass: 'action_s',
buttons: [
{text: "拍照"},
{text: "从相册上传"}
],
buttonClicked: function (index) {
return true;
},
destructiveText: "取消",
destructiveButtonClicked: function () {
return true;
}
});
};
// 编辑用户名
$scope.showPopup = function () {
$scope.data = {};
// 调用$ionicPopup弹出编辑用户名
var myShow = $ionicPopup.show({
template: "
" +
"" +
"输入密码 :" +
"" +
"" +
"" +
"新手机号:" + "" +
"" +
"" +
"
",
title: "修改手机号",
scope: $scope,
buttons: [
{
text: "取消"
},
{
text: '确认',
type: "button-positive",
onTap: function (e) {
return $scope.data.name;
}
}
]
})
.then(function (res) {
$scope.organizationName = [res].join(" ");
});
};
// 编辑个性签名
$scope.showSignature = function () {
$scope.data = {};
// 调用$ionicPopup弹出编辑个性签名
$ionicPopup.show({
template: "" +
"" +
"旧密码 :" +
"" +
"" +
"" +
"新密码 :" + "" +
"" +
"" +
"" +
"重复密码:" + "" +
"" +
"" +
"
",
title: "修改密码",
scope: $scope,
buttons: [
{
text: "取消"
},
{
text: '确认',
type: "button-positive",
onTap: function (e) {
return $scope.data.Signature;
}
}
]
})
.then(function (res) {
$scope.organizationBrief = [res].join(" ");
});
};
$scope.TelNumber = "13656219414";
$scope.publisher_Data = "浙江大学成立于1897年,前身求是书院,是中国人最早自己创办的新式高等学府之一是首批进入国家211工程和985工程建设的重点大学之一浙江大学技术转移中心在2008年被科技部认定为首批76家国家技术转移示范机构之一";
$scope.organizationName = "浙江大学";
$scope.organizationType = "高校";
$scope.organizationArea = "浙江 杭州";
$scope.organizationPeople = "刘春华";
$scope.organizationPhone = "13868786880";
$scope.organizationBrief = "中国211工程,985工程重点大学";
});