diff --git a/src/assets/eduImg/xxBJ.png b/src/assets/eduImg/xxBJ.png
new file mode 100644
index 0000000..f5a04a2
Binary files /dev/null and b/src/assets/eduImg/xxBJ.png differ
diff --git a/src/view/echart_analyze/FlipClock.vue b/src/view/echart_analyze/FlipClock.vue
index 74736a1..9aa7e16 100644
--- a/src/view/echart_analyze/FlipClock.vue
+++ b/src/view/echart_analyze/FlipClock.vue
@@ -30,7 +30,7 @@ const props = defineProps({
});
const data = reactive({
list: [],
- digits: [0, 0, 0, 0, 0],
+ digits: [0, 0, 0, 0, 0], //数字位数
});
class Flipper {
@@ -107,41 +107,52 @@ function updateCounter(flippers, number) {
}
}
-// const digits = ref([0, 0, 0, 0, 0]); //数字位数
-watch(
- () => props.list,
- (newVal) => {
- setTimeout(() => {
- data.list = props.list;
- data.digits = data.list.toString().split("").map(Number);
- const flips = document.querySelectorAll(".flip");
- const flipObjs = [];
+// watch(
+// () => props.list,
+// (newVal) => {
+// setTimeout(() => {
+// data.list = props.list;
+// data.digits = data.list.toString().split("").map(Number);
+// const flips = document.querySelectorAll(".flip");
+// const flipObjs = [];
- for (let i = 0; i < flips.length; i++) {
- flipObjs.push(
- new Flipper({
- node: flips[i],
- frontText: "number0",
- backText: "number0",
- })
- );
- flipObjs[i].currentDigit = 0;
- }
+// for (let i = 0; i < flips.length; i++) {
+// flipObjs.push(
+// new Flipper({
+// node: flips[i],
+// frontText: "number0",
+// backText: "number0",
+// })
+// );
+// flipObjs[i].currentDigit = 0;
+// }
+// // 生成两个递增的随机数
+// const generateIncrementingRandomNumbers = (min, max) => {
+// const num1 = Math.floor(Math.random() * (max - min + 1)) + min;
+// const num2 = Math.floor(Math.random() * (max - num1 + 1)) + num1 + 1;
+// return [num1, num2];
+// };
- const randomNumbers = [2345, 6542, data.list]; //显示的数字
- let index = 0;
+// // 生成的随机数范围
+// const [num1, num2] = generateIncrementingRandomNumbers(
+// 1000,
+// data.list - 1
+// );
- const interval = setInterval(() => {
- if (index >= randomNumbers.length) {
- clearInterval(interval);
- } else {
- updateCounter(flipObjs, randomNumbers[index]);
- index++;
- }
- }, 333); //变换的时间
- }, 600);
- }
-);
+// const randomNumbers = [num1, num2, data.list]; //显示的数字
+// let index = 0;
+
+// const interval = setInterval(() => {
+// if (index >= randomNumbers.length) {
+// clearInterval(interval);
+// } else {
+// updateCounter(flipObjs, randomNumbers[index]);
+// index++;
+// }
+// }, 333); //变换的时间
+// }, 600);
+// }
+// );
onBeforeMount(() => {
setTimeout(() => {
data.list = props.list;
diff --git a/src/view/echarts_education/edXS2.vue b/src/view/echarts_education/edXS2.vue
index f48a155..32294c6 100644
--- a/src/view/echarts_education/edXS2.vue
+++ b/src/view/echarts_education/edXS2.vue
@@ -1,5 +1,5 @@
-
+