|
@@ -171,11 +171,12 @@
|
|
|
<span slot="reference">推广图</span>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'推广图')})">
|
|
|
+ <img-Content :imgValue="form.promotePhoto" @imgVal="form.promotePhoto =imgUrl+$event" @removeClick="form.promotePhoto = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'推广图')})">
|
|
|
<img v-if="form.promotePhoto!==''" :src="form.promotePhoto" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="form.promotePhoto!==''" style="color: #F56C6C; cursor: pointer" @click="form.promotePhoto=''">删除</span>
|
|
|
+ <span v-if="form.promotePhoto!==''" style="color: #F56C6C; cursor: pointer" @click="form.promotePhoto=''">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -184,11 +185,12 @@
|
|
|
<span slot="reference">LOGO图</span>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'logo')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.logoPic" @imgVal="productJson.logoPic =$event" @removeClick="productJson.logoPic = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'logo')})">
|
|
|
<img v-if="productJson.logoPic !==''" :src="imgUrl+productJson.logoPic" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.logoPic!==''" @click="productJson.logoPic=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.logoPic!==''" @click="productJson.logoPic=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -234,6 +236,10 @@
|
|
|
</el-popover>
|
|
|
<el-color-picker v-model="productJson.btnBotcol" size="small" show-alpha />
|
|
|
</el-col>
|
|
|
+ <el-col style="display: flex;" :span="7">
|
|
|
+ <el-button style="margin-right:20px ;width: 100px;" type="text">按钮文字色</el-button>
|
|
|
+ <el-color-picker v-model="productJson.btnTextCol" size="small" show-alpha />
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-row style="margin:0" :gutter="24">
|
|
|
<el-col style="display: flex;" :span="7">
|
|
@@ -299,11 +305,12 @@
|
|
|
<span>banner图</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主banner')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.bannerImg" @imgVal="productJson.bannerImg =$event" @removeClick="productJson.bannerImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主banner')})">
|
|
|
<img v-if="productJson.bannerImg" :src="imgUrl+productJson.bannerImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.bannerImg!==''" @click="productJson.bannerImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.bannerImg!==''" @click="productJson.bannerImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -323,11 +330,12 @@
|
|
|
<span>上层素材</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主upImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.upImg" @imgVal="productJson.upImg =$event" @removeClick="productJson.upImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主upImg')})">
|
|
|
<img v-if="productJson.upImg!==''" :src="imgUrl+productJson.upImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.upImg!==''" @click="productJson.upImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.upImg!==''" @click="productJson.upImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -335,18 +343,20 @@
|
|
|
<span>顶层素材</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主topImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.topImg" @imgVal="productJson.topImg =$event" @removeClick="productJson.topImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主topImg')})">
|
|
|
<img v-if="productJson.topImg!==''" :src="imgUrl+productJson.topImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.topImg!==''" @click="productJson.topImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.topImg!==''" @click="productJson.topImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="订购窗标题">
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'explainTitle')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.explainTitle" @imgVal="productJson.explainTitle =$event" @removeClick="productJson.explainTitle = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'explainTitle')})">
|
|
|
<img v-if="productJson.explainTitle !== ''" :src="imgUrl+productJson.explainTitle" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.explainTitle!==''" @click="productJson.explainTitle=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.explainTitle!==''" @click="productJson.explainTitle=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -354,11 +364,12 @@
|
|
|
<span>订购窗配图</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主explainImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.explainImg" @imgVal="productJson.explainImg =$event" @removeClick="productJson.explainImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主explainImg')})">
|
|
|
<img v-if="productJson.explainImg !== ''" :src="imgUrl+productJson.explainImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.explainImg!==''" @click="productJson.explainImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.explainImg!==''" @click="productJson.explainImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
@@ -367,11 +378,12 @@
|
|
|
<span>产品说明标题</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主orderImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.orderImg" @imgVal="productJson.orderImg =$event" @removeClick="productJson.orderImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'主orderImg')})">
|
|
|
<img v-if="productJson.orderImg !==''" :src="imgUrl+productJson.orderImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.orderImg!==''" @click="productJson.orderImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.orderImg!==''" @click="productJson.orderImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-collapse-item>
|
|
@@ -399,6 +411,10 @@
|
|
|
<el-button style="margin-right:20px ;width: 100px;" type="text">按钮色(下)</el-button>
|
|
|
<el-color-picker v-model="viceJson.btnBotcol" size="small" show-alpha />
|
|
|
</el-col>
|
|
|
+ <el-col style="display: flex;" :span="7">
|
|
|
+ <el-button style="margin-right:20px ;width: 100px;" type="text">按钮文字色</el-button>
|
|
|
+ <el-color-picker v-model="viceJson.btnTextCol" size="small" show-alpha />
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-row style="margin:0" :gutter="24">
|
|
|
<el-col style="display: flex;" :span="7">
|
|
@@ -442,11 +458,12 @@
|
|
|
<template slot="label">
|
|
|
<span>banner图</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副banner')})">
|
|
|
+ <img-Content :imgValue="imgUrl+viceJson.bannerImg" @imgVal="viceJson.bannerImg =$event" @removeClick="viceJson.bannerImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副banner')})">
|
|
|
<img v-if="viceJson.bannerImg" :src="imgUrl+viceJson.bannerImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.bannerImg!==''" @click="viceJson.bannerImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.bannerImg!==''" @click="viceJson.bannerImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -462,42 +479,46 @@
|
|
|
<template slot="label">
|
|
|
<span>上层素材</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副upImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+viceJson.upImg" @imgVal="viceJson.upImg =$event" @removeClick="viceJson.upImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副upImg')})">
|
|
|
<img v-if="viceJson.upImg" :src="imgUrl+viceJson.upImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.upImg!==''" @click="viceJson.upImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.upImg!==''" @click="viceJson.upImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
<span>顶层素材</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副topImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+viceJson.topImg" @imgVal="viceJson.topImg =$event" @removeClick="viceJson.topImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副topImg')})">
|
|
|
<img v-if="viceJson.topImg" :src="imgUrl+viceJson.topImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.topImg!==''" @click="viceJson.topImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.topImg!==''" @click="viceJson.topImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
<span>订购窗配图</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副explainImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+viceJson.explainImg" @imgVal="viceJson.explainImg =$event" @removeClick="viceJson.explainImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副explainImg')})">
|
|
|
<img v-if="viceJson.explainImg" :src="imgUrl+viceJson.explainImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.explainImg!==''" @click="viceJson.explainImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.explainImg!==''" @click="viceJson.explainImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
<span>产品说明标题</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副orderImg')})">
|
|
|
+ <img-Content :imgValue="imgUrl+viceJson.orderImg" @imgVal="viceJson.orderImg =$event" @removeClick="viceJson.orderImg = $event"/>
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'副orderImg')})">
|
|
|
<img v-if="viceJson.orderImg" :src="imgUrl+viceJson.orderImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.orderImg!==''" @click="viceJson.orderImg=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.orderImg!==''" @click="viceJson.orderImg=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item v-if="form.templateCode==='templateTogether'" title="聚合产品-配置管理" name="5">
|
|
@@ -516,25 +537,28 @@
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item v-if="form.templateCode==='templateThree'" title="三合一产品配图" name="6">
|
|
|
<el-form-item label="主产品图">
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'img1')})">
|
|
|
+ <img-Content :imgValue="imgUrl+extJson.img1" @imgVal="extJson.img1 =$event" @removeClick="extJson.img1 = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'img1')})">
|
|
|
<img v-if="extJson.img1 !==''" :src="imgUrl+extJson.img1" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="extJson.img1!==''" @click="extJson.img1=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="extJson.img1!==''" @click="extJson.img1=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="副产品图1">
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'img2')})">
|
|
|
+ <img-Content :imgValue="imgUrl+extJson.img2" @imgVal="extJson.img2 =$event" @removeClick="extJson.img2 = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'img2')})">
|
|
|
<img v-if="extJson.img2 !==''" :src="imgUrl+extJson.img2" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="extJson.img2!==''" @click="extJson.img2=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="extJson.img2!==''" @click="extJson.img2=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="副产品图2">
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'img3')})">
|
|
|
+ <img-Content :imgValue="imgUrl+extJson.img3" @imgVal="extJson.img3 =$event" @removeClick="extJson.img3 = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'img3')})">
|
|
|
<img v-if="extJson.img3 !==''" :src="imgUrl+extJson.img3" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="extJson.img3!==''" @click="extJson.img3=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="extJson.img3!==''" @click="extJson.img3=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="菜单按钮" name="4">
|
|
@@ -708,11 +732,12 @@
|
|
|
<el-switch style="width: 300px" v-model="extJson.extendVal" active-text="启用" inactive-text="不启用" active-value="1" inactive-value="0" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="营销配图">
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'extend')})">
|
|
|
+ <img-Content :imgValue="extJson.extendImg" @imgVal="extJson.extendImg =imgUrl +$event" @removeClick="extJson.extendImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'extend')})">
|
|
|
<img v-if="extJson.extendImg!==''" :src="extJson.extendImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="extJson.extendImg!==''" style="color: #F56C6C; cursor: pointer" @click="extJson.extendImg=''">删除</span>
|
|
|
+ <span v-if="extJson.extendImg!==''" style="color: #F56C6C; cursor: pointer" @click="extJson.extendImg=''">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -791,11 +816,12 @@
|
|
|
<span>活动LOGO</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'活动logo')})">
|
|
|
+ <img-Content :imgValue="form.activityLogo" @imgVal="form.activityLogo =imgUrl +$event" @removeClick="form.activityLogo = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'活动logo')})">
|
|
|
<img v-if="form.activityLogo !==''" :src="form.activityLogo" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="form.activityLogo!==''" @click="form.activityLogo=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="form.activityLogo!==''" @click="form.activityLogo=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -803,11 +829,12 @@
|
|
|
<span>活动海报</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'活动海报')})">
|
|
|
+ <img-Content :imgValue="form.posterPhoto" @imgVal="form.posterPhoto =imgUrl +$event" @removeClick="form.posterPhoto = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'活动海报')})">
|
|
|
<img v-if="form.posterPhoto!==''" :src="form.posterPhoto" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="form.posterPhoto!==''" @click="form.posterPhoto=''" style="color: #F56C6C; cursor: pointer">删除</span>
|
|
|
+ <span v-if="form.posterPhoto!==''" @click="form.posterPhoto=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -825,9 +852,14 @@
|
|
|
const XEUtils = require("xe-utils");
|
|
|
import lottie from 'lottie-web';
|
|
|
import { post, get } from "@/api/common";
|
|
|
+import imgContent from '../../components/imgBox/index.vue'
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ imgContent
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
+ valueImg: "",
|
|
|
lottie: {},
|
|
|
imgUrl: process.env.VUE_APP_BASE_IMG_URL,
|
|
|
ifreamSrc: "",
|
|
@@ -926,7 +958,8 @@ export default {
|
|
|
orderImg: "", //订购窗图
|
|
|
explainImg: "", //产品说明图
|
|
|
productV: "2",//产品ui样式,
|
|
|
- explainTitle: "" //订购窗标题图
|
|
|
+ explainTitle: "", //订购窗标题图,
|
|
|
+ btnTextCol:""
|
|
|
}, //产品json
|
|
|
otherJson: {}, // 备用json
|
|
|
// 副产品json
|
|
@@ -950,6 +983,7 @@ export default {
|
|
|
explainImg: "", //产品说明图
|
|
|
productV: "2",
|
|
|
drawVal: "0", //副产品动画
|
|
|
+ btnTextCol:""
|
|
|
},
|
|
|
// 客户端适配
|
|
|
disposeList: [
|
|
@@ -995,6 +1029,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ imgClick (data) {
|
|
|
+
|
|
|
+ },
|
|
|
getTabList () {
|
|
|
this.tabList = []
|
|
|
if (this.extJson.tabArr && this.extJson.tabArr.length > 0) {
|
|
@@ -1325,54 +1362,15 @@ export default {
|
|
|
// 上传图片
|
|
|
fileSuccess (file, fileList, name) {
|
|
|
if (file.code === 10000) {
|
|
|
- if (name === '推广图') {
|
|
|
- this.form.promotePhoto = this.imgUrl + file.data
|
|
|
- } else if (name === 'logo') {
|
|
|
- this.productJson.logoPic = file.data
|
|
|
- } else if (name === '主banner') {
|
|
|
- this.productJson.bannerImg = file.data
|
|
|
- } else if (name === '主jsonImg') {
|
|
|
+ if (name === '主jsonImg') {
|
|
|
this.productJson.jsonImg = file.data
|
|
|
let imgUrl = this.imgUrl + file.data
|
|
|
this.svgClick('主', imgUrl)
|
|
|
- } else if (name === '主upImg') {
|
|
|
- this.productJson.upImg = file.data
|
|
|
- } else if (name === '主topImg') {
|
|
|
- this.productJson.topImg = file.data
|
|
|
- } else if (name === '主orderImg') {
|
|
|
- this.productJson.orderImg = file.data
|
|
|
- } else if (name === '主explainImg') {
|
|
|
- this.productJson.explainImg = file.data
|
|
|
- } else if (name === '副banner') {
|
|
|
- this.viceJson.bannerImg = file.data
|
|
|
} else if (name === '副jsonImg') {
|
|
|
this.viceJson.jsonImg = file.data
|
|
|
let imgUrl = this.imgUrl + file.data
|
|
|
this.svgClick('副', imgUrl)
|
|
|
- } else if (name === '副upImg') {
|
|
|
- this.viceJson.upImg = file.data
|
|
|
- } else if (name === '副topImg') {
|
|
|
- this.viceJson.topImg = file.data
|
|
|
- } else if (name === '副orderImg') {
|
|
|
- this.viceJson.orderImg = file.data
|
|
|
- } else if (name === '副explainImg') {
|
|
|
- this.viceJson.explainImg = file.data
|
|
|
- } else if (name === '活动logo') {
|
|
|
- this.form.activityLogo = this.imgUrl + file.data
|
|
|
- } else if (name === '活动海报') {
|
|
|
- this.form.posterPhoto = this.imgUrl + file.data
|
|
|
- } else if (name === 'extend') {
|
|
|
- this.extJson.extendImg = this.imgUrl + file.data
|
|
|
- } else if (name == 'img1') {
|
|
|
- this.extJson.img1 = file.data
|
|
|
- } else if (name == 'img2') {
|
|
|
- this.extJson.img2 = file.data
|
|
|
- } else if (name == 'img3') {
|
|
|
- this.extJson.img3 = file.data
|
|
|
- } else if (name === 'explainTitle') {
|
|
|
- this.productJson.explainTitle = file.data
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
// 对象赋值
|