feat: 去掉超时报错
This commit is contained in:
@@ -0,0 +1,67 @@
|
|||||||
|
<template>
|
||||||
|
<div class="custom-header">
|
||||||
|
<img class="new-header" src="/static/imgs/new-header.png" />
|
||||||
|
|
||||||
|
<view class="card">
|
||||||
|
<view class="card-main">
|
||||||
|
<img class="card-title" src="/static/imgs/card-title.png" />
|
||||||
|
|
||||||
|
<view class="card-tags">
|
||||||
|
<view class="card-tag">修饰五五分身、腿材</view>
|
||||||
|
<view class="card-tag">修饰五五分身、腿材</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.custom-header {
|
||||||
|
.new-header {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: rgba(239, 229, 219, 1);
|
||||||
|
padding: 50rpx;
|
||||||
|
|
||||||
|
.card-main {
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
height: 800rpx;
|
||||||
|
background: #fff;
|
||||||
|
display: block;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
.card-title {
|
||||||
|
width: 450rpx;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 9rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-tags {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.card-tag {
|
||||||
|
height: 64rpx;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
padding-right: 26rpx;
|
||||||
|
background: rgba(239, 229, 219, 1);
|
||||||
|
color: rgba(78, 78, 78, 1);
|
||||||
|
font-size: 16rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
+10
-3
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view style="overflow-x: hidden; font-size: 0">
|
<view style="overflow-x: hidden; font-size: 0">
|
||||||
|
|
||||||
|
<!-- <Custom-Header></Custom-Header> -->
|
||||||
|
|
||||||
|
|
||||||
<img
|
<img
|
||||||
v-if="isInPptr"
|
v-if="isInPptr"
|
||||||
src="/static/header.png"
|
src="/static/header.png"
|
||||||
@@ -394,6 +398,7 @@
|
|||||||
import TypeOfMass from './component/FirstStyleType/TypeOfMass.vue';
|
import TypeOfMass from './component/FirstStyleType/TypeOfMass.vue';
|
||||||
import Movementtype from './component/FirstStyleType/Movementtype.vue';
|
import Movementtype from './component/FirstStyleType/Movementtype.vue';
|
||||||
import ReportApi from '../../sheep/api/report';
|
import ReportApi from '../../sheep/api/report';
|
||||||
|
import CustomHeader from './component/CustomHeader/CustomHeader.vue';
|
||||||
|
|
||||||
import * as abc from './api';
|
import * as abc from './api';
|
||||||
console.log('exchangeHairHistoryByTaskId: xxxxxxxxxx', abc.exchangeHairHistoryByTaskId);
|
console.log('exchangeHairHistoryByTaskId: xxxxxxxxxx', abc.exchangeHairHistoryByTaskId);
|
||||||
@@ -797,9 +802,11 @@
|
|||||||
|
|
||||||
if ([...new Set(images)].length === 3) {
|
if ([...new Set(images)].length === 3) {
|
||||||
resolve(ress);
|
resolve(ress);
|
||||||
} else if (tries >= maxTries) {
|
}
|
||||||
reject(new Error('轮询超时'));
|
// else if (tries >= maxTries) {
|
||||||
} else {
|
// reject(new Error('轮询超时'));
|
||||||
|
// }
|
||||||
|
else {
|
||||||
tries++;
|
tries++;
|
||||||
setTimeout(() => poll(resolve, reject), interval);
|
setTimeout(() => poll(resolve, reject), interval);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Reference in New Issue
Block a user