Commit 2341c9d6 by 胡悦

修改

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