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