From f6c3cf7af9643bedace4b141fd04d89bf85e893a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Fri, 18 Nov 2022 09:21:21 +0800 Subject: [PATCH] up --- .env.development | 4 +-- src/views/productService/clubProduct.vue | 2 +- .../common/addCommonServiceProduct.vue | 25 +++++++++++-------- .../components/confinement/addClubPic.vue | 14 +++++------ .../components/confinement/addClubProduct.vue | 2 +- .../confinement/addConfinementClub.vue | 2 +- .../components/confinement/addProductPic.vue | 10 ++++---- src/views/productService/confinementClub.vue | 3 ++- 8 files changed, 33 insertions(+), 29 deletions(-) diff --git a/.env.development b/.env.development index 0df4943..31fed3c 100644 --- a/.env.development +++ b/.env.development @@ -2,5 +2,5 @@ ENV = 'development' # base api -#VUE_APP_BASE_API = http://yybtest.ali251.langye.net/ -VUE_APP_BASE_API = https://yunyubang.ali251.langye.net/ +VUE_APP_BASE_API = http://yybtest.ali251.langye.net/ +#VUE_APP_BASE_API = https://yunyubang.ali251.langye.net/ diff --git a/src/views/productService/clubProduct.vue b/src/views/productService/clubProduct.vue index 902807f..62e1ff2 100644 --- a/src/views/productService/clubProduct.vue +++ b/src/views/productService/clubProduct.vue @@ -73,7 +73,7 @@
- +
diff --git a/src/views/productService/components/common/addCommonServiceProduct.vue b/src/views/productService/components/common/addCommonServiceProduct.vue index 5a56e4e..c03edaa 100644 --- a/src/views/productService/components/common/addCommonServiceProduct.vue +++ b/src/views/productService/components/common/addCommonServiceProduct.vue @@ -347,15 +347,14 @@ }, pichandleRemove(file, fileList) { //console.log(file, fileList); + this.picfileList = fileList; }, + pichandleBeforeRemove(file, fileList) {}, pichandlePreview(file) { console.log(file); }, pichandleSuccess(response, file, fileList) { - this.picfileList.push(response.url) - }, - pichandleBeforeRemove(file) { - this.picfileList.splice(this.picfileList.indexOf(file.response.id), 1) + this.picfileList = fileList; }, addListCombo() { @@ -464,11 +463,13 @@ coverPicture: res?.cover_picture, timeLimit: res?.time_limit?.split(','), content: res?.content, - video: res?.video, - set_list: [], - picture_list: [] + video: res?.video, + set_list: [], + picture_list: [] } - this.$refs['tinymce'].setContent(this.form.content) + this.$refs['tinymce'].setContent(this.form.content); + this.picfileList = this.getPic(); + this.set_list = this.getCombo(); }, loadMoreClub() { @@ -506,7 +507,11 @@ let list = []; - + this.picfileList.map(item => { + list.push({ + picture: item.response.url,type:0 + }); + }) let _form = { name: this.form.name, @@ -556,8 +561,6 @@ isShow(newVal) { if (newVal) { this.getClubs() - this.getEquips() - this.getRoomTypes() if (this.type === 'editor') { this.getDetail() diff --git a/src/views/productService/components/confinement/addClubPic.vue b/src/views/productService/components/confinement/addClubPic.vue index 2a3b2e9..e263b6b 100644 --- a/src/views/productService/components/confinement/addClubPic.vue +++ b/src/views/productService/components/confinement/addClubPic.vue @@ -1,6 +1,6 @@