Commit a7c69406 by zhangquan

车主商品添加带货视频

1 parent 00736a2f
...@@ -120,6 +120,8 @@ export default { ...@@ -120,6 +120,8 @@ export default {
method: '2', method: '2',
goodsType: '2', goodsType: '2',
expressFee: '', expressFee: '',
commerceVideo: '',
commerceDescribe: '',
smartcarlifeInfoId: '', smartcarlifeInfoId: '',
goodsName: '', goodsName: '',
goodsImage: '', goodsImage: '',
...@@ -223,6 +225,26 @@ export default { ...@@ -223,6 +225,26 @@ export default {
isDisabled: false isDisabled: false
}, },
{ {
label: '带货视频',
name: 'commerceVideo',
type: 'select',
optionList:[],
optionId: 'id',
optionLabel: 'fileName',
isDisabled: false,
isClear: true
},
{
label: '带货描述',
name: 'commerceDescribe',
type: 'input',
inputType: 'textarea',
isDisabled: false,
maxlength: 40,
isHide: false,
showLimit: true
},
{
label: '销售门店', label: '销售门店',
name: 'saleStoreSlot', name: 'saleStoreSlot',
addHtml: 'saleStoreSlot', addHtml: 'saleStoreSlot',
...@@ -252,6 +274,7 @@ export default { ...@@ -252,6 +274,7 @@ export default {
type: 'input', type: 'input',
inputType: 'textarea', inputType: 'textarea',
isDisabled: false, isDisabled: false,
showLimit: true,
maxlength: 200 maxlength: 200
}, },
], ],
...@@ -264,8 +287,18 @@ export default { ...@@ -264,8 +287,18 @@ export default {
} }
} }
}, },
watch: {
'formObj.commerceVideo':{
handler(nVal, oVal){
const _target = this.formData.find(item => item.name == 'commerceDescribe')
_target.isHide = !nVal
},
deep: true
}
},
created(){ created(){
this.getCategory() this.getCategory()
this.getVideoList()
const urlParam = this.$route.params const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id)) this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
const { id, type } = this.routeInfo const { id, type } = this.routeInfo
...@@ -299,6 +332,14 @@ export default { ...@@ -299,6 +332,14 @@ export default {
} }
}) })
}, },
getVideoList(){
this.$apis.case.getVideoListApi({pageSize: 10000, currentPage: 1}).then(res => {
if(res?.list?.length) {
const _target = this.formData.find(item => item.name == 'commerceVideo')
_target.optionList = res.list
}
})
},
validateField(field){ validateField(field){
if(Array.isArray(field)){ if(Array.isArray(field)){
field.forEach(item => { field.forEach(item => {
...@@ -394,6 +435,7 @@ export default { ...@@ -394,6 +435,7 @@ export default {
this.formObj[key] = res[key] this.formObj[key] = res[key]
} }
} }
this.formObj.commerceVideo = this.formObj.commerceVideo ? +this.formObj.commerceVideo : ''
this.curCategoryInfo = { this.curCategoryInfo = {
categoryName: res.associationClassifySecondName, categoryName: res.associationClassifySecondName,
id: res.associationClassifySecondId id: res.associationClassifySecondId
...@@ -455,9 +497,9 @@ export default { ...@@ -455,9 +497,9 @@ export default {
.expressFee-class{ .expressFee-class{
width: 432px; width: 432px;
} }
/deep/ #introduction{ /deep/ #introduction, /deep/ #commerceDescribe{
.el-textarea__inner{ .el-textarea__inner, .el-textarea{
width: 580px; width: 580px!important;
height: 80px; height: 80px;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!