9
8
7
@@ -29,9 +29,6 @@ export default defineComponent({
let setInterVal1: any = null;
let setInterVal2: any = null;
- watch(() => props.number, (n) => {
- go(n);
- });
const go = throttle(async (n) => {
const tfNumber = n * 40;
@@ -54,6 +51,13 @@ export default defineComponent({
leading: true,
trailing: false
})
+
+ if (props.number) {
+ go(props.number);
+ }
+
+ watch(() => props.number, go);
+
onUnmounted(() => {
go.cancel();
clearInterval(setInterVal1);
@@ -83,9 +87,8 @@ export default defineComponent({
}
.ticker-column {
- -webkit-animation: pulseGreen 0.5s cubic-bezier(0.4, 0, 0.6, 1) 1;
- animation: pulseGreen 0.5s cubic-bezier(0.4, 0, 0.6, 1) 1;
-
+ // -webkit-animation: pulseGreen 0.5s cubic-bezier(0.4, 0, 0.6, 1) 1;
+ // animation: pulseGreen 0.5s cubic-bezier(0.4, 0, 0.6, 1) 1;
}
.number-placeholder {
@@ -93,29 +96,29 @@ export default defineComponent({
}
-@-webkit-keyframes pulseGreen {
+// @-webkit-keyframes pulseGreen {
- 0%,
- to {
- color: #fff;
- }
+// 0%,
+// to {
+// color: #fff;
+// }
- 50% {
- --tw-text-opacity: 1;
- color: rgba(163, 163, 163);
- }
-}
+// 50% {
+// --tw-text-opacity: 1;
+// color: rgba(163, 163, 163);
+// }
+// }
-@keyframes pulseGreen {
+// @keyframes pulseGreen {
- 0%,
- to {
- color: #fff;
- }
+// 0%,
+// to {
+// color: #fff;
+// }
- 50% {
- --tw-text-opacity: 1;
- color: rgba(163, 163, 163);
- }
-}
+// 50% {
+// --tw-text-opacity: 1;
+// color: rgba(163, 163, 163);
+// }
+// }
\ No newline at end of file
diff --git a/ui/src/components/common/numberJump/index.vue b/ui/src/components/common/numberJump/index.vue
index afa7f18..3cf8053 100644
--- a/ui/src/components/common/numberJump/index.vue
+++ b/ui/src/components/common/numberJump/index.vue
@@ -1,14 +1,12 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -21,31 +19,33 @@ export default defineComponent({
components: { numberJump },
setup(props) {
let numberValue: any = ref([0]);
- watch(() => props.number, (n) => {
+ const initNumberValue = (n: any) => {
const _n = n.toString();
const arr = [];
for (let index = 0; index < _n.length; index++) {
arr.push(_n[index])
}
numberValue.value = arr;
- })
+ }
+ if (props.number) {
+ initNumberValue(props.number);
+ }
+
+ watch(() => props.number, initNumberValue)
return {
numberValue,
+ initNumberValue
}
}
})
\ No newline at end of file
diff --git a/ui/src/views/Admin/home/Index.vue b/ui/src/views/Admin/home/Index.vue
index 6b14293..a5dd689 100644
--- a/ui/src/views/Admin/home/Index.vue
+++ b/ui/src/views/Admin/home/Index.vue
@@ -1,33 +1,259 @@
- 测试
-
+
+
+ 👏 你好
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 🥇 统计
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 受欢迎的商品
+
+
+ $10,302,402
+
+
+
+
+
+
+ 活跃用户
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/src/views/Admin/user/Index.vue b/ui/src/views/Admin/user/Index.vue
index 1ac8a62..245efe0 100644
--- a/ui/src/views/Admin/user/Index.vue
+++ b/ui/src/views/Admin/user/Index.vue
@@ -1,16 +1,12 @@
-
+ @edit="openModal({ id: $event.id, isEdit: true }, 'formModal')" url="admin/api/user/index" :handle="_handleBtn">
-