|
@@ -2,102 +2,53 @@
|
|
|
<div class="edit">
|
|
|
<el-form :model="form" label-width="100px">
|
|
|
<el-form-item label="产品名称">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- v-model="form.productName"
|
|
|
- placeholder="产品名称"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" v-model="form.productName" placeholder="产品名称"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="spid">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- v-model="form.spid"
|
|
|
- placeholder="spid"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" v-model="form.spid" placeholder="spid"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="cpid">
|
|
|
<el-select v-model="form.cpid" placeholder="cpid" style="width: 300px">
|
|
|
- <el-option
|
|
|
- v-for="item in cpidList"
|
|
|
- :key="item.cpid"
|
|
|
- :label="item.cpid"
|
|
|
- :value="item.cpid"
|
|
|
- >
|
|
|
+ <el-option v-for="item in cpidList" :key="item.cpid" :label="item.cpid" :value="item.cpid">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="activeType">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- v-model="form.activeType"
|
|
|
- placeholder="科创定义activeType,根据对照表填写"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" v-model="form.activeType" placeholder="科创定义activeType,根据对照表填写"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="直冲阈值">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- v-model="form.threshold"
|
|
|
- placeholder="如无阈值设置,则填0"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" v-model="form.threshold" placeholder="如无阈值设置,则填0"></el-input>
|
|
|
<div style="color: red">
|
|
|
直冲阈值>0,开启订购自动领取会员,当日订购成功数满足阈值则开始自动领取该产品会员
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品形态">
|
|
|
- <el-select
|
|
|
- v-model="form.isCompositeProduct"
|
|
|
- placeholder="请选择"
|
|
|
- style="width: 300px"
|
|
|
- >
|
|
|
+ <el-select v-model="form.isCompositeProduct" placeholder="请选择" style="width: 300px">
|
|
|
<el-option label="单产品" :value="0" />
|
|
|
<el-option label="复合产品" :value="1" />
|
|
|
<el-option label="多选一" :value="2" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品原价">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- v-model="form.originalPrice"
|
|
|
- placeholder="产品原价"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" v-model="form.originalPrice" placeholder="产品原价"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品备注">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- placeholder="产品备注"
|
|
|
- v-model="form.remark"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" placeholder="产品备注" v-model="form.remark"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="会员信息">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- placeholder="若无,则留空"
|
|
|
- v-model="form.memberName"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" placeholder="若无,则留空" v-model="form.memberName"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="会员领取链接">
|
|
|
- <el-input
|
|
|
- style="width: 300px"
|
|
|
- placeholder="会员领取链接"
|
|
|
- v-model="productJson[0].memberUrl"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 300px" placeholder="会员领取链接" v-model="productJson[0].memberUrl"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="激活指引">
|
|
|
- <el-input
|
|
|
- style="width: 500px"
|
|
|
- placeholder="激活指引"
|
|
|
- v-model="form.flowJumpUrl"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 500px" placeholder="激活指引" v-model="form.flowJumpUrl"></el-input>
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="分享标题">
|
|
|
<el-input style="width: 500px" v-model="form.pageTitle"></el-input>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="分享文案">
|
|
|
- <el-input
|
|
|
- style="width: 500px"
|
|
|
- v-model="form.remark3"
|
|
|
- placeholder="微信分享副标题"
|
|
|
- ></el-input>
|
|
|
+ <el-input style="width: 500px" v-model="form.remark3" placeholder="微信分享副标题"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="页面背景配色">
|
|
|
<el-row :gutter="10">
|
|
@@ -149,99 +100,41 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="banner">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- :show-file-list="false"
|
|
|
- :action="imgapi"
|
|
|
- :on-success="bannerSuccess"
|
|
|
- >
|
|
|
- <img
|
|
|
- v-if="form.bannerPics.length > 0"
|
|
|
- :src="bannerUrl"
|
|
|
- class="avatar"
|
|
|
- />
|
|
|
+ <el-form-item label="banner">
|
|
|
+ <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="bannerSuccess">
|
|
|
+ <img v-if="form.bannerPics.length > 0" :src="bannerUrl" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span
|
|
|
- v-if="form.bannerPics.length > 0"
|
|
|
- @click="form.bannerPics = ''"
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
- >删除</span
|
|
|
- >
|
|
|
+ <span v-if="form.bannerPics.length > 0" @click="form.bannerPics = ''" style="color: #409eff; cursor: pointer">删除</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="Logo">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- :show-file-list="false"
|
|
|
- :action="imgapi"
|
|
|
- :on-success="logoSuccess"
|
|
|
- >
|
|
|
+ <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="logoSuccess">
|
|
|
<img v-if="form.logoPic" :src="logoUrl" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span
|
|
|
- v-if="form.logoPic"
|
|
|
- @click="form.logoPic = ''"
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
- >删除</span
|
|
|
- >
|
|
|
+ <span v-if="form.logoPic" @click="form.logoPic = ''" style="color: #409eff; cursor: pointer">删除</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="配图">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- :show-file-list="false"
|
|
|
- :action="imgapi"
|
|
|
- :on-success="guideSuccessP"
|
|
|
- >
|
|
|
+ <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="guideSuccessP">
|
|
|
<img v-if="guidancePic.p" :src="guideUrlP" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span
|
|
|
- v-if="guidancePic.p"
|
|
|
- @click="guidancePic.p = ''"
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
- >删除</span
|
|
|
- >
|
|
|
+ <span v-if="guidancePic.p" @click="guidancePic.p = ''" style="color: #409eff; cursor: pointer">删除</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品说明图">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- :show-file-list="false"
|
|
|
- :action="imgapi"
|
|
|
- :on-success="guideSuccessC"
|
|
|
- >
|
|
|
+ <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="guideSuccessC">
|
|
|
<img v-if="guidancePic.c" :src="guideUrlC" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span
|
|
|
- v-if="guidancePic.c"
|
|
|
- @click="guidancePic.c = ''"
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
- >删除</span
|
|
|
- >
|
|
|
+ <span v-if="guidancePic.c" @click="guidancePic.c = ''" style="color: #409eff; cursor: pointer">删除</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="订购按钮图">
|
|
|
- <el-upload
|
|
|
- class="avatar-uploader"
|
|
|
- :show-file-list="false"
|
|
|
- :action="imgapi"
|
|
|
- :on-success="btnSuccess"
|
|
|
- >
|
|
|
- <img
|
|
|
- v-if="productJson[0].btnUrl"
|
|
|
- :src="productJson[0].btnUrl"
|
|
|
- class="avatar"
|
|
|
- />
|
|
|
+ <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="btnSuccess">
|
|
|
+ <img v-if="productJson[0].btnUrl" :src="productJson[0].btnUrl" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span
|
|
|
- v-if="productJson[0].btnUrl"
|
|
|
- @click="productJson[0].btnUrl = ''"
|
|
|
- style="color: #409eff; cursor: pointer"
|
|
|
- >删除</span
|
|
|
- >
|
|
|
- </el-form-item> -->
|
|
|
+ <span v-if="productJson[0].btnUrl" @click="productJson[0].btnUrl = ''" style="color: #409eff; cursor: pointer">删除</span>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="炫彩UI">
|
|
|
<el-radio v-model="productJson[0].productV" label="1">V1</el-radio>
|
|
|
<el-radio v-model="productJson[0].productV" label="2">V2</el-radio>
|
|
@@ -250,28 +143,13 @@
|
|
|
<el-form-item>
|
|
|
<el-tabs type="border-card" style="margin-top: 20px">
|
|
|
<el-tab-pane label="产品订购说明">
|
|
|
- <quill-editor
|
|
|
- ref="text"
|
|
|
- class="myQuillEditor"
|
|
|
- v-model="form.orderingInfo"
|
|
|
- :options="editorOption"
|
|
|
- />
|
|
|
+ <quill-editor ref="text" class="myQuillEditor" v-model="form.orderingInfo" :options="editorOption" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="赠送话费说明">
|
|
|
- <quill-editor
|
|
|
- ref="text"
|
|
|
- v-model="form.givePhoneInfo"
|
|
|
- class="myQuillEditor"
|
|
|
- :options="editorOption"
|
|
|
- />
|
|
|
+ <quill-editor ref="text" v-model="form.givePhoneInfo" class="myQuillEditor" :options="editorOption" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="活动说明">
|
|
|
- <quill-editor
|
|
|
- ref="text"
|
|
|
- v-model="form.manualInfo"
|
|
|
- class="myQuillEditor"
|
|
|
- :options="editorOption"
|
|
|
- />
|
|
|
+ <quill-editor ref="text" v-model="form.manualInfo" class="myQuillEditor" :options="editorOption" />
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-form-item>
|
|
@@ -281,8 +159,7 @@
|
|
|
<el-button style="width: 100%" @click="close()">取消</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-button type="primary" style="width: 100%" @click="sureClick"
|
|
|
- >确定
|
|
|
+ <el-button type="primary" style="width: 100%" @click="sureClick">确定
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -304,10 +181,10 @@ export default {
|
|
|
components: {
|
|
|
quillEditor,
|
|
|
},
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
id: "",
|
|
|
- imgapi: process.env.VUE_APP_BASE_IMG_API,
|
|
|
+ imgapi: 'http://purchase.platomix.net/upload/material/uploadMaterial',
|
|
|
addColors: {
|
|
|
thc: {
|
|
|
s: "#ffffff",
|
|
@@ -433,7 +310,7 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
document.title = "产品修改";
|
|
|
getOne({
|
|
|
id: this.$route.query.ids,
|
|
@@ -442,6 +319,129 @@ export default {
|
|
|
let row = res.data;
|
|
|
row.threshold = row.threshold ? row.threshold : 0;
|
|
|
this.form = row;
|
|
|
+
|
|
|
+ if (row.bannerPics) {
|
|
|
+ this.imgUrl = JSON.parse(row.bannerPics);
|
|
|
+
|
|
|
+ if (this.imgUrl[0] !== "" && this.imgUrl[0] !== null && this.imgUrl[0]) {
|
|
|
+ this.bannerUrl = 'http://purchase.platomix.net/files/' + this.imgUrl[0];
|
|
|
+
|
|
|
+ // console.log(2222, this.bannerUrl)
|
|
|
+ }
|
|
|
+ if (this.imgUrl[2] !== "" && this.imgUrl[2] !== null && this.imgUrl[2]) {
|
|
|
+ this.bannerUrl2 = 'http://purchase.platomix.net/files/' + this.imgUrl[2];
|
|
|
+ }
|
|
|
+ if (this.imgUrl[1] !== "" && this.imgUrl[1] !== null && this.imgUrl[1]
|
|
|
+ ) {
|
|
|
+ this.svgUrl = 'http://purchase.platomix.net/files/' + this.imgUrl[1];
|
|
|
+ this.lottie = lottie.loadAnimation({
|
|
|
+ container: document.getElementById("lottie_box"),
|
|
|
+ renderer: "svg",
|
|
|
+ loop: true,
|
|
|
+ autoplay: true,
|
|
|
+ path: this.svgUrl,
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (row.logoPic) {
|
|
|
+ this.imgUrl = JSON.parse(row.logoPic);
|
|
|
+
|
|
|
+ if (this.imgUrl[0] !== "" && this.imgUrl[0] !== null && this.imgUrl[0]) {
|
|
|
+ this.logoUrl = 'http://purchase.platomix.net/files/' + this.imgUrl[0];
|
|
|
+
|
|
|
+ // console.log(2222, this.logoUrl)
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.imgUrl[2] !== "" &&
|
|
|
+ this.imgUrl[2] !== null &&
|
|
|
+ this.imgUrl[2]
|
|
|
+ ) {
|
|
|
+ console.log(333)
|
|
|
+ this.bannerUrl2 = 'http://purchase.platomix.net/files/' + this.imgUrl[2];
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.imgUrl[1] !== "" &&
|
|
|
+ this.imgUrl[1] !== null &&
|
|
|
+ this.imgUrl[1]
|
|
|
+ ) {
|
|
|
+ this.svgUrl = 'http://purchase.platomix.net/files/' + this.imgUrl[1];
|
|
|
+ this.lottie = lottie.loadAnimation({
|
|
|
+ container: document.getElementById("lottie_box"),
|
|
|
+ renderer: "svg",
|
|
|
+ loop: true,
|
|
|
+ autoplay: true,
|
|
|
+ path: this.svgUrl,
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ if (row.guidancePic) {
|
|
|
+ this.imgUrl = JSON.parse(row.guidancePic);
|
|
|
+ if (this.imgUrl[0] !== "" && this.imgUrl[0] !== null && this.imgUrl[0]) {
|
|
|
+ this.guideUrlP = 'http://purchase.platomix.net/files/' + this.imgUrl[0];
|
|
|
+
|
|
|
+ console.log(2222, this.guideUrlP)
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.imgUrl[2] !== "" &&
|
|
|
+ this.imgUrl[2] !== null &&
|
|
|
+ this.imgUrl[2]
|
|
|
+ ) {
|
|
|
+ console.log(333)
|
|
|
+ this.bannerUrl2 = 'http://purchase.platomix.net/files/' + this.imgUrl[2];
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.imgUrl[1] !== "" &&
|
|
|
+ this.imgUrl[1] !== null &&
|
|
|
+ this.imgUrl[1]
|
|
|
+ ) {
|
|
|
+ this.svgUrl = 'http://purchase.platomix.net/files/' + this.imgUrl[1];
|
|
|
+ this.lottie = lottie.loadAnimation({
|
|
|
+ container: document.getElementById("lottie_box"),
|
|
|
+ renderer: "svg",
|
|
|
+ loop: true,
|
|
|
+ autoplay: true,
|
|
|
+ path: this.svgUrl,
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ if (row.guidancePic) {
|
|
|
+ this.imgUrl = JSON.parse(row.guidancePic);
|
|
|
+ if (this.imgUrl[0] !== "" && this.imgUrl[0] !== null && this.imgUrl[0]) {
|
|
|
+ this.guideUrlC = 'http://purchase.platomix.net/files/' + this.imgUrl[0];
|
|
|
+
|
|
|
+ console.log(2222, this.guideUrlP)
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.imgUrl[2] !== "" &&
|
|
|
+ this.imgUrl[2] !== null &&
|
|
|
+ this.imgUrl[2]
|
|
|
+ ) {
|
|
|
+ console.log(333)
|
|
|
+ this.bannerUrl2 = 'http://purchase.platomix.net/files/' + this.imgUrl[2];
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.imgUrl[1] !== "" &&
|
|
|
+ this.imgUrl[1] !== null &&
|
|
|
+ this.imgUrl[1]
|
|
|
+ ) {
|
|
|
+ this.svgUrl = 'http://purchase.platomix.net/files/' + this.imgUrl[1];
|
|
|
+ this.lottie = lottie.loadAnimation({
|
|
|
+ container: document.getElementById("lottie_box"),
|
|
|
+ renderer: "svg",
|
|
|
+ loop: true,
|
|
|
+ autoplay: true,
|
|
|
+ path: this.svgUrl,
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
this.addColors.thc = {
|
|
|
s: JSON.parse(row.themeColor)[0],
|
|
|
e: JSON.parse(row.themeColor)[1],
|
|
@@ -457,24 +457,16 @@ export default {
|
|
|
// row.threshold = row.threshold ? row.threshold : 0;
|
|
|
// this.form = row;
|
|
|
|
|
|
- if (row.bannerPics) {
|
|
|
- this.bannerUrl =
|
|
|
- process.env.VUE_APP_BASE_IMG_URL +
|
|
|
- "/" +
|
|
|
- JSON.parse(row.bannerPics)[0];
|
|
|
- }
|
|
|
- if (row.logoPic) {
|
|
|
- this.logoUrl = process.env.VUE_APP_BASE_IMG_URL + "/" + row.logoPic;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
if (JSON.parse(row.guidancePic).p) {
|
|
|
this.guideUrlP =
|
|
|
- process.env.VUE_APP_BASE_IMG_URL + JSON.parse(row.guidancePic).p;
|
|
|
+ 'http://purchase.platomix.net/files/' + JSON.parse(row.guidancePic).p;
|
|
|
this.guidancePic.p = JSON.parse(row.guidancePic).p;
|
|
|
}
|
|
|
if (JSON.parse(row.guidancePic).c) {
|
|
|
this.guideUrlC =
|
|
|
- process.env.VUE_APP_BASE_IMG_URL + JSON.parse(row.guidancePic).c;
|
|
|
+ 'http://purchase.platomix.net/files/' + JSON.parse(row.guidancePic).c;
|
|
|
this.guidancePic.c = JSON.parse(row.guidancePic).c;
|
|
|
}
|
|
|
if (row.cacheSeatOne !== null) {
|
|
@@ -482,13 +474,13 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted () {
|
|
|
listProduct(this.searchForm).then((response) => {
|
|
|
this.cpidList = response.data.list;
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- sureClick() {
|
|
|
+ sureClick () {
|
|
|
this.$confirm("确定要修改吗?")
|
|
|
.then((_) => {
|
|
|
this.form.themeColor = JSON.stringify([
|
|
@@ -513,42 +505,52 @@ export default {
|
|
|
this.editDialog = false;
|
|
|
}, 400);
|
|
|
});
|
|
|
- // put("/product/info/update", this.form).then((res) => {
|
|
|
- // if (res.code === 0) this.$message.success("修改成功");
|
|
|
-
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$router.back();
|
|
|
- // this.editDialog = false;
|
|
|
- // }, 400);
|
|
|
- // });
|
|
|
+ put("/product/info/update", this.form).then((res) => {
|
|
|
+ if (res.code === 0) this.$message.success("修改成功");
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.back();
|
|
|
+ this.editDialog = false;
|
|
|
+ }, 400);
|
|
|
+ });
|
|
|
})
|
|
|
.catch((_) => {
|
|
|
this.editDialog = false;
|
|
|
});
|
|
|
},
|
|
|
- close() {
|
|
|
+ close () {
|
|
|
this.$router.back()();
|
|
|
},
|
|
|
- bannerSuccess(file) {
|
|
|
- this.bannerUrl = process.env.VUE_APP_BASE_IMG_URL + file.data;
|
|
|
+ bannerSuccess (file, fileList) {
|
|
|
+ this.bannerUrl = 'http://purchase.platomix.net/files/' + file.data.materialName;
|
|
|
+
|
|
|
let arr = [];
|
|
|
- arr.push(file.data);
|
|
|
+ arr.push(file.data.materialName);
|
|
|
this.form.bannerPics = JSON.stringify(arr);
|
|
|
+ console.log(this.form.bannerPics)
|
|
|
+
|
|
|
},
|
|
|
- logoSuccess(file) {
|
|
|
- this.logoUrl = process.env.VUE_APP_BASE_IMG_URL + file.data;
|
|
|
- this.form.logoPic = file.data;
|
|
|
+ logoSuccess (file) {
|
|
|
+ this.logoUrl = 'http://purchase.platomix.net/files/' + file.data.materialName;
|
|
|
+ let arr = [];
|
|
|
+ arr.push(file.data.materialName);
|
|
|
+ this.form.logoPic = JSON.stringify(arr);
|
|
|
+ console.log(this.form.logoPic)
|
|
|
},
|
|
|
- guideSuccessP(file) {
|
|
|
- this.guideUrlP = process.env.VUE_APP_BASE_IMG_URL + file.data;
|
|
|
- this.guidancePic.p = file.data;
|
|
|
+ guideSuccessP (file) {
|
|
|
+ console.log(file.data.materialName)
|
|
|
+ this.guideUrlP = 'http://purchase.platomix.net/files/' + file.data.materialName;
|
|
|
+ this.guidancePic.p = file.data.materialName;
|
|
|
+ console.log(this.guidancePic.p, this.guideUrlP)
|
|
|
+
|
|
|
},
|
|
|
- guideSuccessC(file) {
|
|
|
- this.guideUrlC = process.env.VUE_APP_BASE_IMG_URL + file.data;
|
|
|
- this.guidancePic.c = file.data;
|
|
|
+ guideSuccessC (file) {
|
|
|
+ this.guideUrlC = 'http://purchase.platomix.net/files/' + file.data.materialName;
|
|
|
+ this.guidancePic.c = file.data.materialName;
|
|
|
},
|
|
|
- btnSuccess(file) {
|
|
|
- this.productJson[0].btnUrl = process.env.VUE_APP_BASE_IMG_URL + file.data;
|
|
|
+ btnSuccess (file) {
|
|
|
+ this.productJson[0].btnUrl = 'http://purchase.platomix.net/files/' + file.data.materialName;
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
};
|