Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
82e4f016
Commit
82e4f016
authored
Mar 22, 2023
by
HouTiZhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹窗组件优化
parent
94791ce1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
static/nativeComponents/PopUp/index.wxml
+4
-4
static/nativeComponents/PopUp/index.wxss
+5
-1
No files found.
static/nativeComponents/PopUp/index.wxml
View file @
82e4f016
<!--static/nativeComponents/PopUp/index.wxml-->
<view class="pop-up" wx:if="{{domainShow}}">
<view class="shade"></view>
<view class="content">
<image
src="{{img}}" bindtap="onclickHandle" mode="widthFix
"></image>
<view class="content"
style="width:{{datas.componentData.imgWidth ? datas.componentData.imgWidth + '%' : '80%'}};height:{{datas.componentData.imgHeight ? datas.componentData.imgHeight + '%' : 'auto'}}"
>
<image
mode="{{datas.componentData.objectFit == 'cover' ? 'aspectFill' : datas.componentData.objectFit == 'contain' ? 'aspectFit' : 'widthFix'}}" src="{{img}}" bindtap="onclickHandle
"></image>
<view class="back {{datas.componentData.backButtonSite=='bottom'?'back-bottom':'back-top'}}" bindtap="backHandle">
<em></em>
<em></em>
<em></em>
<em></em>
</view>
</view>
</view>
static/nativeComponents/PopUp/index.wxss
View file @
82e4f016
...
...
@@ -21,9 +21,13 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
justify-content: center;
}
.content image{
width: 100%
width: 100%;
height: 100%;
}
.content .back{
width: 48rpx;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment