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
603d4eb5
Commit
603d4eb5
authored
Dec 09, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
2c17abeb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
static/nativeComponents/Banner/index.wxml
+3
-3
static/nativeComponents/Banner/index.wxss
+1
-0
static/nativeComponents/GoodsList/GoodsItem/index.wxml
+1
-1
No files found.
static/nativeComponents/Banner/index.wxml
View file @
603d4eb5
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
duration="{{duration}}"
duration="{{duration}}"
circular="true"
circular="true"
bindchange="bannerChange"
bindchange="bannerChange"
style="height:{{bannerHeight}}"
style="height:{{bannerHeight}}
;border-radius:{{datas.componentData.borderRadius/3}}em
"
>
>
<block wx:for="{{newArr}}" wx:key="index">
<block wx:for="{{newArr}}" wx:key="index">
<swiper-item data-item="{{item}}" bindtap="onClick">
<swiper-item data-item="{{item}}" bindtap="onClick">
<view class="swiper-item">
<view class="swiper-item">
<image
<image
src="{{item.imageUrl}}"
src="{{item.imageUrl}}"
style="width:100%;
border-radius:{{datas.componentData.borderRadius*2}}rpx
"
style="width:100%;"
mode="
widthFix
"
mode="
aspectFill
"
bindload="loadImg"
bindload="loadImg"
class="bannerImgItem"
class="bannerImgItem"
></image>
></image>
...
...
static/nativeComponents/Banner/index.wxss
View file @
603d4eb5
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
}
}
.swiper{
.swiper{
width: 100%;
width: 100%;
overflow: hidden;
/* height: calc(100vw*9/16); */
/* height: calc(100vw*9/16); */
}
}
.onterDot{
.onterDot{
...
...
static/nativeComponents/GoodsList/GoodsItem/index.wxml
View file @
603d4eb5
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<view
<view
class="name"
class="name"
wx:if="{{datas.componentData['nameShow']}}"
wx:if="{{datas.componentData['nameShow']}}"
style="color:{{datas.componentData['nameColor']}};font-weight:{{datas.componentData['nameFontWeight']}};font-size:{{datas.componentData['nameFontSize']}}em;
height:2.8em;
"
style="color:{{datas.componentData['nameColor']}};font-weight:{{datas.componentData['nameFontWeight']}};font-size:{{datas.componentData['nameFontSize']}}em;"
>
>
{{items!=null?items['productName']:'名称'}}
{{items!=null?items['productName']:'名称'}}
</view>
</view>
...
...
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