mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-07 06:15:33 +00:00
公众号请求设置请求编码
This commit is contained in:
parent
01e4017f35
commit
2196e3338f
@ -2,7 +2,7 @@
|
|||||||
typeof define == 'function' && define('store',['axios','helper'],factory);
|
typeof define == 'function' && define('store',['axios','helper'],factory);
|
||||||
})(this,function(axios,$h){
|
})(this,function(axios,$h){
|
||||||
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
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 {
|
return {
|
||||||
baseGet:function(url,successCallback,errorCallback){
|
baseGet:function(url,successCallback,errorCallback){
|
||||||
axios.get(url).then(function(res){
|
axios.get(url).then(function(res){
|
||||||
@ -418,6 +418,13 @@
|
|||||||
p:{limit:limit}
|
p:{limit:limit}
|
||||||
}),successCallback,errorCallback);
|
}),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){
|
getBestProductList:function(p,successCallback,errorCallback){
|
||||||
this.baseGet($h.U({
|
this.baseGet($h.U({
|
||||||
c:'public_api',
|
c:'public_api',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user