Bläddra i källkod

采纳、拒绝报价请求加上跨域配置(测试)

dongbw 7 år sedan
förälder
incheckning
141bb67d8e

+ 6 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/seek_purchase_ctrl.js

@@ -497,6 +497,9 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
           // 采纳报价
           // 采纳报价
           $scope.adopt = function (of) {
           $scope.adopt = function (of) {
             $http({
             $http({
+                headers:{
+                    'content-Type':'application/x-www-form-urlencoded'
+                },
               method: 'POST',
               method: 'POST',
               dataType: 'json',
               dataType: 'json',
               url: seekUrl + '/inquiry/buyer/adopt',
               url: seekUrl + '/inquiry/buyer/adopt',
@@ -529,6 +532,9 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
               // 选择理由
               // 选择理由
               $scope.refuse = function (choice) {
               $scope.refuse = function (choice) {
                   $http({
                   $http({
+                      headers:{
+                          'content-Type':'application/x-www-form-urlencoded'
+                      },
                       method: 'POST',
                       method: 'POST',
                       dataType: 'json',
                       dataType: 'json',
                       url: seekUrl + '/inquiry/buyer/refuse',
                       url: seekUrl + '/inquiry/buyer/refuse',