Commit 477f48be by fuqiang

【商家端】添加商品-验证是否需要上传认证视频

parent 05fbba06
......@@ -97,7 +97,7 @@
</div>
<div class="zm_info_row" v-if="shopInfo.needVideoProof">
<el-form-item label="商品认证视频">
<el-form-item label="商品认证视频" prop="authUrl">
<div class="upload">
<uploader :lazyList="form.authUrl" :video="true" :image="false" @change="(list) => { form.authUrl = list.join(',') }" />
<a class="sug" v-if="shopInfo.uploadExample" @click="setUploadExampleDiaLogClick">查看示例视频></a>
......@@ -261,7 +261,7 @@
trigger: "blur",
validator: (rule, value, callback) => {
let authUrl = this.form.authUrl
if(authUrl == undefined || authUrl.length == 0) {
if(this.shopInfo.needVideoProof && (authUrl == undefined || authUrl.length == 0)) {
callback(new Error("请上传认证视频"))
} else {
callback()
......
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