ソースを参照

json获取修改

dongbw 8 年 前
コミット
6ee915aa2d
1 ファイル変更3 行追加3 行削除
  1. 3 3
      donate-console/src/main/webapp/resources/js/index/app.js

+ 3 - 3
donate-console/src/main/webapp/resources/js/index/app.js

@@ -460,7 +460,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
             });
 
             // 获取地址信息
-            $http.get('resources/jsondata/city.json', {
+            $http.get('static/jsondata/city.json', {
                 "Accept": "application/json;charset=utf-8", "Accept-Charset": "charset=utf-8"
             }).then(function (response) {
                 $scope.provinces = response.data;
@@ -600,7 +600,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                     $scope.org.branchMessage = "";
                 } else {
                     bankCard = bankCard.toString();
-                    $.getJSON("resources/jsondata/bank.json", {}, function (data) {
+                    $.getJSON("static/jsondata/bank.json", {}, function (data) {
                         var bankBin = 0;
                         var isFind = false;
                         for (var key = 10; key >= 2; key--) {
@@ -826,7 +826,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
         };
 
         // 获取地址信息
-        $http.get('resources/jsondata/city.json', {
+        $http.get('static/jsondata/city.json', {
             "Accept": "application/json;charset=utf-8", "Accept-Charset": "charset=utf-8"
         }).then(function (response) {
             $scope.provinces = response.data;