From 39370ea641f07f321cb9c1b54b912cc9b7995a60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com>
Date: Sun, 14 Jun 2020 22:37:35 +0800
Subject: [PATCH] 1
---
src/pages/recruit/BulletinIndex.vue | 363 +++++++++++++------------
src/pages/shop/IncreaseWelcomeEdit.vue | 311 +++++++++------------
vue.config.js | 2 +-
3 files changed, 322 insertions(+), 354 deletions(-)
diff --git a/src/pages/recruit/BulletinIndex.vue b/src/pages/recruit/BulletinIndex.vue
index 12028a5..109d4f0 100644
--- a/src/pages/recruit/BulletinIndex.vue
+++ b/src/pages/recruit/BulletinIndex.vue
@@ -1,29 +1,36 @@
+
-
- 招募令
-
-
- 便于门店进行推广员招募
-
+ 招募令
+ 便于门店进行推广员招募
- 使用范围:{{ recruit.organizations.length || 0 }}家零售公司,{{
- recruit.stores.length || 0
- }}家店铺
- 修改
+
+ 使用范围:{{ recruit.organizations.length || 0 }}家零售公司,{{
+ recruit.stores.length || 0
+ }}家店铺
+
+ 修改
-
+
开启
关闭
@@ -32,55 +39,47 @@
招募海报
-
![]()
+
-
-
+
+
-
-
+
+
-
+
diff --git a/src/pages/shop/IncreaseWelcomeEdit.vue b/src/pages/shop/IncreaseWelcomeEdit.vue
index 9b8f4d7..a3cb0eb 100644
--- a/src/pages/shop/IncreaseWelcomeEdit.vue
+++ b/src/pages/shop/IncreaseWelcomeEdit.vue
@@ -2,228 +2,178 @@
-
-
+
-
+
-
+
-
+
-
+
-
-
@@ -242,7 +192,7 @@ const validateUrl = (rule, value, callback) => {
}
};
export default {
- data () {
+ data() {
return {
showStoreCheck: false,
showWeb: false,
@@ -289,7 +239,7 @@ export default {
},
watch: {
welcome: {
- handler () {
+ handler() {
store.commit("SET_useData", {
...store.getters.useData,
...this.welcome
@@ -299,7 +249,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);
@@ -315,17 +265,18 @@ export default {
selectStoreStep
},
methods: {
- paramFilter () {
+ paramFilter() {
return this.welcome.params.length < 1;
},
- doShow () {
+ doShow() {
this.showStoreCheck = false;
this.welcome = store.getters.useData;
+ this.submit();
},
- onExceededSize () {
+ onExceededSize() {
console.log("失败");
},
- getDetail (instanceId) {
+ getDetail(instanceId) {
let _this = this;
ActivityManager.instanceDetail(
{
@@ -340,7 +291,7 @@ export default {
}
);
},
- showStores () {
+ showStores() {
console.log({ ...store.getters.useData, ...this.welcome });
store.commit("SET_useData", {
...this.welcome,
@@ -348,16 +299,16 @@ export default {
});
this.showStoreCheck = true;
},
- uploadImgSuccess (res, file) { },
- miniUploadImgSuccess (res, file) { },
- cancelWeb () {
+ uploadImgSuccess(res, file) {},
+ miniUploadImgSuccess(res, file) {},
+ cancelWeb() {
this.showWeb = false;
},
- doShowWeb () {
+ doShowWeb() {
this.showWeb = true;
this.webForm = { url: "", title: "" };
},
- doShowMini () {
+ doShowMini() {
this.showMini = true;
this.miniForm = {
appid: "",
@@ -367,10 +318,10 @@ export default {
key: ""
};
},
- cancelMini () {
+ cancelMini() {
this.showMini = false;
},
- okWeb () {
+ okWeb() {
let _this = this;
this.$refs["webForm"].validate(valid => {
if (valid) {
@@ -390,7 +341,7 @@ export default {
}
});
},
- okMini () {
+ okMini() {
let _this = this;
this.$refs["miniForm"].validate(valid => {
if (valid) {
@@ -410,11 +361,11 @@ export default {
}
});
},
- delActivityInput (index) {
+ delActivityInput(index) {
this.welcome.params.splice(index, 1);
this.$forceUpdate();
},
- handleBeforeUploadMini (res) {
+ handleBeforeUploadMini(res) {
const me = this;
let data = new FormData();
data.append("file", res);
@@ -428,7 +379,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;
@@ -439,7 +390,7 @@ export default {
});
return false;
},
- handleBeforeUpload (res) {
+ handleBeforeUpload(res) {
const me = this;
let data = new FormData();
data.append("file", res);
@@ -453,7 +404,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;
@@ -473,7 +424,7 @@ export default {
});
return false;
},
- submit () {
+ submit() {
let _this = this;
_this.loading = true;
if (this.welcome.stores.length <= 0) {
diff --git a/vue.config.js b/vue.config.js
index 9ec15e8..d3045a2 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -30,7 +30,7 @@ module.exports = {
/* 使用代理 后台接口路径 */
// proxy: 'http://192.168.1.123:8312/'
// proxy: 'http://192.168.31.177:8312/'
- proxy: "http://111.231.218.44:8080/",
+ proxy: "http://localhost:8080/",
// proxy: 'http://jdxdev.vipgz4.idcfengye.com/'
},
};