当前位置:网站首页>Uniapp waterfall flow, applet waterfall flow, very simple, suitable for the whole platform
Uniapp waterfall flow, applet waterfall flow, very simple, suitable for the whole platform
2022-06-25 19:41:00 【Bin daotianxia】
Examples are easy to understand , The idea is to write a web page , Write uniapp, Write small programs
CSS The big box is normal , Inner sleeve 2 A small box floating from side to side , Then the goods in the left and right boxes become inline-block That's it .
Don't write anything JS! The interface can get data normally . The simplest in the whole network ! I am also looking for a waterfall to flow for a long time , Think of your own way !
The point is the judgment in the code v-if="index%2==0" and v-if="index%2==1"
I am using uniapp Written , If you are writing a waterfall stream of native wechat apps , Put... Directly v-if="index%2==0 Change to wx-if=""
<template>
<view class="index">
<view class="left">
<block v-for="(item, index) in list" :key="index" class="itemlist">
<view class="card" @click="goDetail(item)" v-if="index%2==0">
Just write the goods here normally
</view>
</block>
</view>
<view class="right">
<block v-for="(item, index) in list" :key="index" class="itemlist">
<view class="card" @click="goDetail(item)" v-if="index%2==1">
Just write the goods here normally
</view>
</block>
</view>
</view>
</template>
.left,.right{
display: inline-block;
vertical-align: top;
width: 49%;
}
.itemlist{
background-color: #fff;
margin: 1%;
margin-bottom: 20upx;
display: inline-block;
} 边栏推荐
- JVM | runtime data area (heap space)
- MySQL prompt performance_ Schema missing table
- Randomly generate 100 non repeating numbers between 1 and 150 and put them in the array
- Lilda Bluetooth air conditioning receiver helps create a more comfortable road life
- 三、HikariCP获取连接流程源码分析三
- Favorite PHP debugging methods
- Combing the latest Data Mining Event Scheme!
- Error record: preg_ match(): Compilation failed: range out of order in character class at offset 13
- Network security detection and prevention test questions (II)
- What is an operator?
猜你喜欢

JVM|运行时数据区(堆空间)

Sorting out the latest data mining competition scheme!

Server journey from scratch - Yu Zhongxian integrated version (IP access server, LNMP compilation and installation, Lua environment and socket expansion)

Gbpnzd firm offer for 14 months, simulation for 19 months, test stable

Paddleocr learning (II) paddleocr detection model training

为什么生命科学企业都在陆续上云?
![In 2021, China's private equity market is growing, and the scale of private equity fund management reaches 19.78 trillion yuan [figure]](/img/e9/ffc5303cb6f0f8e05e93b3342a49b2.jpg)
In 2021, China's private equity market is growing, and the scale of private equity fund management reaches 19.78 trillion yuan [figure]

Panda weekly -2022/02/18

Huawei released two promotion plans to promote AI talent development and scientific research innovation
![[C language practice - print the upper triangle and its deformation (with blank version)]](/img/df/f38dc57c6a2de522acd91929ced1ad.png)
[C language practice - print the upper triangle and its deformation (with blank version)]
随机推荐
Process of vacuum and vacuum full
Uncover ges super large scale graph computing engine hyg: Graph Segmentation
How to quickly close port 8080
Panda weekly -2022/02/18
RPM package installation command
谈谈CNN中的位置和尺度问题
Solidity contract address to wallet, wallet address to contract
ActiveMQ--CVE-2016-3088
QQ robot epidemic situation query / epidemic situation concern [latest beta2 version]
Can GoogleSEO only do content without external chain? (e6zzseo)
最新數據挖掘賽事方案梳理!
【历史上的今天】6 月 25 日:笔记本之父诞生;Windows 98 发布;通用产品代码首次商用
R language uses the model of DALEX package_ The profile function interprets the relationship between a continuous feature and the target value Y in multiple classification models based on the conditio
广州华锐互动打造VR展厅全景在线虚拟展厅
DataX script task development record
Yum command
PHP little knowledge record
Trend ea- fixed stop loss and profit per order
QQ机器人官方插件加载配置方法【beta2版本】
On location and scale in CNN