12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- angular.module('push')
- .controller('psMoneyHomeCtrl', function ($scope, AccountService, UtilService, UserService) {
- if($scope.app){
- $scope.setStatusBar(0);
- }
- $scope.defaultLan = UserService.defaultLan;
- // 我的普适积分
- $scope.totalcurrency = 0;
- if(UtilService.isDefined(UserService.user.pushIntegralModel.sysUsersPushvalue)){
- $scope.totalcurrency = UserService.user.pushIntegralModel.sysUsersPushvalue.pushintegral;
- }
- //常见问题展开/关闭
- $(".question_body").click(function () {
- var index = $(this).index() - 1;
- $(".question_body span:nth-child(1) em").eq(index).toggleClass("questionToggle");
- $(".question_body p").eq(index).toggle();
- });
- //普适币规则
- $scope.goPsMoneyEarnRule = function () {
- $scope.go("psMoneyEarnRule");
- };
- //充值
- $scope.goReChange = function () {
- $scope.go("reChange");
- };
- //收支明细
- $scope.goRevenExpandDetails = function () {
- $scope.go("RevenExpandDetails");
- };
- //普适币兑换服务
- $scope.goExchange = function () {
- $scope.go("psMoneyConsume", {totalcurrency: $scope.currency.totalcurrency});
- };
- /*var getPushCurrencyInfo = function () {
- $scope.showLoadingToast();
- AccountService.getMemberInfo().then(function (response) {
- $scope.currency = response;
- $scope.viplevel = UserService.viplevel = $scope.currency.memberid;
- console.log($scope.currency);
- $scope.hideLoadingToast();
- }, function () {
- $scope.hideLoadingToast();
- UtilService.showMess("网络不给力,请重试");
- });
- };
- getPushCurrencyInfo();*/
- });
|