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
db468fbd
Commit
db468fbd
authored
Oct 07, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告组件图片渲染优化
parent
f31c9f21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
static/nativeComponents/Notice/index.wxml
+2
-2
static/nativeComponents/Notice/index.wxss
+3
-0
static/nativeComponents/PhotoGallery/index.wxss
+1
-1
No files found.
static/nativeComponents/Notice/index.wxml
View file @
db468fbd
...
...
@@ -5,10 +5,10 @@
<view class="container" bindtap="onclickHandle" data-index="{{index}}" style="width: 100%;height:{{CommonHeight}}">
<block wx:if="{{item.imageUrl||datas.componentData.singleImage}}">
<view wx:if="{{datas.componentData.styleType===1}}">
<image class="notice-icon" mode="widthFix" style="width:{{datas.componentData.imageWidth}}px !important;
height:{{datas.componentData.imageWidth}}px;
" src="{{item.imageUrl}}" />
<image class="notice-icon" mode="widthFix" style="width:{{datas.componentData.imageWidth}}px !important;" src="{{item.imageUrl}}" />
</view>
<view wx:else>
<image class="notice-icon"
style="width:{{datas.componentData.imageWidth}}px !important;height:{{datas.componentData.imageWidth}}px
;" src="{{singleImg}}" />
<image class="notice-icon"
mode="widthFix" style="width:{{datas.componentData.imageWidth}}px !important
;" src="{{singleImg}}" />
</view>
</block>
<view class="notice-content" style="font-size:{{datas.componentData.fontSize}}px;color:{{datas.componentData.fontColor}}">
...
...
static/nativeComponents/Notice/index.wxss
View file @
db468fbd
...
...
@@ -2,6 +2,9 @@
.notice {
position: relative;
}
.notice image {
height: auto;
}
.notice .container {
display: flex;
...
...
static/nativeComponents/PhotoGallery/index.wxss
View file @
db468fbd
/* static/nativeComponents/PhotoGallery/index.wxss */
@import "/static/font/common_icon.wxss";
image{
.photo-gallery
image{
width: 100%;
height: auto;
}
...
...
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