修改请求时长配置
This commit is contained in:
@@ -18,6 +18,7 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// baseUrl = "http://59.110.212.44:9100/pb/";
|
// baseUrl = "http://59.110.212.44:9100/pb/";
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/";
|
// baseUrl = "https://testapi.nuttyreading.com/";
|
||||||
baseUrl = "https://api.nuttyreading.com/"; //1
|
baseUrl = "https://api.nuttyreading.com/"; //1
|
||||||
|
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
||||||
// baseUrl = "ws://twin-ui.com:6001/";
|
// baseUrl = "ws://twin-ui.com:6001/";
|
||||||
// socketUrl = "ws://twin-ui.com:6001/";
|
// socketUrl = "ws://twin-ui.com:6001/";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ let $http = new request({
|
|||||||
// 'Content-Type': 'application/json;charset=UTF-8',
|
// 'Content-Type': 'application/json;charset=UTF-8',
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
// 'project_token': base.projectToken, //项目token(可删除)
|
// 'project_token': base.projectToken, //项目token(可删除)
|
||||||
}
|
},
|
||||||
|
timeout:'60000'
|
||||||
});
|
});
|
||||||
// 添加获取七牛云token的方法
|
// 添加获取七牛云token的方法
|
||||||
$http.getQnToken = function(callback) {
|
$http.getQnToken = function(callback) {
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export const setWXPay = function(payInfo, callback) {
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res,'resshoppingPay')
|
console.log('resshoppingPay',res)
|
||||||
if(res.code === 0){
|
if(res.code === 0){
|
||||||
let payData = {
|
let payData = {
|
||||||
provider : 'wxpay',
|
provider : 'wxpay',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"appid" : "__UNI__9788EB5",
|
"appid" : "__UNI__9788EB5",
|
||||||
"description" : "疯子读书",
|
"description" : "疯子读书",
|
||||||
"networkTimeout" : {
|
"networkTimeout" : {
|
||||||
"request" : 3000
|
"request" : 30000
|
||||||
},
|
},
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"icons" : [
|
"icons" : [
|
||||||
@@ -12,8 +12,8 @@
|
|||||||
"src" : "图片路径"
|
"src" : "图片路径"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versionName" : "1.2.51",
|
"versionName" : "1.2.52",
|
||||||
"versionCode" : 1251,
|
"versionCode" : 1252,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true
|
"ignoreVersion" : true
|
||||||
|
|||||||
@@ -264,9 +264,9 @@ import { data } from 'jquery';
|
|||||||
},
|
},
|
||||||
getBookList(flag, refreshflag){
|
getBookList(flag, refreshflag){
|
||||||
// 根据tab不同,获取最新书评、最热书评、书集列表
|
// 根据tab不同,获取最新书评、最热书评、书集列表
|
||||||
// uni.showLoading({
|
uni.showLoading({
|
||||||
// title: '加载中'
|
title: '加载中'
|
||||||
// });
|
});
|
||||||
|
|
||||||
// 顶部红点数量
|
// 顶部红点数量
|
||||||
$http.request({
|
$http.request({
|
||||||
@@ -298,6 +298,7 @@ import { data } from 'jquery';
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
uni.hideLoading()
|
||||||
console.log(res, '内容获取成功')
|
console.log(res, '内容获取成功')
|
||||||
if (res.code == 0 && res.page && res.page.records.length > 0) {
|
if (res.code == 0 && res.page && res.page.records.length > 0) {
|
||||||
this.newList = this.newList.concat(res.page.records)
|
this.newList = this.newList.concat(res.page.records)
|
||||||
@@ -310,6 +311,7 @@ import { data } from 'jquery';
|
|||||||
this.status = 0
|
this.status = 0
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
uni.hideLoading()
|
||||||
console.log(e)
|
console.log(e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user