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 @@