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
27e11e53
Commit
27e11e53
authored
Jan 21, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
瀑布流组件
parent
f3494461
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
8 deletions
+65
-8
src/pages/home/index.vue
+10
-7
src/pages/home/main.json
+3
-1
static/nativeComponents/module/WaterfallFlow/index.js
+0
-0
static/nativeComponents/module/WaterfallFlow/index.json
+4
-0
static/nativeComponents/module/WaterfallFlow/index.wxml
+28
-0
static/nativeComponents/module/WaterfallFlow/index.wxss
+20
-0
No files found.
src/pages/home/index.vue
View file @
27e11e53
<
template
>
<div
class=
"domain"
>
abc
<Banner
id=
"banner"
:datas=
"componentsList[0]"
></Banner>
<div
class=
"domain"
>
abc
----瀑布流开始----
<waterfall-flow
id=
"waterfallFlow"
></waterfall-flow>
----瀑布流结束----
<!--
<banner
id=
"banner"
:datas=
"componentsList[0]"
></banner>
<div
class=
"domain"
>
abc
<van-button
type=
"primary"
>
按钮
</van-button
>
</div
>
<van-button
type=
"primary"
>
按钮
</van-button>
--
>
<!--
</div>
--
>
</div>
</
template
>
...
...
@@ -698,7 +700,7 @@ export default {
<
style
>
.domain
{
text-align
:
center
;
padding-top
:
50%
;
/* text-align: center; */
/* padding-top: 50%; */
}
</
style
>
\ No newline at end of file
src/pages/home/main.json
View file @
27e11e53
{
"usingComponents"
:
{
"Banner"
:
"../../../static/nativeComponents/Banner/index"
,
"banner"
:
"../../../static/nativeComponents/Banner/index"
,
"waterfall-flow"
:
"../../../static/nativeComponents/module/WaterfallFlow/index"
,
"van-button"
:
"/static/vant/button/index"
}
}
\ No newline at end of file
static/nativeComponents/module/WaterfallFlow/index.js
0 → 100644
View file @
27e11e53
This diff is collapsed.
Click to expand it.
static/nativeComponents/module/WaterfallFlow/index.json
0 → 100644
View file @
27e11e53
{
"components"
:
true
}
\ No newline at end of file
static/nativeComponents/module/WaterfallFlow/index.wxml
0 → 100644
View file @
27e11e53
<!--瀑布流组件-->
<view class="waterfallFlow">
<view class="container flex">
<view
wx:for="{{contentList}}"
wx:key="index"
class="container-item item{{index}}"
>
<view
wx:for="{{item}}"
wx:for-item="item1"
wx:for-index="index1"
wx:key="index1"
class="imageItem"
>
<image
src="{{item1.url}}"
mode='widthFix'
bindload="imageLoad"
data-id="{{item1.heart_num}}"
/>
<!-- <image src="https://ss2.baidu.com/-vo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/241f95cad1c8a7863cb5bacd6709c93d71cf5052.jpg" mode='widthFix'></image> -->
<text>{{item1.name}}--{{item1.heart_num}}</text>
</view>
</view>
</view>
</view>
static/nativeComponents/module/WaterfallFlow/index.wxss
0 → 100644
View file @
27e11e53
image {
width: 100%;
}
.flex {
display: flex;
}
.waterfallFlow{
width: 100vw;
}
.container {
justify-content: space-around;
align-items: flex-start;
}
.container-item{
width: 49%;
}
.imageItem{
border: 1px solid #333;
margin-bottom: 10rpx;
}
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