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
d7247042
Commit
d7247042
authored
Nov 07, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表组件-轮播高度
parent
47ffe377
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
static/nativeComponents/GoodsList/index.js
+7
-1
static/nativeComponents/GoodsList/index.wxml
+1
-1
No files found.
static/nativeComponents/GoodsList/index.js
View file @
d7247042
...
@@ -69,7 +69,13 @@ const componentOptions = {
...
@@ -69,7 +69,13 @@ const componentOptions = {
selectScreen
:
false
,
// 筛选选中状态
selectScreen
:
false
,
// 筛选选中状态
clientHeight
:
0
,
//窗口高度
clientHeight
:
0
,
//窗口高度
swipeInfo
:
[],
swipeInfo
:
[],
currentSwiperIndex
:
0
currentSwiperIndex
:
0
,
swiperTypeHeightList
:
{
1
:
"510px"
,
2
:
"300px"
,
3
:
"256px"
,
4
:
"220px"
,
}
},
},
// 数据监听器
// 数据监听器
observers
:
{},
observers
:
{},
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
d7247042
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
</view>
</view>
<!-- 轮播滑动 -->
<!-- 轮播滑动 -->
<view wx:if="{{datas.componentData.style === 'swipe'}}" style="position:relative;">
<view wx:if="{{datas.componentData.style === 'swipe'}}" style="position:relative;">
<swiper bindchange="handleSwipeChange">
<swiper bindchange="handleSwipeChange"
style="height: {{swiperTypeHeightList[datas.componentData.columnNum]}}"
>
<block wx:for="{{swipeInfo}}">
<block wx:for="{{swipeInfo}}">
<swiper-item>
<swiper-item>
<view style="display: grid;gap:{{datas.componentData.proGap*2}}rpx;grid-template-columns:repeat({{datas.componentData.columnNum}}, 1fr)">
<view style="display: grid;gap:{{datas.componentData.proGap*2}}rpx;grid-template-columns:repeat({{datas.componentData.columnNum}}, 1fr)">
...
...
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