|
@@ -93,9 +93,9 @@
|
|
});
|
|
});
|
|
//退出登陆
|
|
//退出登陆
|
|
$scope.logout = function(){
|
|
$scope.logout = function(){
|
|
- storage.remove("token");
|
|
|
|
- storage.remove("user");
|
|
|
|
- $state.go("login");
|
|
|
|
|
|
+ storage.remove("token");
|
|
|
|
+ storage.remove("user");
|
|
|
|
+ $state.go("login");
|
|
}
|
|
}
|
|
|
|
|
|
}]);
|
|
}]);
|
|
@@ -444,14 +444,14 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}]);
|
|
}]);
|
|
- app.controller('my_account_addCtrl', ["$scope","common","$ionicTabsDelegate", "$state", "myService", "msg"
|
|
|
|
- , function ($scope,common,$ionicTabsDelegate, $state, myService, msg) {
|
|
|
|
|
|
+ app.controller('my_account_addCtrl', ["$scope","common","$timeout","$ionicTabsDelegate", "$state", "myService", "msg"
|
|
|
|
+ , function ($scope,common,$timeout,$ionicTabsDelegate, $state, myService, msg) {
|
|
$scope.addpict = function () {
|
|
$scope.addpict = function () {
|
|
- common.chooseImage().then(function (img) {
|
|
|
|
- common.uploadFiles(img,1).then(function (result) {
|
|
|
|
|
|
+ common.chooseImage().then(function (qrcode) {
|
|
|
|
+ common.uploadFiles(qrcode,1).then(function (result) {
|
|
var response = JSON.parse(result.response);
|
|
var response = JSON.parse(result.response);
|
|
var file = response.data.file;
|
|
var file = response.data.file;
|
|
- $scope.imgs.push(config.imgServer+file);
|
|
|
|
|
|
+ $scope.qrcode.push(config.imgServer+file);
|
|
}, function (error) {
|
|
}, function (error) {
|
|
msg.error('图片上传失败');
|
|
msg.error('图片上传失败');
|
|
});
|
|
});
|
|
@@ -459,10 +459,10 @@
|
|
console.log('图片选择失败');
|
|
console.log('图片选择失败');
|
|
});
|
|
});
|
|
};
|
|
};
|
|
- $scope.imgs=[];
|
|
|
|
|
|
+ $scope.qrcode=[];
|
|
$scope.deletefile = function (file) {
|
|
$scope.deletefile = function (file) {
|
|
- var index = $scope.imgs.indexOf(file);
|
|
|
|
- $scope.imgs.splice(index, 1);
|
|
|
|
|
|
+ var index = $scope.qrcode.indexOf(file);
|
|
|
|
+ $scope.qrcode.splice(index, 1);
|
|
common.deletefile(file).then(function () {
|
|
common.deletefile(file).then(function () {
|
|
})
|
|
})
|
|
};
|
|
};
|
|
@@ -470,7 +470,8 @@
|
|
bank_name:'',
|
|
bank_name:'',
|
|
bank_number:'',
|
|
bank_number:'',
|
|
bank_phone:'',
|
|
bank_phone:'',
|
|
- bank_user:''
|
|
|
|
|
|
+ bank_user:'',
|
|
|
|
+ type:""
|
|
};
|
|
};
|
|
$scope.addAccount = function () {
|
|
$scope.addAccount = function () {
|
|
var data = {
|
|
var data = {
|
|
@@ -493,9 +494,9 @@
|
|
$scope.addQrcode = function(){
|
|
$scope.addQrcode = function(){
|
|
var data = {
|
|
var data = {
|
|
data:{
|
|
data:{
|
|
- bank_name:$scope.vm.bank_name,
|
|
|
|
- //bank_number:$scope.imgs
|
|
|
|
- bank_number:"https://www.baidu.com/img/bd_logo1.png"
|
|
|
|
|
|
+ type:$scope.vm.type,
|
|
|
|
+ qrcode:$scope.qrcode,
|
|
|
|
+ //qrcode:"https://www.baidu.com/img/bd_logo1.png"
|
|
}
|
|
}
|
|
};
|
|
};
|
|
myService.addQrcode(data).then(function(result){
|
|
myService.addQrcode(data).then(function(result){
|