From 2196e3338f3a225058c1741fa638dc9d5d3f1b46 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Thu, 14 Feb 2019 10:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=AF=B7=E6=B1=82=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/wap/first/crmeb/module/store.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/wap/first/crmeb/module/store.js b/public/wap/first/crmeb/module/store.js index f3310271..338a3ca7 100644 --- a/public/wap/first/crmeb/module/store.js +++ b/public/wap/first/crmeb/module/store.js @@ -2,7 +2,7 @@ typeof define == 'function' && define('store',['axios','helper'],factory); })(this,function(axios,$h){ axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; - axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; + axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'; return { baseGet:function(url,successCallback,errorCallback){ axios.get(url).then(function(res){ @@ -418,6 +418,13 @@ p:{limit:limit} }),successCallback,errorCallback); }, + getPublicProductList:function(p,successCallback,errorCallback){ + this.baseGet($h.U({ + c:'public_api', + a:'get_product_list', + p:p + }),successCallback,errorCallback); + }, getBestProductList:function(p,successCallback,errorCallback){ this.baseGet($h.U({ c:'public_api',