|
@@ -358,6 +358,7 @@ var vNode = {
|
|
|
type: 'POST',
|
|
|
url: urls,
|
|
|
data: storageSet ? Object.assign(data, storageSet) : data,
|
|
|
+ timeout: 10000,
|
|
|
success: function (res) {
|
|
|
if (res.error_code == 0) {
|
|
|
_this.loading.clear()
|
|
@@ -393,7 +394,13 @@ var vNode = {
|
|
|
},
|
|
|
error: function (error) {
|
|
|
// _this.$toast('请求失败')
|
|
|
+ // 处理ios请求超时后 再次请求
|
|
|
_this.loading.clear()
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.getEntPortrait(function () {
|
|
|
+ _this.initChartsData()
|
|
|
+ })
|
|
|
+ }, 3000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -403,6 +410,7 @@ var vNode = {
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: "/bigmember/portrait/subVipPortrait/usage",
|
|
|
+ timeout: 5000,
|
|
|
data: {
|
|
|
entId: _this.entInfo.id
|
|
|
},
|
|
@@ -416,6 +424,9 @@ var vNode = {
|
|
|
_this.entvisit = res.data
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ error: function (error) {
|
|
|
+ console.log(error)
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -458,6 +469,7 @@ var vNode = {
|
|
|
type: 'POST',
|
|
|
url: urls,
|
|
|
data: storageSet ? Object.assign(data, storageSet) : data,
|
|
|
+ timeout: 8000,
|
|
|
success: function (res) {
|
|
|
if (res.error_code == 0) {
|
|
|
_this.loading.clear()
|
|
@@ -478,6 +490,9 @@ var vNode = {
|
|
|
error: function (error) {
|
|
|
// _this.$toast('请求失败')
|
|
|
_this.loading.clear()
|
|
|
+ setTimeout(function() {
|
|
|
+ _this.getProjectNews()
|
|
|
+ }, 3000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -496,9 +511,9 @@ var vNode = {
|
|
|
data: {
|
|
|
entId: _this.entInfo.id
|
|
|
},
|
|
|
+ timeout: 6000,
|
|
|
success: function (res) {
|
|
|
if (res.error_code == 0) {
|
|
|
- _this.loading.clear()
|
|
|
if (res.data && Object.keys(res.data).length !== 0) {
|
|
|
_this.entInfo.name = res.data.entName
|
|
|
for (var key in res.data) {
|
|
@@ -512,7 +527,9 @@ var vNode = {
|
|
|
},
|
|
|
error: function (error) {
|
|
|
console.log(error)
|
|
|
- _this.loading.clear()
|
|
|
+ setTimeout(function() {
|
|
|
+ _this.getEntBaseInfo()
|
|
|
+ }, 3000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -526,6 +543,7 @@ var vNode = {
|
|
|
data: {
|
|
|
entId: _this.entInfo.id
|
|
|
},
|
|
|
+ timeout: 5000,
|
|
|
success: function (res) {
|
|
|
if (res.error_code == 0) {
|
|
|
_this.entInfo.followSearchFinish = true
|
|
@@ -568,6 +586,7 @@ var vNode = {
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/bigmember/use/isAdd',
|
|
|
+ timeout: 5000,
|
|
|
success: function (res) {
|
|
|
if (res.error_code == 0) {
|
|
|
_this.conf.powerLoaded = true
|
|
@@ -647,6 +666,7 @@ var vNode = {
|
|
|
data: {
|
|
|
entId: _this.entInfo.id
|
|
|
},
|
|
|
+ timeout: 5000,
|
|
|
success: function (res) {
|
|
|
if (res.error_code == 0) {
|
|
|
// 清除上个页面缓存
|