视频预览

zhc4dev
Gitea 2 years ago
parent 8b1d7c96cb
commit d76fb04ef3
  1. 4
      ant-design-vue-jeecg/src/views/zygoods/modules/ZyGoodsForm.vue

@ -56,6 +56,7 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="商品视频" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="goodsVideo"> <a-form-model-item label="商品视频" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="goodsVideo">
<j-upload v-model="model.goodsVideo" ></j-upload> <j-upload v-model="model.goodsVideo" ></j-upload>
<video v-if="model.goodsVideo" :src="video" style="border:1px solid #d9d9d9;width:100%;" autoplay="autoplay"/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
@ -191,6 +192,9 @@
formDisabled(){ formDisabled(){
return this.disabled return this.disabled
}, },
video(){
return `${window._CONFIG['domianURL']}/sys/common/static/${this.model.goodsVideo}`
},
}, },
created () { created () {
//model //model

Loading…
Cancel
Save