From 67abe1f35c2f49578b0e42821a5ba590804e89a4 Mon Sep 17 00:00:00 2001 From: Merlin Date: Thu, 25 Aug 2016 23:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=B4=AD=E4=B9=B0=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这里是不是写错了,get请求,路径好像也有点问题 --- src/main/webapp/resource/script/handler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/resource/script/handler.js b/src/main/webapp/resource/script/handler.js index 2a3a05a..330a9e6 100644 --- a/src/main/webapp/resource/script/handler.js +++ b/src/main/webapp/resource/script/handler.js @@ -4,7 +4,7 @@ var handler = { //封装相关ajax的url URL: { goodsBuy: function (goodsId) { - return '/beauty_ssm/goods/' + goodsId + '/buy'; + return '/goods/' + goodsId + '/buy'; } }, //验证手机号 @@ -48,7 +48,7 @@ var handler = { goodsBuy: function (goodsId) { //执行购买请求 - $.post(handler.URL.goodsBuy(goodsId), {}, function (result) { + $.get(handler.URL.goodsBuy(goodsId), {}, function (result) { if (result && result['success']) { alert("购买成功!"); window.location.reload(); @@ -61,4 +61,4 @@ var handler = { }, -} \ No newline at end of file +}