From 8b813d1682f7e73f30d4f389b229d20b475f1723 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Wed, 24 Apr 2024 14:35:22 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E8=AE=A2=E5=8D=95):=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E5=9B=9E=E8=B0=83=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tm-upload/tm-upload.vue | 22 ++++++++++++++++------ pages/shop/GoodsEvaluate/index.vue | 2 -- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/components/tm-upload/tm-upload.vue b/components/tm-upload/tm-upload.vue index 296d708..93957cc 100644 --- a/components/tm-upload/tm-upload.vue +++ b/components/tm-upload/tm-upload.vue @@ -107,18 +107,28 @@ export default { default: true } }, + watch: { + dataList: { + handler(val) { + this.upload_before_list = val + this.upload_cache_list = [] + if (val.length > 0) { + val.map(item => { + debugger + item && this.upload_cache_list.push(item.path) + }) + } + this.emit() + }, + immediate: true + } + }, onReady(res) { this.$nextTick(() => { for (let i = 0; i < 10; i++) { this.videoContext[i] = uni.createVideoContext(`myVideo_${i}`); } }); - }, - created() { - - }, - mounted() { - }, methods: { videoPlay(e) { diff --git a/pages/shop/GoodsEvaluate/index.vue b/pages/shop/GoodsEvaluate/index.vue index 824c0e2..d8ccee0 100644 --- a/pages/shop/GoodsEvaluate/index.vue +++ b/pages/shop/GoodsEvaluate/index.vue @@ -47,7 +47,6 @@