From 0e53e350f4e17dc1843a6b0b3c2e257d29ec282c Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 31 May 2022 17:31:54 +0800 Subject: [PATCH] 29973 --- .../components/report/RenderContent.vue | 78 ++++++++++++------- 1 file changed, 50 insertions(+), 28 deletions(-) diff --git a/src/saas/AppCountryAlbum/components/report/RenderContent.vue b/src/saas/AppCountryAlbum/components/report/RenderContent.vue index b935822b..2bee4977 100644 --- a/src/saas/AppCountryAlbum/components/report/RenderContent.vue +++ b/src/saas/AppCountryAlbum/components/report/RenderContent.vue @@ -9,28 +9,26 @@

{{ item.value }}

- -
-
-

{{ type === 'text' ? '编辑文本' : '上传拼图汇报' }}

- +
+
+

{{ type === 'text' ? '编辑文本' : '编辑图片' }}

+ +
+
+
+ + 删除
-
-
- - 删除 -
-
- - 修改 -
-
- - 剪裁 -
+
+ + 修改 +
+
+ + 剪裁
- +
@@ -75,21 +73,26 @@ }, remove () { - this.$emit('onLongpress', { - type: this.type, - value: this.value, - index: this.currIndex, - action: 'remove' - }) + this.$confirm('确定删除该条数据?').then(() => { + this.$emit('onLongpress', { + type: this.type, + value: this.value, + index: this.currIndex, + action: 'remove' + }) - this.currIndex = -1 - this.isShow = false + this.currIndex = -1 + this.isShow = false + }).catch(() => { + }) }, toClipping () { uni.navigateTo({ url: `./Clipping?url=${encodeURIComponent(this.value)}` }) + + this.isShow = false }, onLongpress (item, index) { @@ -117,6 +120,17 @@ } .rich-bottom { + position: fixed; + bottom: 0; + left: 0; + z-index: 11; + width: 100%; + transform: translateY(100%); + border-radius: 32px 32px 0px 0px; + transition: all ease 0.4s; + overflow: hidden; + background: #fff; + .top { display: flex; position: relative; @@ -139,12 +153,16 @@ height: 32px; transform: translateY(-50%); } + + &.active { + transform: translateY(0); + } } .btns { display: flex; align-items: center; - height: 216px; + height: 246px; div { display: flex; @@ -164,6 +182,10 @@ } } } + + &.active { + transform: translateY(0); + } } .rich-item {