123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- 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: "<div style='position: relative;top: -11px;'>" +
- "<span class='BindOnAccount_div' style='position: relative;top: 1px;'>" +
- "<span class='BindOnAccount_span'>输入密码 :</span>" +
- "</span>" +
- "<input type='text' ng-model='data.name' class='BindOnAccount_input' style='top:0;background-color: transparent;'>" +
- "<span class='BindOnAccount_div' style='position: relative;top: 5px;'>" +
- "<span class='BindOnAccount_span'>新手机号:" + "</span>" +
- "</span>" +
- "<input type='tel' ng-model='data.name' class='BindOnAccount_input' style='top:42px;height: 31px;'>" +
- "</div>",
- title: "修改手机号",
- scope: $scope,
- buttons: [
- {
- text: "取消"
- },
- {
- text: '<span class="pop_right_button">确认</span>',
- 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: "<div style='position: relative;top: -10px;'>" +
- "<span class='BindOnAccount_div'>" +
- "<span class='BindOnAccount_span'>旧密码 :</span>" +
- "</span>" +
- "<input type='password' ng-model='data.name'class='BindOnAccount_input' style='top:0;background-color: transparent;'>" +
- "<span class='BindOnAccount_div' style='position: relative;top: 5px;'>" +
- "<span class='BindOnAccount_span'>新密码 :" + "</span>" +
- "</span>" +
- "<input type='password' ng-model='data.name' class='BindOnAccount_input' style='top:42px;height: 31px;'>" +
- "<span class='BindOnAccount_div' style='position: relative;top:10px;'>" +
- "<span class='BindOnAccount_span'>重复密码:" + "</span>" +
- "</span>" +
- "<input type='password' ng-model='data.name' class='BindOnAccount_input' style='top:83px;height: 31px;'>" +
- "</div>",
- title: "修改密码",
- scope: $scope,
- buttons: [
- {
- text: "取消"
- },
- {
- text: '<span class="pop_right_button">确认</span>',
- 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工程重点大学";
- });
|