Commit c2386e29 authored by malin's avatar malin

v

parent f2875440
...@@ -83,10 +83,7 @@ ...@@ -83,10 +83,7 @@
</template> </template>
</div> </div>
<div <div v-else class="name-list row-center-center">
v-if="words == 2 || nameList.length > 0"
class="name-list row-center-center"
>
<template v-for="item in nameList"> <template v-for="item in nameList">
<div :key="item.id" class="row-around-center"> <div :key="item.id" class="row-around-center">
<div class="only-text"> <div class="only-text">
...@@ -99,6 +96,14 @@ ...@@ -99,6 +96,14 @@
</template> </template>
</div> </div>
<div
v-if="nameList.length == 0"
class="fs-32 row-center-center fc-3"
style="margin-bottom: 0.3rem"
>
<div>支付完成后稍有延迟2~5s</div>
</div>
<div class="col-center-center" style="margin-bottom: 0.3rem"> <div class="col-center-center" style="margin-bottom: 0.3rem">
<div <div
class="row-around-center" class="row-around-center"
...@@ -160,6 +165,7 @@ export default { ...@@ -160,6 +165,7 @@ export default {
nameList: [], nameList: [],
words: 3, words: 3,
page: 1, page: 1,
counter: 1,
}; };
}, },
...@@ -182,7 +188,20 @@ export default { ...@@ -182,7 +188,20 @@ export default {
page: this.page, page: this.page,
}; };
API.API_fetchName(params).then((res) => { API.API_fetchName(params).then((res) => {
if (res.result.data == null) {
return;
}
this.nameList = res.result.data; this.nameList = res.result.data;
if (this.nameList.length == 0) {
setTimeout(() => {
this.counter += 1;
if (this.counter >= 30) {
return;
} else {
return this._fetchName();
}
}, 2000);
}
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment