|
@@ -378,28 +378,28 @@
|
|
}]);
|
|
}]);
|
|
app.controller('rechargeCtrl', ["$scope","$ionicTabsDelegate", "$state", "myService", "msg"
|
|
app.controller('rechargeCtrl', ["$scope","$ionicTabsDelegate", "$state", "myService", "msg"
|
|
, function ($scope, $ionicTabsDelegate,$state, myService, msg) {
|
|
, function ($scope, $ionicTabsDelegate,$state, myService, msg) {
|
|
- $scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
- $ionicTabsDelegate.showBar(false);
|
|
|
|
- myService.myInfo().then(function(result){
|
|
|
|
- $scope.vm = result.data.data;
|
|
|
|
- $scope.vm.money = '';
|
|
|
|
- $scope.vm.payType = 2;
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
- $scope.payExplain = function(){
|
|
|
|
- $state.go("app.payExplain")
|
|
|
|
- };
|
|
|
|
- $scope.withdraw = function(){
|
|
|
|
- $state.go("app.withdraw")
|
|
|
|
- };
|
|
|
|
|
|
+ $scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
+ $ionicTabsDelegate.showBar(false);
|
|
|
|
+ myService.myInfo().then(function(result){
|
|
|
|
+ $scope.vm = result.data.data;
|
|
|
|
+ $scope.vm.number = '';
|
|
|
|
+ $scope.vm.payType = 2;
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ $scope.payExplain = function(){
|
|
|
|
+ $state.go("app.payExplain")
|
|
|
|
+ };
|
|
|
|
+ $scope.withdraw = function(){
|
|
|
|
+ $state.go("app.withdraw")
|
|
|
|
+ };
|
|
|
|
|
|
//充值
|
|
//充值
|
|
- $scope.charge = function(money){
|
|
|
|
- if (!money) {
|
|
|
|
|
|
+ $scope.charge = function(number){
|
|
|
|
+ if (!number) {
|
|
msg.text('请输入充值金额');
|
|
msg.text('请输入充值金额');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- myService.charge(money,2).then(function (result) {
|
|
|
|
|
|
+ myService.charge(number,2).then(function (result) {
|
|
//todo:result需要返回支付宝或者微信的签名信息
|
|
//todo:result需要返回支付宝或者微信的签名信息
|
|
console.log("result: " + JSON.stringify(result));
|
|
console.log("result: " + JSON.stringify(result));
|
|
var payInfo = result.data;
|
|
var payInfo = result.data;
|