feature_0521
郑皇 6 years ago
parent 70dc6282c6
commit 4b1ca750fc

@ -1,23 +1,15 @@
<template> <template>
<Modal v-model="dispalyModal" <Modal v-model="dispalyModal" width="1000" :loading="true" :mask-closable="false">
width="1000" <p slot="header" style="color:#f60;text-align:left">
:loading="true"
:mask-closable="false">
<p slot="header"
style="color:#f60;text-align:left">
<span>配置活动</span> <span>配置活动</span>
</p> </p>
<div>基本配置</div> <div>基本配置</div>
<Form ref="formValidate" <Form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="80">
:model="formValidate"
:rules="ruleValidate"
:label-width="80">
<Row> <Row>
<i-col style="text-align: left;" <i-col style="text-align: left;" span="8">
span="8"> <FormItem label prop="logo">
<FormItem label="" <Upload
prop="logo"> ref="upload"
<Upload ref="upload"
:show-upload-list="false" :show-upload-list="false"
:on-success="uploadImgSuccess" :on-success="uploadImgSuccess"
:format="['jpg', 'jpeg', 'png']" :format="['jpg', 'jpeg', 'png']"
@ -25,85 +17,73 @@
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
multiple multiple
type="drag" type="drag"
action="" action
style="display: inline-block;"> style="display: inline-block;"
>
<div style="width: 200px;height:200px;line-height: 200px;"> <div style="width: 200px;height:200px;line-height: 200px;">
<span v-if="!formValidate.logo"></span> <span v-if="!formValidate.logo"></span>
<img v-if="formValidate.logo" <img
v-if="formValidate.logo"
:src="`/kiisoo-ic` + formValidate.logo" :src="`/kiisoo-ic` + formValidate.logo"
alt="" alt
style="width: 100%; height: auto" /> style="width: 100%; height: auto"
/>
</div> </div>
</Upload> </Upload>
</FormItem> </FormItem>
</i-col> </i-col>
<i-col span="15" <i-col span="15" offset="1">
offset="1"> <FormItem label="活动名称" prop="name">
<FormItem label="活动名称" <i-input type="text" v-model="formValidate.name" placeholder="请输入活动名称"></i-input>
prop="name">
<i-input type="text"
v-model="formValidate.name"
placeholder="请输入活动名称"></i-input>
</FormItem> </FormItem>
<Form-item label="活动描述" <Form-item label="活动描述" prop="description">
prop="description"> <i-input
<i-input v-model="formValidate.description" v-model="formValidate.description"
type="textarea" type="textarea"
:autosize="{ minRows: 3 }" :autosize="{ minRows: 3 }"
placeholder="请输入活动描述"></i-input> placeholder="请输入活动描述"
></i-input>
</Form-item> </Form-item>
<FormItem label="APPID" <Form-item label="欢迎语" prop="description">
prop="appId"> <i-input
<i-input type="text" v-model="formValidate.welcome"
v-model="formValidate.appId" type="textarea"
placeholder="请输入appid"></i-input> :autosize="{ minRows: 3 }"
placeholder="请输入欢迎语"
></i-input>
</Form-item>
<FormItem label="APPID" prop="appId">
<i-input type="text" v-model="formValidate.appId" placeholder="请输入appid"></i-input>
</FormItem> </FormItem>
<FormItem label="URI" <FormItem label="URI" prop="uri">
prop="uri"> <i-input type="text" v-model="formValidate.uri" placeholder="请输入URI"></i-input>
<i-input type="text"
v-model="formValidate.uri"
placeholder="请输入URI"></i-input>
</FormItem> </FormItem>
</i-col> </i-col>
</Row> </Row>
</Form> </Form>
<div class="topic">活动类型</div> <div class="topic">活动类型</div>
<Row :gutter="10" <Row :gutter="10" class="inputItem" v-for="(item, index) in formValidate.params" :key="index">
class="inputItem" <i-col :span="2">类型{{ index + 1 }}</i-col>
v-for="(item, index) in formValidate.params"
:key="index">
<i-col :span="2"> 类型{{ index + 1 }} </i-col>
<i-col :span="9"> <i-col :span="9">
<i-input class="inputClass" <i-input class="inputClass" type="text" v-model="item.name" placeholder="请输入活动类型名称"></i-input>
type="text"
v-model="item.name"
placeholder="请输入活动类型名称"></i-input>
</i-col> </i-col>
<i-col :span="9"> <i-col :span="9">
<i-input class="inputClass" <i-input
class="inputClass"
type="text" type="text"
style="margin-left: 20px" style="margin-left: 20px"
v-model="item.defaultVal" v-model="item.defaultVal"
placeholder="请输入参数"></i-input> placeholder="请输入参数"
></i-input>
</i-col> </i-col>
<i-col :span="4"> <i-col :span="4">
<Button style="margin-left: 20px" <Button style="margin-left: 20px" type="error" @click="delActivityInput(index)"></Button>
type="error"
@click="delActivityInput(index)">删除</Button>
</i-col> </i-col>
</Row> </Row>
<Button style="margin-top: 10px" <Button style="margin-top: 10px" type="primary" @click="addActivityInput">+</Button>
type="primary"
@click="addActivityInput">+添加活动类型</Button>
<div slot="footer"> <div slot="footer">
<Button type="primary" <Button type="primary" shape="circle" :loading="modal_loading" @click="cancel"></Button>
shape="circle" <Button type="primary" shape="circle" :loading="modal_loading" @click="save"></Button>
:loading="modal_loading"
@click="cancel">取消</Button>
<Button type="primary"
shape="circle"
:loading="modal_loading"
@click="save">确定</Button>
</div> </div>
</Modal> </Modal>
</template> </template>
@ -112,7 +92,7 @@ import ActivityManager from "../../services/ActivityManager/ActivityManager";
import axios from "axios"; import axios from "axios";
export default { export default {
name: "addActivity", name: "addActivity",
data () { data() {
return { return {
dispalyModal: false, dispalyModal: false,
currentStep: 0, currentStep: 0,
@ -122,25 +102,26 @@ export default {
loading: true, loading: true,
ruleValidate: { ruleValidate: {
name: [ name: [
{ required: true, message: "活动名称不能为空", trigger: "blur" }, { required: true, message: "活动名称不能为空", trigger: "blur" }
], ],
description: [ description: [
{ required: true, message: "活动描述不能为空", trigger: "blur" }, { required: true, message: "活动描述不能为空", trigger: "blur" }
], ],
appId: [{ required: true, message: "appId不能为空", trigger: "blur" }], appId: [{ required: true, message: "appId不能为空", trigger: "blur" }],
uri: [{ required: true, message: "URI不能为空", trigger: "blur" }], uri: [{ required: true, message: "URI不能为空", trigger: "blur" }],
welcome: [{ required: true, message: "请输入欢迎语", trigger: "blur" }]
// uploadImg: [ // uploadImg: [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ] // ]
}, }
}; };
}, },
props: { props: {
addActivityModal: Boolean, addActivityModal: Boolean,
id: String, id: String
}, },
watch: { watch: {
addActivityModal (val) { addActivityModal(val) {
this.dispalyModal = val; this.dispalyModal = val;
if (val === true && this.id) { if (val === true && this.id) {
this.getActivityData(); this.getActivityData();
@ -162,16 +143,16 @@ export default {
limitLower: "", limitLower: "",
limitUpper: "", limitUpper: "",
name: "", name: "",
type: 0, type: 0
}, }
]; ];
} }
this.$forceUpdate(); this.$forceUpdate();
}
}, },
}, mounted() {},
mounted () { },
methods: { methods: {
addActivityInput () { addActivityInput() {
let params = [...this.formValidate.params]; let params = [...this.formValidate.params];
params.push({ params.push({
defaultVal: "", defaultVal: "",
@ -182,12 +163,12 @@ export default {
limitLower: "", limitLower: "",
limitUpper: "", limitUpper: "",
name: "", name: "",
type: 0, type: 0
}); });
this.$set(this.formValidate, "params", params); this.$set(this.formValidate, "params", params);
this.$forceUpdate(); this.$forceUpdate();
}, },
delActivityInput (index) { delActivityInput(index) {
if (this.formValidate.params.length <= 1) { if (this.formValidate.params.length <= 1) {
this.$Message.error("至少需要填写一个活动类型!"); this.$Message.error("至少需要填写一个活动类型!");
return; return;
@ -195,22 +176,22 @@ export default {
this.formValidate.params.splice(index, 1); this.formValidate.params.splice(index, 1);
this.$forceUpdate(); this.$forceUpdate();
}, },
cancel () { cancel() {
this.$emit("dispalyAddActivityModal", false, false); this.$emit("dispalyAddActivityModal", false, false);
}, },
getActivityData () { getActivityData() {
let that = this; let that = this;
let data = { let data = {
id: that.id, id: that.id
}; };
ActivityManager.getActivityInfo(data, function (data) { ActivityManager.getActivityInfo(data, function(data) {
that.formValidate = data.data.results; that.formValidate = data.data.results;
}); });
}, },
uploadImgSuccess (res, file) { uploadImgSuccess(res, file) {
this.imageName = file.name; this.imageName = file.name;
}, },
handleBeforeUpload (res) { handleBeforeUpload(res) {
const me = this; const me = this;
let data = new FormData(); let data = new FormData();
data.append("file", res); data.append("file", res);
@ -219,9 +200,9 @@ export default {
url: "/upload", url: "/upload",
data: data, data: data,
headers: { headers: {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data"
}, }
}).then(function (res) { }).then(function(res) {
if (res.data.success) { if (res.data.success) {
// me.formValidate.logo = res.data.results; // me.formValidate.logo = res.data.results;
me.$set(me.formValidate, "logo", res.data.results.localPath); me.$set(me.formValidate, "logo", res.data.results.localPath);
@ -230,7 +211,7 @@ export default {
}); });
return false; return false;
}, },
save () { save() {
let that = this; let that = this;
that.modal_loading = true; that.modal_loading = true;
let i = 0; let i = 0;
@ -264,13 +245,13 @@ export default {
} }
} }
} }
this.$refs["formValidate"].validate((valid) => { this.$refs["formValidate"].validate(valid => {
if (valid) { if (valid) {
// param = JSON.stringify(param) // param = JSON.stringify(param)
let data = { ...that.formValidate, isGetActivityInfo: true }; let data = { ...that.formValidate, isGetActivityInfo: true };
data.categoryId = 0; data.categoryId = 0;
data.categoryCode = "promotion"; data.categoryCode = "promotion";
ActivityManager.addOreditActivity(data, function (data) { ActivityManager.addOreditActivity(data, function(data) {
that.addActivityModal = false; that.addActivityModal = false;
that.formValidate = {}; that.formValidate = {};
that.modal_loading = false; that.modal_loading = false;
@ -281,8 +262,8 @@ export default {
that.$Message.error("表单验证失败!"); that.$Message.error("表单验证失败!");
} }
}); });
}, }
}, }
}; };
</script> </script>

@ -2,82 +2,73 @@
<div class> <div class>
<Row> <Row>
<i-col :span="12"> <i-col :span="12">
<Form ref="welcomeForm" <Form ref="welcomeForm" :model="welcome" :rules="welcomeRules">
:model="welcome" <FormItem label="欢迎语内容" prop="content">
:rules="welcomeRules"> <i-input
<FormItem label="欢迎语内容" v-model="welcome.content"
prop="content">
<i-input v-model="welcome.content"
type="textarea" type="textarea"
style="height: 220px" style="height: 220px"
:autosize="{ minRows: 10, maxRows: 10 }" :autosize="{ minRows: 10, maxRows: 10 }"
placeholder="请输入欢迎语内容,最多100个字"></i-input> placeholder="请输入欢迎语内容,最多100个字"
></i-input>
</FormItem> </FormItem>
<Row style="margin-bottom: 10px" <Row
style="margin-bottom: 10px"
:gutter="10" :gutter="10"
class="inputItem" class="inputItem"
v-for="(item, index) in welcome.params" v-for="(item, index) in welcome.params"
:key="index"> :key="index"
>
<div v-if="item.type == 3"> <div v-if="item.type == 3">
<i-col style="line-height: 32px" <i-col style="line-height: 32px" :span="2">APPID {{ index + 1 }}</i-col>
:span="4">APPID {{ index + 1 }}</i-col> <i-col :span="4">
<i-col :span="6"> <i-input class="inputClass" type="text" disabled v-model="item.defaultVal"></i-input>
<i-input class="inputClass"
type="text"
disabled
v-model="item.defaultVal"></i-input>
</i-col> </i-col>
<i-col style="line-height: 32px" <i-col style="line-height: 32px" :span="2">URI {{ index + 1 }}</i-col>
:span="4">URI {{ index + 1 }}</i-col> <i-col :span="5">
<i-col :span="6"> <i-input class="inputClass" type="text" disabled v-model="item.description"></i-input>
<i-input class="inputClass" </i-col>
type="text" <i-col style="line-height: 32px" :span="2">MediaId{{ index + 1 }}</i-col>
disabled <i-col :span="5">
v-model="item.description"></i-input> <i-input class="inputClass" type="text" disabled v-model="item.limitLower"></i-input>
</i-col> </i-col>
</div> </div>
<div v-else> <div v-else>
<i-col style="line-height: 32px" <i-col style="line-height: 32px" :span="4">{{ item.name }}{{ index + 1 }}</i-col>
:span="4">{{ item.name }}{{ index + 1 }}</i-col>
<i-col :span="16"> <i-col :span="16">
<i-input class="inputClass" <i-input class="inputClass" type="text" disabled v-model="item.defaultVal"></i-input>
type="text"
disabled
v-model="item.defaultVal"></i-input>
</i-col> </i-col>
</div> </div>
<i-col :span="4"> <i-col :span="4">
<Button type="error" <Button type="error" @click="delActivityInput(index)"></Button>
@click="delActivityInput(index)">删除</Button>
</i-col> </i-col>
</Row> </Row>
<FormItem> <FormItem>
<Button type="text" <Button type="text" @click="() => (showMessageTypes = true)" icon="md-add">添加图片/网页/小程序消息</Button>
@click="() => (showMessageTypes = true)"
icon="md-add">添加图片/网页/小程序消息</Button>
</FormItem> </FormItem>
<FormItem label="配置范围: "> <FormItem label="配置范围: ">
<span @click="showStores" <span
v-if="welcome.stores.length > 0">{{ welcome.stores[0].name }}{{ welcome.stores.length }}家店铺</span> @click="showStores"
<Button type="text" v-if="welcome.stores.length > 0"
>{{ welcome.stores[0].name }}{{ welcome.stores.length }}家店铺</span>
<Button
type="text"
v-if="welcome.stores.length <= 0" v-if="welcome.stores.length <= 0"
@click="showStores" @click="showStores"
icon="md-add">全部店铺</Button> icon="md-add"
>全部店铺</Button>
</FormItem> </FormItem>
<FormItem> <FormItem>
<Button type="primary" <Button type="primary" long @click="submit"></Button>
long
@click="submit">确定</Button>
</FormItem> </FormItem>
</Form> </Form>
</i-col> </i-col>
</Row> </Row>
<Modal v-model="showMessageTypes" <Modal v-model="showMessageTypes" title="添加图片/网页/小程序消息" :footer-hide="true">
title="添加图片/网页/小程序消息"
:footer-hide="true">
<Row :gutter="24"> <Row :gutter="24">
<i-col :span="8"> <i-col :span="8">
<Upload ref="upload" <Upload
ref="upload"
:show-upload-list="false" :show-upload-list="false"
:on-success="uploadImgSuccess" :on-success="uploadImgSuccess"
:format="['jpg', 'jpeg', 'png']" :format="['jpg', 'jpeg', 'png']"
@ -87,75 +78,64 @@
multiple multiple
type="drag" type="drag"
action action
style="width: 100%;"> style="width: 100%;"
>
<div style="width: 100%;"> <div style="width: 100%;">
<Button long <Button long type="primary">{{imageUploading ? "上传中..." : "图片"}}</Button>
type="primary">{{imageUploading ? "上传中..." : "图片"}}</Button>
</div> </div>
</Upload> </Upload>
</i-col> </i-col>
<i-col :span="8"> <i-col :span="8">
<Button long <Button long @click="doShowWeb" type="primary">网页</Button>
@click="doShowWeb"
type="primary">网页</Button>
</i-col> </i-col>
<i-col :span="8"> <i-col :span="8">
<Button long <Button long @click="doShowMini" type="primary">小程序</Button>
@click="doShowMini"
type="primary">小程序</Button>
</i-col> </i-col>
</Row> </Row>
</Modal> </Modal>
<Modal v-model="showWeb" <Modal v-model="showWeb" title="添加网页消息" :loading="true">
title="添加网页消息" <Form ref="webForm" :model="webForm" :rules="webFormRules">
:loading="true"> <FormItem label="添加网页消息" prop="url">
<Form ref="webForm" <i-input v-model="webForm.url" type="text" placeholder="以http或https开头"></i-input>
:model="webForm"
:rules="webFormRules">
<FormItem label="添加网页消息"
prop="url">
<i-input v-model="webForm.url"
type="text"
placeholder="以http或https开头"></i-input>
</FormItem> </FormItem>
</Form> </Form>
<div slot="footer"> <div slot="footer">
<Button type="primary" <Button type="primary" @click="cancelWeb"></Button>
@click="cancelWeb">取消</Button> <Button type="primary" @click="okWeb"></Button>
<Button type="primary"
@click="okWeb">确定</Button>
</div> </div>
</Modal> </Modal>
<Modal v-model="showMini" <Modal v-model="showMini" title="添加小程序消息" :loading="true">
title="添加小程序消息" <Form ref="miniForm" :model="miniForm" :rules="miniFormRules">
:loading="true"> <FormItem label="APPID" prop="appid">
<Form ref="miniForm" <i-input v-model="miniForm.appid" type="text" placeholder="请输入appid"></i-input>
:model="miniForm"
:rules="miniFormRules">
<FormItem label="APPID"
prop="appid">
<i-input v-model="miniForm.appid"
type="text"
placeholder="请输入appid"></i-input>
</FormItem> </FormItem>
<FormItem label="URI" <FormItem label="URI" prop="uri">
prop="uri"> <i-input v-model="miniForm.uri" type="text" placeholder="请输入URl"></i-input>
<i-input v-model="miniForm.uri"
type="text"
placeholder="请输入URl"></i-input>
</FormItem> </FormItem>
<Upload
ref="upload"
:show-upload-list="false"
:on-success="miniUploadImgSuccess"
:format="['jpg', 'jpeg', 'png']"
:max-size="2048"
:on-exceeded-size="onExceededSize"
:before-upload="handleBeforeUploadMini"
multiple
type="drag"
action
style="width: 100%;"
>
<div style="width: 100%;">
<Button long type="primary">{{imageUploading ? "上传中..." : "上传封面图"}}</Button>
</div>
</Upload>
</Form> </Form>
<div slot="footer"> <div slot="footer">
<Button type="primary" <Button type="primary" @click="cancelMini"></Button>
@click="cancelMini">取消</Button> <Button type="primary" @click="okMini"></Button>
<Button type="primary"
@click="okMini">确定</Button>
</div> </div>
</Modal> </Modal>
<selectStoreStep :isModify="id>0" <selectStoreStep :isModify="id>0" @doShow="doShow" :schedule="welcome" :show="showStoreCheck"></selectStoreStep>
@doShow="doShow"
:schedule="welcome"
:show="showStoreCheck"></selectStoreStep>
</div> </div>
</template> </template>
@ -174,7 +154,7 @@ const validateUrl = (rule, value, callback) => {
} }
}; };
export default { export default {
data () { data() {
return { return {
showStoreCheck: false, showStoreCheck: false,
showWeb: false, showWeb: false,
@ -212,12 +192,12 @@ export default {
appid: [{ required: true, message: "请输入url", trigger: "blur" }], appid: [{ required: true, message: "请输入url", trigger: "blur" }],
uri: [{ required: true, message: "请输入url", trigger: "blur" }] uri: [{ required: true, message: "请输入url", trigger: "blur" }]
}, },
miniForm: { appid: "", uri: "" } miniForm: { appid: "", uri: "", limitLower: "", limitUpper: "" }
}; };
}, },
watch: { watch: {
welcome: { welcome: {
handler () { handler() {
store.commit("SET_useData", { store.commit("SET_useData", {
...store.getters.useData, ...store.getters.useData,
...this.welcome ...this.welcome
@ -227,7 +207,7 @@ export default {
deep: true deep: true
} }
}, },
created () { created() {
this.id = this.$route.query.id; this.id = this.$route.query.id;
// store.commit("SET_useData", { ...store.getters.useData, ...this.welcome }); // store.commit("SET_useData", { ...store.getters.useData, ...this.welcome });
console.log(this.$route); console.log(this.$route);
@ -239,14 +219,14 @@ export default {
selectStoreStep selectStoreStep
}, },
methods: { methods: {
doShow () { doShow() {
this.showStoreCheck = false; this.showStoreCheck = false;
this.welcome = store.getters.useData; this.welcome = store.getters.useData;
}, },
onExceededSize () { onExceededSize() {
console.log("失败"); console.log("失败");
}, },
getDetail (instanceId) { getDetail(instanceId) {
let _this = this; let _this = this;
ActivityManager.instanceDetail( ActivityManager.instanceDetail(
{ {
@ -261,7 +241,7 @@ export default {
} }
); );
}, },
showStores () { showStores() {
console.log({ ...store.getters.useData, ...this.welcome }); console.log({ ...store.getters.useData, ...this.welcome });
store.commit("SET_useData", { store.commit("SET_useData", {
...this.welcome, ...this.welcome,
@ -269,25 +249,26 @@ export default {
}); });
this.showStoreCheck = true; this.showStoreCheck = true;
}, },
uploadImgSuccess (res, file) { }, uploadImgSuccess(res, file) {},
cancelWeb () { miniUploadImgSuccess(res, file) {},
cancelWeb() {
this.showWeb = false; this.showWeb = false;
}, },
doShowWeb () { doShowWeb() {
this.showWeb = true; this.showWeb = true;
this.webForm = { url: "" }; this.webForm = { url: "" };
}, },
doShowMini () { doShowMini() {
this.showMini = true; this.showMini = true;
this.miniForm = { this.miniForm = {
appid: "", appid: "",
uri: "" uri: ""
}; };
}, },
cancelMini () { cancelMini() {
this.showMini = false; this.showMini = false;
}, },
okWeb () { okWeb() {
let _this = this; let _this = this;
this.$refs["webForm"].validate(valid => { this.$refs["webForm"].validate(valid => {
if (valid) { if (valid) {
@ -307,7 +288,7 @@ export default {
} }
}); });
}, },
okMini () { okMini() {
let _this = this; let _this = this;
this.$refs["miniForm"].validate(valid => { this.$refs["miniForm"].validate(valid => {
if (valid) { if (valid) {
@ -317,8 +298,8 @@ export default {
description: this.miniForm.uri, description: this.miniForm.uri,
isRequired: 1, isRequired: 1,
key: "mini", key: "mini",
limitLower: null, limitLower: this.miniForm.limitLower,
limitUpper: null, limitUpper: this.miniForm.limitUpper,
name: "小程序消息", name: "小程序消息",
type: 3 type: 3
}); });
@ -327,15 +308,40 @@ export default {
} }
}); });
}, },
delActivityInput (index) { delActivityInput(index) {
this.welcome.params.splice(index, 1); this.welcome.params.splice(index, 1);
this.$forceUpdate(); this.$forceUpdate();
}, },
handleBeforeUpload (res) { handleBeforeUploadMini(res) {
const me = this;
let data = new FormData();
data.append("file", res);
data.append("needMediaId", "true");
console.log(data);
this.imageUploading = true;
axios({
method: "post",
url: "/upload",
data: data,
headers: {
"Content-Type": "multipart/form-data"
}
}).then(function(res) {
me.imageUploading = false;
if (res.data.success) {
// me.formValidate.logo = res.data.results;
me.miniForm.limitLower = res.data.results.mediaId;
me.miniForm.limitUpper = res.data.results.localPath;
me.showMessageTypes = false;
}
});
return false;
},
handleBeforeUpload(res) {
const me = this; const me = this;
let data = new FormData(); let data = new FormData();
data.append("file", res); data.append("file", res);
data.append("needMediaId", "true") data.append("needMediaId", "true");
console.log(data); console.log(data);
this.imageUploading = true; this.imageUploading = true;
axios({ axios({
@ -345,7 +351,7 @@ export default {
headers: { headers: {
"Content-Type": "multipart/form-data" "Content-Type": "multipart/form-data"
} }
}).then(function (res) { }).then(function(res) {
me.imageUploading = false; me.imageUploading = false;
if (res.data.success) { if (res.data.success) {
// me.formValidate.logo = res.data.results; // me.formValidate.logo = res.data.results;
@ -365,7 +371,7 @@ export default {
}); });
return false; return false;
}, },
submit () { submit() {
let _this = this; let _this = this;
if (this.welcome.stores.length <= 0) { if (this.welcome.stores.length <= 0) {
_this.$Message.error("请至少选择一个店铺"); _this.$Message.error("请至少选择一个店铺");

Loading…
Cancel
Save