Commit 2341c9d6 by 胡悦

修改

1 parent 1d7fe5da
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-11 17:41:38 * @Date: 2022-10-11 17:41:38
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-11-15 16:19:02 * @LastEditTime: 2022-11-15 16:38:17
--> -->
<template> <template>
<div v-show="!data.loading"> <div v-show="!data.loading">
...@@ -954,7 +954,7 @@ ...@@ -954,7 +954,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, onMounted, reactive } from "vue"; import { ref, onMounted, reactive, nextTick } from "vue";
import req from "../../utils/request"; import req from "../../utils/request";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import util from "../../utils/util"; import util from "../../utils/util";
...@@ -1003,7 +1003,6 @@ const rankingList = { ...@@ -1003,7 +1003,6 @@ const rankingList = {
}; };
const getInfo = async () => { const getInfo = async () => {
const res = await req("scrm.api.shopmall.activity.end.report.param", query); const res = await req("scrm.api.shopmall.activity.end.report.param", query);
data.loading = false;
data.activitedInfo = res; data.activitedInfo = res;
const seriesRank = data.activitedInfo.seriesRank; const seriesRank = data.activitedInfo.seriesRank;
progress.value = res.volumeRate.slice(0, -1); progress.value = res.volumeRate.slice(0, -1);
...@@ -1088,6 +1087,9 @@ const getInfo = async () => { ...@@ -1088,6 +1087,9 @@ const getInfo = async () => {
] as any; ] as any;
} }
} }
nextTick(() => {
data.loading = false;
});
}; };
const getImageUrl = (name: any, index: any) => { const getImageUrl = (name: any, index: any) => {
return new URL(`./images/${name}${index}.png`, import.meta.url).href; return new URL(`./images/${name}${index}.png`, import.meta.url).href;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-11 17:41:38 * @Date: 2022-10-11 17:41:38
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-11-15 16:18:56 * @LastEditTime: 2022-11-15 16:38:03
--> -->
<template> <template>
<div v-show="!data.loading"> <div v-show="!data.loading">
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, reactive, onMounted } from "vue"; import { ref, reactive, onMounted, nextTick } from "vue";
import req from "../../utils/request"; import req from "../../utils/request";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
const route = useRoute(); const route = useRoute();
...@@ -527,7 +527,6 @@ const getInfo = async () => { ...@@ -527,7 +527,6 @@ const getInfo = async () => {
"scrm.api.shopmall.activity.opening.report.param", "scrm.api.shopmall.activity.opening.report.param",
query query
); );
data.loading = false;
data.activityInfo = res; data.activityInfo = res;
console.log(data.activityInfo.userRank); console.log(data.activityInfo.userRank);
progress.value = res.volumeRate.slice(0, -1); progress.value = res.volumeRate.slice(0, -1);
...@@ -540,6 +539,9 @@ const getInfo = async () => { ...@@ -540,6 +539,9 @@ const getInfo = async () => {
} }
} }
console.log(data.activityInfo.departmentRank); console.log(data.activityInfo.departmentRank);
nextTick(() => {
data.loading = false;
});
}; };
const getImageUrl = (name: any, index: any) => { const getImageUrl = (name: any, index: any) => {
return new URL(`./images/${name}${index}.png`, import.meta.url).href; return new URL(`./images/${name}${index}.png`, import.meta.url).href;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!