diff --git a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue index 1db9c9b7..ea7f1f27 100644 --- a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue +++ b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue @@ -415,7 +415,7 @@ export default { sizeType: ['compressed'], sourceType: ['album'], success: (res) => { - console.log(res); + // console.log(res); let count = this.files?.length + (res.tempFiles?.length || res.tempFile ? 1 : 0) if (count > 9) { return this.$u.toast(`不能超过9个`) @@ -535,6 +535,7 @@ export default { }, ] this.form.contents.push(...firstContent) + // 图片 const picUrl = this.files.filter(i=> ['.jpg','.jpeg','.png'].indexOf(this.getExtension(i.name)) !== -1).map(e=>{ return { @@ -739,9 +740,15 @@ export default { }) }) uni.$on("fodder",()=> { - this.checkedList = uni.getStorageSync('checkedList') + this.checkedList = uni.getStorageSync('checkedList').filter(i => i.type != 0) }) - this.checkedList = uni.getStorageSync('checkedList') + this.checkedList = uni.getStorageSync('checkedList')?.filter(i=> i.type != 0) || [] + let arr = uni.getStorageSync('checkedList')?.filter(e => e.type == 0) || [] + if (arr.length) { + let arrStr = arr.map(i => i.content) + this.content = this.content.concat(',', arrStr.toString()) + uni.setStorageSync('checkedList', this.checkedList) + } } } diff --git a/src/project/huizhili/AppCooperationPropaganda/fodderList.vue b/src/project/huizhili/AppCooperationPropaganda/fodderList.vue index 7e28de4c..9efcb647 100644 --- a/src/project/huizhili/AppCooperationPropaganda/fodderList.vue +++ b/src/project/huizhili/AppCooperationPropaganda/fodderList.vue @@ -1,8 +1,8 @@