Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b403a4dc
authored
Dec 07, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:添加背景关闭
1 parent
28574328
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
pages/tab/index/components/indexProduct/indexProduct.js
pages/tab/index/components/indexProduct/indexProduct.scss
pages/tab/index/components/indexProduct/indexProduct.wxml
pages/tab/index/components/indexProduct/indexProduct.js
View file @
b403a4d
...
...
@@ -159,8 +159,11 @@ Component({
}
wx
.
$router
.
go
(
"/packagesList/applyProd/pages/apply"
,
obj
);
},
onClickHide
()
{
this
.
setData
({
overlayShow
:
false
});
onClickHide
(
e
)
{
let
{
type
}
=
e
.
target
.
dataset
if
(
type
==
'close'
){
this
.
setData
({
overlayShow
:
false
});
}
},
//视频 海报切换
...
...
pages/tab/index/components/indexProduct/indexProduct.scss
View file @
b403a4d
...
...
@@ -287,6 +287,7 @@
}
//图片预览
.overlay-wrap
{
position
:
absolute
;
top
:
52%
;
...
...
pages/tab/index/components/indexProduct/indexProduct.wxml
View file @
b403a4d
...
...
@@ -59,15 +59,14 @@
</view>
</view>
<!-- 图片预览弹窗 -->
<van-overlay show="{{ overlayShow }}" z-index="100">
<van-overlay show="{{ overlayShow }}" z-index="100"
data-type="close" bindtap="onClickHide"
>
<view class="overlay-wrap">
<image class="overlay-img" webp show-menu-by-longpress src="{{checkPosterItem.src}}?v={{img_version}}" />
<view class="overlay-msg">
<image class="hand" src="{{IMG_URL}}index/hand.png?v={{img_version}}"/>
<view class="forward">长按图片转发</view>
</view>
<image class="img-close" bindtap="onClickHide" src="{{IMG_URL}}index/img-close.png?v={{img_version}}"/>
<image class="img-close" data-type="close" bindtap="onClickHide" src="{{IMG_URL}}index/img-close.png?v={{img_version}}"/>
</view>
</van-overlay>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment