From 7e6b4a7e8cc402e3ae8d984823c436959dd9ee57 Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Wed, 3 Jun 2020 15:29:53 +0800 Subject: [PATCH 01/13] 1 --- src/pages/activity/ActivityManager.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/activity/ActivityManager.vue b/src/pages/activity/ActivityManager.vue index 6404df5..9eb70d0 100644 --- a/src/pages/activity/ActivityManager.vue +++ b/src/pages/activity/ActivityManager.vue @@ -52,6 +52,7 @@ import useTable from "./useTable"; import addActivity from "./addActivity"; import ActivityManager from "../../services/ActivityManager/ActivityManager"; +import store from '../../store'; export default { name: "ActivityManager", @@ -72,6 +73,9 @@ export default { roleCode: "" }; }, + created () { + store.commit("RSET_useData") + }, mounted () { this.setMenuName("活动管理", "活动池"); this.getActivityTable(); From a68a710d43fa6c9214f2ede61aa42932ad2ff330 Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Wed, 3 Jun 2020 15:44:20 +0800 Subject: [PATCH 02/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 219 +++++++++++++++---------- 1 file changed, 130 insertions(+), 89 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index e066f0b..0f46b9e 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -2,119 +2,160 @@
-
- - + + + - +
- APPID {{ index + 1 }} + APPID {{ index + 1 }} - + - URI {{ index + 1 }} + URI {{ index + 1 }} - +
- {{ item.name }}{{ index + 1 }} + {{ item.name }}{{ index + 1 }} - +
- +
- + - {{ welcome.stores[0].name }}等{{ welcome.stores.length }}家店铺 - + {{ welcome.stores[0].name }}等{{ welcome.stores.length }}家店铺 + - +
- + - +
- +
- + - +
- -
- - + + + +
- - + +
- -
- - + + + + - - + +
- - + +
- +
@@ -133,7 +174,7 @@ const validateUrl = (rule, value, callback) => { } }; export default { - data() { + data () { return { showStoreCheck: false, showWeb: false, @@ -176,7 +217,7 @@ export default { }, watch: { welcome: { - handler() { + handler () { store.commit("SET_useData", { ...store.getters.useData, ...this.welcome @@ -186,7 +227,7 @@ export default { deep: true } }, - created() { + created () { this.id = this.$route.query.id; // store.commit("SET_useData", { ...store.getters.useData, ...this.welcome }); console.log(this.$route); @@ -198,14 +239,14 @@ export default { selectStoreStep }, methods: { - doShow() { + doShow () { this.showStoreCheck = false; this.welcome = store.getters.useData; }, - onExceededSize() { + onExceededSize () { console.log("失败"); }, - getDetail(instanceId) { + getDetail (instanceId) { let _this = this; ActivityManager.instanceDetail( { @@ -220,7 +261,7 @@ export default { } ); }, - showStores() { + showStores () { console.log({ ...store.getters.useData, ...this.welcome }); store.commit("SET_useData", { ...this.welcome, @@ -228,25 +269,25 @@ export default { }); this.showStoreCheck = true; }, - uploadImgSuccess(res, file) {}, - cancelWeb() { + uploadImgSuccess (res, file) { }, + cancelWeb () { this.showWeb = false; }, - doShowWeb() { + doShowWeb () { this.showWeb = true; this.webForm = { url: "" }; }, - doShowMini() { + doShowMini () { this.showMini = true; this.miniForm = { appid: "", uri: "" }; }, - cancelMini() { + cancelMini () { this.showMini = false; }, - okWeb() { + okWeb () { let _this = this; this.$refs["webForm"].validate(valid => { if (valid) { @@ -266,7 +307,7 @@ export default { } }); }, - okMini() { + okMini () { let _this = this; this.$refs["miniForm"].validate(valid => { if (valid) { @@ -286,11 +327,11 @@ export default { } }); }, - delActivityInput(index) { + delActivityInput (index) { this.welcome.params.splice(index, 1); this.$forceUpdate(); }, - handleBeforeUpload(res) { + handleBeforeUpload (res) { const me = this; let data = new FormData(); data.append("file", res); @@ -303,7 +344,7 @@ export default { headers: { "Content-Type": "multipart/form-data" } - }).then(function(res) { + }).then(function (res) { me.imageUploading = false; if (res.data.success) { // me.formValidate.logo = res.data.results; @@ -323,12 +364,12 @@ export default { }); return false; }, - submit() { + submit () { let _this = this; - if (this.welcome.params.length <= 0) { - _this.$Message.error("图片/网页/小程序消息至少添加一个"); - return false; - } + // if (this.welcome.params.length <= 0) { + // _this.$Message.error("图片/网页/小程序消息至少添加一个"); + // return false; + // } if (this.welcome.stores.length <= 0) { _this.$Message.error("请至少选择一个店铺"); return false; From 28f5de6b6e411e1d736b554c74aca70dcddcef7a Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Wed, 3 Jun 2020 17:23:19 +0800 Subject: [PATCH 03/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 0f46b9e..c898908 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -366,10 +366,6 @@ export default { }, submit () { let _this = this; - // if (this.welcome.params.length <= 0) { - // _this.$Message.error("图片/网页/小程序消息至少添加一个"); - // return false; - // } if (this.welcome.stores.length <= 0) { _this.$Message.error("请至少选择一个店铺"); return false; From a5aa251d019d5885f39477bdaa4dee30fcbba4a1 Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Wed, 3 Jun 2020 17:24:03 +0800 Subject: [PATCH 04/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index c898908..32eef1b 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -350,8 +350,8 @@ export default { // me.formValidate.logo = res.data.results; me.welcome.params.push({ attr: 2, - defaultVal: res.data.results, - description: res.data.results, + defaultVal: res.data.results.mediaId, + description: res.data.results.mediaId, isRequired: 1, key: "image", limitLower: null, From d3e02dfd21c745dac318bae75e23de4849189227 Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Wed, 3 Jun 2020 17:34:22 +0800 Subject: [PATCH 05/13] 1 --- src/pages/activity/addActivity.vue | 2 +- src/pages/shop/IncreaseWelcomeEdit.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/activity/addActivity.vue b/src/pages/activity/addActivity.vue index bd57e97..18937dd 100644 --- a/src/pages/activity/addActivity.vue +++ b/src/pages/activity/addActivity.vue @@ -224,7 +224,7 @@ export default { }).then(function (res) { if (res.data.success) { // me.formValidate.logo = res.data.results; - me.$set(me.formValidate, "logo", res.data.results); + me.$set(me.formValidate, "logo", res.data.results.localPath); console.log(me.formValidate.logo); } }); diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 32eef1b..4453cc4 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -335,6 +335,7 @@ export default { const me = this; let data = new FormData(); data.append("file", res); + data.append("needMediaId", "true") console.log(data); this.imageUploading = true; axios({ From 70dc6282c6bc722ddb20f57345554cb876437724 Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Wed, 3 Jun 2020 17:35:11 +0800 Subject: [PATCH 06/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 4453cc4..079d0da 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -352,7 +352,7 @@ export default { me.welcome.params.push({ attr: 2, defaultVal: res.data.results.mediaId, - description: res.data.results.mediaId, + description: res.data.results.localPath, isRequired: 1, key: "image", limitLower: null, From 4b1ca750fca8947fe39b06a4bf48760efa7b4c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 18:42:50 +0800 Subject: [PATCH 07/13] 1 --- src/pages/activity/addActivity.vue | 193 ++++++++---------- src/pages/shop/IncreaseWelcomeEdit.vue | 270 +++++++++++++------------ 2 files changed, 225 insertions(+), 238 deletions(-) diff --git a/src/pages/activity/addActivity.vue b/src/pages/activity/addActivity.vue index 18937dd..c99ad5e 100644 --- a/src/pages/activity/addActivity.vue +++ b/src/pages/activity/addActivity.vue @@ -1,109 +1,89 @@ @@ -112,7 +92,7 @@ import ActivityManager from "../../services/ActivityManager/ActivityManager"; import axios from "axios"; export default { name: "addActivity", - data () { + data() { return { dispalyModal: false, currentStep: 0, @@ -122,25 +102,26 @@ export default { loading: true, ruleValidate: { name: [ - { required: true, message: "活动名称不能为空", trigger: "blur" }, + { required: true, message: "活动名称不能为空", trigger: "blur" } ], description: [ - { required: true, message: "活动描述不能为空", trigger: "blur" }, + { required: true, message: "活动描述不能为空", trigger: "blur" } ], appId: [{ required: true, message: "appId不能为空", trigger: "blur" }], uri: [{ required: true, message: "URI不能为空", trigger: "blur" }], + welcome: [{ required: true, message: "请输入欢迎语", trigger: "blur" }] // uploadImg: [ // { required: true, message: '请上传活动图片', trigger: 'blur' } // ] - }, + } }; }, props: { addActivityModal: Boolean, - id: String, + id: String }, watch: { - addActivityModal (val) { + addActivityModal(val) { this.dispalyModal = val; if (val === true && this.id) { this.getActivityData(); @@ -162,16 +143,16 @@ export default { limitLower: "", limitUpper: "", name: "", - type: 0, - }, + type: 0 + } ]; } this.$forceUpdate(); - }, + } }, - mounted () { }, + mounted() {}, methods: { - addActivityInput () { + addActivityInput() { let params = [...this.formValidate.params]; params.push({ defaultVal: "", @@ -182,12 +163,12 @@ export default { limitLower: "", limitUpper: "", name: "", - type: 0, + type: 0 }); this.$set(this.formValidate, "params", params); this.$forceUpdate(); }, - delActivityInput (index) { + delActivityInput(index) { if (this.formValidate.params.length <= 1) { this.$Message.error("至少需要填写一个活动类型!"); return; @@ -195,22 +176,22 @@ export default { this.formValidate.params.splice(index, 1); this.$forceUpdate(); }, - cancel () { + cancel() { this.$emit("dispalyAddActivityModal", false, false); }, - getActivityData () { + getActivityData() { let that = this; let data = { - id: that.id, + id: that.id }; - ActivityManager.getActivityInfo(data, function (data) { + ActivityManager.getActivityInfo(data, function(data) { that.formValidate = data.data.results; }); }, - uploadImgSuccess (res, file) { + uploadImgSuccess(res, file) { this.imageName = file.name; }, - handleBeforeUpload (res) { + handleBeforeUpload(res) { const me = this; let data = new FormData(); data.append("file", res); @@ -219,9 +200,9 @@ export default { url: "/upload", data: data, headers: { - "Content-Type": "multipart/form-data", - }, - }).then(function (res) { + "Content-Type": "multipart/form-data" + } + }).then(function(res) { if (res.data.success) { // me.formValidate.logo = res.data.results; me.$set(me.formValidate, "logo", res.data.results.localPath); @@ -230,7 +211,7 @@ export default { }); return false; }, - save () { + save() { let that = this; that.modal_loading = true; let i = 0; @@ -264,13 +245,13 @@ export default { } } } - this.$refs["formValidate"].validate((valid) => { + this.$refs["formValidate"].validate(valid => { if (valid) { // param = JSON.stringify(param) let data = { ...that.formValidate, isGetActivityInfo: true }; data.categoryId = 0; data.categoryCode = "promotion"; - ActivityManager.addOreditActivity(data, function (data) { + ActivityManager.addOreditActivity(data, function(data) { that.addActivityModal = false; that.formValidate = {}; that.modal_loading = false; @@ -281,8 +262,8 @@ export default { that.$Message.error("表单验证失败!"); } }); - }, - }, + } + } }; diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 079d0da..1543405 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -2,160 +2,140 @@
-
- - + + + - +
- APPID {{ index + 1 }} - - + APPID {{ index + 1 }} + + - URI {{ index + 1 }} - - + URI {{ index + 1 }} + + + + MediaId{{ index + 1 }} + +
- {{ item.name }}{{ index + 1 }} + {{ item.name }}{{ index + 1 }} - +
- +
- + - {{ welcome.stores[0].name }}等{{ welcome.stores.length }}家店铺 - + {{ welcome.stores[0].name }}等{{ welcome.stores.length }}家店铺 + - +
- + - +
- +
- + - +
- -
- - + + + +
- - + +
- -
- - + + + + - - + + + +
+ +
+
- - + +
- +
@@ -174,7 +154,7 @@ const validateUrl = (rule, value, callback) => { } }; export default { - data () { + data() { return { showStoreCheck: false, showWeb: false, @@ -212,12 +192,12 @@ export default { appid: [{ required: true, message: "请输入url", trigger: "blur" }], uri: [{ required: true, message: "请输入url", trigger: "blur" }] }, - miniForm: { appid: "", uri: "" } + miniForm: { appid: "", uri: "", limitLower: "", limitUpper: "" } }; }, watch: { welcome: { - handler () { + handler() { store.commit("SET_useData", { ...store.getters.useData, ...this.welcome @@ -227,7 +207,7 @@ export default { deep: true } }, - created () { + created() { this.id = this.$route.query.id; // store.commit("SET_useData", { ...store.getters.useData, ...this.welcome }); console.log(this.$route); @@ -239,14 +219,14 @@ export default { selectStoreStep }, methods: { - doShow () { + doShow() { this.showStoreCheck = false; this.welcome = store.getters.useData; }, - onExceededSize () { + onExceededSize() { console.log("失败"); }, - getDetail (instanceId) { + getDetail(instanceId) { let _this = this; ActivityManager.instanceDetail( { @@ -261,7 +241,7 @@ export default { } ); }, - showStores () { + showStores() { console.log({ ...store.getters.useData, ...this.welcome }); store.commit("SET_useData", { ...this.welcome, @@ -269,25 +249,26 @@ export default { }); this.showStoreCheck = true; }, - uploadImgSuccess (res, file) { }, - cancelWeb () { + uploadImgSuccess(res, file) {}, + miniUploadImgSuccess(res, file) {}, + cancelWeb() { this.showWeb = false; }, - doShowWeb () { + doShowWeb() { this.showWeb = true; this.webForm = { url: "" }; }, - doShowMini () { + doShowMini() { this.showMini = true; this.miniForm = { appid: "", uri: "" }; }, - cancelMini () { + cancelMini() { this.showMini = false; }, - okWeb () { + okWeb() { let _this = this; this.$refs["webForm"].validate(valid => { if (valid) { @@ -307,7 +288,7 @@ export default { } }); }, - okMini () { + okMini() { let _this = this; this.$refs["miniForm"].validate(valid => { if (valid) { @@ -317,8 +298,8 @@ export default { description: this.miniForm.uri, isRequired: 1, key: "mini", - limitLower: null, - limitUpper: null, + limitLower: this.miniForm.limitLower, + limitUpper: this.miniForm.limitUpper, name: "小程序消息", type: 3 }); @@ -327,15 +308,40 @@ export default { } }); }, - delActivityInput (index) { + delActivityInput(index) { this.welcome.params.splice(index, 1); 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; let data = new FormData(); data.append("file", res); - data.append("needMediaId", "true") + data.append("needMediaId", "true"); console.log(data); this.imageUploading = true; axios({ @@ -345,7 +351,7 @@ export default { headers: { "Content-Type": "multipart/form-data" } - }).then(function (res) { + }).then(function(res) { me.imageUploading = false; if (res.data.success) { // me.formValidate.logo = res.data.results; @@ -365,7 +371,7 @@ export default { }); return false; }, - submit () { + submit() { let _this = this; if (this.welcome.stores.length <= 0) { _this.$Message.error("请至少选择一个店铺"); From 36fadd864484bf8e45bcd1efc2c9cae613d3fde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 18:52:58 +0800 Subject: [PATCH 08/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 41 +++++++++++++++----------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 1543405..7824745 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -112,23 +112,30 @@ - -
- -
-
+ + +
+ 请上传图片 + +
+
+
From ee69ee4f789965ab9b2f5d1e57638573d9c399d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 23:20:42 +0800 Subject: [PATCH 09/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 7824745..ef6b58c 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -106,6 +106,9 @@
+ + + @@ -197,9 +200,10 @@ export default { webForm: { url: "" }, miniFormRules: { appid: [{ required: true, message: "请输入url", trigger: "blur" }], - uri: [{ required: true, message: "请输入url", trigger: "blur" }] + uri: [{ required: true, message: "请输入url", trigger: "blur" }], + key: [{ required: true, message: "请输入url", trigger: "blur" }] }, - miniForm: { appid: "", uri: "", limitLower: "", limitUpper: "" } + miniForm: { appid: "", uri: "", limitLower: "", limitUpper: "", key: "" } }; }, watch: { From 23c2b5cba0970ec1444e86f6a4f54b65db496fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 23:25:28 +0800 Subject: [PATCH 10/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 35 ++++++++++++++++++++------ 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index ef6b58c..220c786 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -20,19 +20,33 @@ :key="index" >
+ 标题 {{ index + 1 }} + + + APPID {{ index + 1 }} URI {{ index + 1 }} - + MediaId{{ index + 1 }} - +
+
+ 标题 {{ index + 1 }} + + + + URL {{ index + 1 }} + + + +
{{ item.name }}{{ index + 1 }} @@ -95,6 +109,9 @@ + + + @@ -195,9 +212,10 @@ export default { url: [ { required: true, message: "请输入url", trigger: "blur" }, { validator: validateUrl, trigger: "blur" } - ] + ], + title: [{ required: true, message: "请输入url", trigger: "blur" }] }, - webForm: { url: "" }, + webForm: { url: "", title: "" }, miniFormRules: { appid: [{ required: true, message: "请输入url", trigger: "blur" }], uri: [{ required: true, message: "请输入url", trigger: "blur" }], @@ -267,13 +285,16 @@ export default { }, doShowWeb() { this.showWeb = true; - this.webForm = { url: "" }; + this.webForm = { url: "", title: "" }; }, doShowMini() { this.showMini = true; this.miniForm = { appid: "", - uri: "" + uri: "", + limitLower: "", + limitUpper: "", + key: "" }; }, cancelMini() { @@ -286,7 +307,7 @@ export default { _this.welcome.params.push({ attr: 2, defaultVal: this.webForm.url, - description: this.webForm.url, + description: this.webForm.title, isRequired: 1, key: "url", limitLower: null, From 260c58260390e8191bf9c78312c327a230e4a212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 23:27:16 +0800 Subject: [PATCH 11/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 220c786..51142c2 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -21,11 +21,11 @@ >
标题 {{ index + 1 }} - + APPID {{ index + 1 }} - + URI {{ index + 1 }} From 55a8ebc1194405bedf272e67e415d95d3056ada6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 23:28:26 +0800 Subject: [PATCH 12/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 51142c2..240d262 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -329,7 +329,7 @@ export default { defaultVal: this.miniForm.appid, description: this.miniForm.uri, isRequired: 1, - key: "mini", + key: this.miniForm.key, limitLower: this.miniForm.limitLower, limitUpper: this.miniForm.limitUpper, name: "小程序消息", From 70a5d144d2b77e072e7c1422f57681b323f2d893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Wed, 3 Jun 2020 23:30:27 +0800 Subject: [PATCH 13/13] 1 --- src/pages/shop/IncreaseWelcomeEdit.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue index 240d262..4ae5617 100644 --- a/src/pages/shop/IncreaseWelcomeEdit.vue +++ b/src/pages/shop/IncreaseWelcomeEdit.vue @@ -213,13 +213,13 @@ export default { { required: true, message: "请输入url", trigger: "blur" }, { validator: validateUrl, trigger: "blur" } ], - title: [{ required: true, message: "请输入url", trigger: "blur" }] + title: [{ required: true, message: "请输入标题", trigger: "blur" }] }, webForm: { url: "", title: "" }, miniFormRules: { - appid: [{ required: true, message: "请输入url", trigger: "blur" }], - uri: [{ required: true, message: "请输入url", trigger: "blur" }], - key: [{ required: true, message: "请输入url", trigger: "blur" }] + appid: [{ required: true, message: "请输入appid", trigger: "blur" }], + uri: [{ required: true, message: "请输入uri", trigger: "blur" }], + key: [{ required: true, message: "请输入标题", trigger: "blur" }] }, miniForm: { appid: "", uri: "", limitLower: "", limitUpper: "", key: "" } };