From 0c721c03d861c8508e7d9bf5be7c590277dbe6ca Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:03:12 +0800 Subject: [PATCH 01/16] =?UTF-8?q?feat(LiveRoom):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E4=BB=B7=E5=92=8C=E4=B8=8B=E5=8F=A3=E4=BB=B7?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 LiveRoom 组件中添加当前价和下口价的滚动文本效果 - 使用 van-rolling-text 组件实现数字滚动动画 - 通过 CSS 调整滚动文本的样式,使其宽度适应内容 --- app/pages/LiveRoom/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/pages/LiveRoom/index.vue b/app/pages/LiveRoom/index.vue index e990d69..9bce594 100644 --- a/app/pages/LiveRoom/index.vue +++ b/app/pages/LiveRoom/index.vue @@ -15,6 +15,11 @@
开启出价
+
+
当前价:RMB
+
下口价:RMB
+
+
@@ -23,6 +28,9 @@ \ No newline at end of file diff --git a/app/pages/LiveRoom/index.vue b/app/pages/LiveRoom/index.vue deleted file mode 100644 index 9bce594..0000000 --- a/app/pages/LiveRoom/index.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/static/images/lockdfd@2x.png b/app/static/images/lockdfd@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..ec6785de6588e3062fec12f90b6afab6301522d2 GIT binary patch literal 995 zcmV<9104K`P)Px&ok>JNR9Hvtm`!LLWf;f*&+NFd6eOwGC@2K#M^JlK5Udfkc&havc#$e4P$ZWU zEN$P}eUq7l-4F<-9=wQ_()M5rB~V1r7>kI4w?YsE(SwMf*i<*0?Bt!lc~c_W$;{?$ z90Ecf$SKdqZ=SDtb_9+xI5>D$Z*Olu;2k0Hv#8*7|W{k_&+B2Vf&R zh!_Af#$)F>EQtAgw*k z_bQn@pA*~$SSIO-c;$^HSqqtv@~-b=IIkyi0fImu1@Jz=Qae3KBZBWpd?LahNa+%h zev*epyoWPDnm{rThT*qaS;z#?TKmTEI5s^b_2ofJh(a3Ag06`Eu19;ccO-J&a?|Xw<>!l25GCZvB+qEm10pzLF|Nm~a zmL9Cv>kDbS%nSrU^&J59l=5O6%l=wT|Jb3cMJe^NNa<=?hm;qiNPp%E@Bsij^KI$J zS7E516|wW4FSi!f19lhObGueD6o%n@jsW@!z(c9}pNpc=HyoA#l&W4A!IQV^N;M4i zs3Smi7QjGC`J*r#dD8_T2=pAl1E~klQ8YT@1fW#)3lTiGRe&sek~;v|8Bj{?+fWzr z&S%W>Wzw8*=>f^MpC-+8yS?xGO$h@1(?+N4wXfY&6E#FUJ6;ZwX}=)i-AIl0HxdNZ zj&to0ZObYo=5_$`GSIT`@-62!+t3GK|Jv7kb_qzH1(4C4{{=}7q?cQ650K`d@B8+3 zT$mWc(*TrX2FySdMRSEkw~UkRuZ4I$iu9#z0;ql}f|uHZ zB}o#DjfK&+08}b^n&jJUXZuQ$@aWjss9j*0Qg8{>K9SNz0PDBJwN`8CNY>rIPE#m= zb*i<#KaTOJ=NS{n@qDdT`*Yi-U@IH4@C@83#QzJx7`{+0dtct^Q+CofhQaEMQE^vp9)9f!o%{{Rw+Yi=6'} @@ -1897,6 +1906,11 @@ packages: resolution: {integrity: sha512-NKgHbWkSZXJUcaBHSsyzC8eegD6bBd4O0oCI6XMIJ+y4Bq3v4w7sY3wfWoKPuVlq9pQHRB6od0lmKpIqi8TlKA==} hasBin: true + cross-env@7.0.3: + resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} + engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} + hasBin: true + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -1904,6 +1918,9 @@ packages: crossws@0.3.1: resolution: {integrity: sha512-HsZgeVYaG+b5zA+9PbIPGq4+J/CJynJuearykPsXx4V/eMhyQ5EDVg3Ak2FBZtVXCiOLu/U7IiwDHTr9MA+IKw==} + crypto-js@4.2.0: + resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} + css-declaration-sorter@7.2.0: resolution: {integrity: sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==} engines: {node: ^14 || ^16 || >=18} @@ -5979,6 +5996,10 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 + aliyun-aliplayer@2.28.5: + dependencies: + crypto-js: 4.2.0 + ansi-colors@4.1.3: {} ansi-escapes@4.3.2: @@ -6279,6 +6300,10 @@ snapshots: cronstrue@2.52.0: {} + cross-env@7.0.3: + dependencies: + cross-spawn: 7.0.6 + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -6289,6 +6314,8 @@ snapshots: dependencies: uncrypto: 0.1.3 + crypto-js@4.2.0: {} + css-declaration-sorter@7.2.0(postcss@8.4.49): dependencies: postcss: 8.4.49 From 512a1a58cebfb89d493dbc877629a12e747ca339 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:30:01 +0800 Subject: [PATCH 04/16] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC=E5=92=8C=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 cross-env 依赖 - 更新脚本命令,使用 nuxt 命令替代 cross-env - 添加 generate、postinstall、typecheck 和 release脚本 --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c397cf7..8084c61 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,13 @@ "version": "0.3.0", "packageManager": "pnpm@9.15.1", "scripts": { - "dev": "cross-env NODE_ENV=test nuxt dev", - "build": "cross-env NODE_ENV=prod nuxt build", - "build:test": "cross-env NODE_ENV=test nuxt build", - "build:prod": "cross-env NODE_ENV=prod nuxt build", - "preview": "cross-env NODE_ENV=prod nuxt preview", - "preview:test": "cross-env NODE_ENV=test nuxt preview" + "build": "nuxt build", + "dev": "nuxt dev", + "generate": "nuxt generate", + "preview": "nuxt preview", + "postinstall": "nuxt prepare", + "typecheck": "vue-tsc --noEmit", + "release": "bumpp --commit --push --tag" }, "dependencies": { "@nuxtjs/color-mode": "^3.5.2", @@ -30,7 +31,6 @@ "@unocss/preset-rem-to-px": "0.65.2", "@vant/nuxt": "^1.0.6", "bumpp": "^9.9.2", - "cross-env": "^7.0.3", "pinia": "^2.3.0", "postcss-mobile-forever": "^4.3.1", "sass": "^1.83.1", From f5746e695b70ec47b39975605a74be06ea7e52a8 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:30:56 +0800 Subject: [PATCH 05/16] =?UTF-8?q?refactor(app):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84=E5=92=8C=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 LiveRoom 组件中的冗余控制台日志输出 -调整了 LiveRoom 组件的样式,使其占据剩余空间 - 隐藏了 Prism Player 的控制条 - 简化了 nuxt.config.js 中的导入语句 - 在 package.json 中添加了新的开发和构建脚本 --- app/pages/LiveRoom/index.client.vue | 14 ++++++-------- nuxt.config.js | 2 -- package.json | 5 ++++- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/pages/LiveRoom/index.client.vue b/app/pages/LiveRoom/index.client.vue index 5cf8816..f2a7673 100644 --- a/app/pages/LiveRoom/index.client.vue +++ b/app/pages/LiveRoom/index.client.vue @@ -7,15 +7,10 @@ import lockdfd from '@/static/images/lockdfd@2x.png'; const player = ref(null); const quoteStatus = ref(false); const config = useRuntimeConfig() - -// 使用环境变量 -console.log('API Base:', config.public.apiBase) -console.log('WebSocket URL:', config.public.wsUrl) -console.log('Player Source:', config.public.PLAYER_SOURCE) +console.log('config',config) const changeStatus = () => { - console.log('quoteStatus before:', quoteStatus.value); + quoteStatus.value = !quoteStatus.value; - console.log('quoteStatus after:', quoteStatus.value); }; onMounted(() => { @@ -43,7 +38,7 @@ onBeforeUnmount(() => {