diff --git a/src/apps/AppBuilding/components/searchMap.vue b/src/apps/AppBuilding/components/searchMap.vue index 155013f7..1c7dc1de 100644 --- a/src/apps/AppBuilding/components/searchMap.vue +++ b/src/apps/AppBuilding/components/searchMap.vue @@ -1,21 +1,21 @@ @@ -52,6 +56,8 @@ export default { fileList: [], numInfo: {}, params: {}, + editText: '编辑', + delIds: [] } }, computed: { ...mapState(['user']) }, @@ -66,6 +72,46 @@ export default { }, methods: { + delConfirm() { + if(!this.delIds.length) { + return this.$u.toast('请先选中需要删除的照片') + } + var id = this.delIds.join(',') + this.$confirm('确定删除这些相片?').then(() => { + this.$http.post(`/app/appvillagepicturealbum/delete?ids=${id}`).then((res) => { + if (res.code == 0) { + this.$u.toast('删除成功!') + this.list = [] + this.getList() + this.getStatistic() + this.editClick('取消') + uni.$emit('updateList') + } + }) + }) + }, + editClick(text) { + this.editText = text == '编辑' ? '取消' : '编辑' + this.delIds = [] + if(text == '取消' && this.delIds.length) { + this.list = [] + this.getList() + } + }, + checkImg(row, index, indexs) { + this.list[index].list[indexs].isCheked = true + this.delIds.push(row.id) + this.$forceUpdate() + }, + delSelect(row, index, indexs) { + this.list[index].list[indexs].isCheked = false + this.delIds.map((item, i) => { + if(item == row.id) { + this.delIds.splice(i, 1) + } + }) + this.$forceUpdate() + }, previewImage(images, img) { uni.previewImage({ urls: images.map(v => v.url), @@ -80,12 +126,17 @@ export default { } }).then(res => { if (res.code == 0) { - this.list = Object.keys(res.data).map(v => { + this.list = Object.keys(res.data).map(v => { return { name: v, list: res.data[v] } }) + this.list.map((item) => { + item.list.map((e) => { + e.isCheked = false + }) + }) } }) }, @@ -228,10 +279,23 @@ export default { font-family: PingFangSC-Semibold, PingFang SC; font-weight: 600; color: #333; + position: relative; span{ display: inline-block; margin-right: 16px; } + .edit-btn{ + display: inline-block; + color: #26f; + font-weight: 400; + width: 200px; + text-align: right; + line-height: 88px; + position: absolute; + font-size: 32px; + right: 18px; + top: 20px; + } } .img-list{ overflow: hidden; @@ -256,6 +320,20 @@ export default { color: #FFF; line-height: 36px; } + .del-icon{ + position: absolute; + right: 0; + top: 0; + } + .cir-icon{ + width: 40px; + height: 40px; + border-radius: 50%; + border: 4px solid #ccc; + position: absolute; + right: 0; + top: 0; + } } } .footer-btn{ diff --git a/src/apps/AppMailList/myAddList.vue b/src/apps/AppMailList/myAddList.vue index cd8b1be3..82b955ec 100644 --- a/src/apps/AppMailList/myAddList.vue +++ b/src/apps/AppMailList/myAddList.vue @@ -9,13 +9,13 @@
- - + +
- +

您还未添加便民通讯录
点击新增按钮试试吧

diff --git a/src/apps/AppMarryAndDie/Add.vue b/src/apps/AppMarryAndDie/Add.vue index 78ecd89f..eef95d38 100644 --- a/src/apps/AppMarryAndDie/Add.vue +++ b/src/apps/AppMarryAndDie/Add.vue @@ -26,7 +26,7 @@
- + diff --git a/src/apps/AppMarryAndDie/AppMarryAndDie.vue b/src/apps/AppMarryAndDie/AppMarryAndDie.vue index 8664ddee..a78f63a8 100644 --- a/src/apps/AppMarryAndDie/AppMarryAndDie.vue +++ b/src/apps/AppMarryAndDie/AppMarryAndDie.vue @@ -10,7 +10,7 @@ 查看全部活动和本月新增 - +
@@ -19,7 +19,7 @@ 查看全部参与操办信息和本月新增
- +
@@ -28,7 +28,7 @@ 查看全部婚礼和本月新增
- +
@@ -37,7 +37,7 @@ 查看全部丧礼和本月新增
- + diff --git a/src/apps/AppOnlineAnswer/AppOnlineAnswer.vue b/src/apps/AppOnlineAnswer/AppOnlineAnswer.vue index d08f8f7c..7143d90a 100644 --- a/src/apps/AppOnlineAnswer/AppOnlineAnswer.vue +++ b/src/apps/AppOnlineAnswer/AppOnlineAnswer.vue @@ -1,7 +1,7 @@