Commit 291a764a by cpa

添加商品 认证视频

parent a95c9498
......@@ -85,7 +85,7 @@
<span class="sug">上传视频,建议视频长度1分钟,仅支持MP4格式</span>
</div>
</el-form-item>
<el-form-item label="商品认证视频" prop="authUrl" >
<el-form-item label="商品认证视频" prop="authUrl" v-if="this.needVideoProof===0">
<div class="upload">
<uploader :lazyList="form.authUrl" :video="true" :image="false" @change="(list) => { form.authUrl = list.join(',') }" />
<span class="sug">上传视频,建议视频长度1分钟,仅支持MP4格式</span>
......@@ -218,6 +218,7 @@
},
data() {
return {
needVideoProof:2,
//如果是编辑则需要id
id: undefined,
//如果是编辑则需要加载数据
......@@ -379,10 +380,24 @@
}
}
},
created() {
let userInfo= JSON.parse(sessionStorage.getItem("linshenxs-userInfo"))
let account=userInfo.content.username
getMerchantByAccount(
{account: account}
).then(response => {
this.form.merchantId=response.data.data.id
this.needVideoProof=response.data.data.needVideoProof
})
},
computed: {
//点前页面标题
editTitle() {
console.log('++++++++++++++++'+this.id)
return this.id ? "编辑商品基础信息" : "添加商品基础信息"
},
//能否选择规格
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment