确认订单中 增加商品数量修改 运费
This commit is contained in:
@@ -40,9 +40,9 @@ let $http = new request({
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// 'project_token': base.projectToken, //项目token(可删除)
|
||||
},
|
||||
timeout:'15000' // 15秒
|
||||
|
||||
});
|
||||
timeout: '15000' // 15秒
|
||||
|
||||
});
|
||||
// 添加获取七牛云token的方法
|
||||
$http.getQnToken = function(callback) {
|
||||
//该地址需要开发者自行配置(每个后台的接口风格都不一样)
|
||||
@@ -148,13 +148,13 @@ $http.requestEnd = function(options) {
|
||||
let loginPopupNum = 0;
|
||||
//所有接口数据处理(此方法需要开发者根据各自的接口返回类型修改,以下只是模板)
|
||||
$http.dataFactory = async function(res) {
|
||||
// console.log("接口请求数据", {
|
||||
// url: res.url,
|
||||
// resolve: res.response,
|
||||
// header: res.header,
|
||||
// data: res.data,
|
||||
// method: res.method,
|
||||
// });
|
||||
console.log("接口请求数据", {
|
||||
url: res.url,
|
||||
resolve: res.response,
|
||||
header: res.header,
|
||||
data: res.data,
|
||||
method: res.method,
|
||||
});
|
||||
if (res.response.statusCode && res.response.statusCode == 200) {
|
||||
let httpData = res.response.data;
|
||||
if (typeof(httpData) == "string") {
|
||||
|
||||
Reference in New Issue
Block a user