微信小程序swiper同时显示三张图片样式
<view class="pre-box"><!--预售产品轮播--><swiper autoplay="{{autoplay}}" interval="3000" class='swiper-pre' next-margin="7px" previous-margin="30rpx"><block wx:for="{{sponsorProductList}}" wx:key="{{item.productId}}"><swiper-item><view class="pre-product" style="margin-right:16rpx;"><image src="{{item.product_image_url}}" class="pre-img" bindtap="toDetail" id="{{item.productId}}" /><view class="sponsor-price omit" wx:if="{{item.product_status!=3&&item.product_status!=5}}">¥{{item.product_start_price}}</view><view class="sponsor-price" wx:if="{{item.product_status==3&&item.product_status==5}}">卖光了</view><view class="pre-descripe"><view class="pre-title" bindtap="toDetail" id="{{item.productId}}">{{item.product_name}}</view><view class="pre-name">{{item.product_title}}</view></view><view class="presell-progress"><view class="progress"><view class="{{item.schedule>100?'hl':'progress-bar'}}" style="width:{{item.schedule}}%;"></view></view><view class="progress-box"><view class="progress-detail">{{item.schedule}}%</view><view class="progress-description">预售进度</view></view><view class="progress-box"><view class="progress-detail2">¥{{item.product_support_amount}}</view><view class="progress-description">支持金额</view></view><view class="progress-time"><view class="progress-detail2">{{item.product_leave_time}}</view><view class="progress-description">剩余时间</view></view><view class='cart' bindtap='addCart' data-pi='{{item.productId}}'><image src='../image/cart_index_wx.png' class='cart-img'></image></view></view><view class="dashed-line"></view><view class="product-send-time">发货时间:{{item.product_delivery_time}}</view><view style="width: 100%;height: 1em;"></view></view></swiper-item></block></swiper><!--预售产品轮播 END--><!--查看更多--><view class='look-more fz-14' bindtap='preProductList'>查看更多></view><!--查看更多 END--></view>
重点是:
next-margin="7px" previous-margin="30rpx"
css:
大功告成,下面是我们小程序二维码,大家可以扫扫看:
微信小程序swiper同时显示三张图片样式相关推荐
- 微信小程序swiper图片尺寸_微信小程序 swiper 轮播图 高度自适应
微信小程序 swiper 轮播图 高度自适应 发布时间:2018-07-20 15:34, 浏览次数:588 , 标签: swiper 小程序中使用swiper 组件 ,实现轮播图高度自适应效果. 先 ...
- 微信小程序布局技巧(三)
微信小程序布局技巧(三) 前言 小程序适配 物理像素 小程序中的px px和rpx转换 应用 尾巴 前言 本文是微信小程序(本文后面统称小程序)布局技巧系列最后一篇文章,主要说明小程序的屏幕适配问题. ...
- swiper高度自适应_微信小程序swiper高度自适应
微信小程序swiper高度自适应的实现方式,首先swiper默认最小高度150,下面请看开发实例. 要求:swiper高度自适应 wxml wxss .swiper image { width: 10 ...
- 微信小程序点播插件_微信小程序 wxParse插件显示视频问题
修改wxParse/html2json.js 文件 ,在 html2json(html, bindName)方法里 var node = { node: 'element', tag: tag, }; ...
- 绑定bindchange事件的微信小程序swiper闪烁,抖动问题解决,(将微信小程序切换到后台一段时间,再打开微信小程序,会出现疯狂循环轮播,造成抖动现象)
绑定bindchange事件的微信小程序swiper闪烁,抖动问题解决,(将微信小程序切换到后台一段时间,再打开微信小程序,会出现疯狂循环轮播,造成抖动现象) 参考文章: (1)绑定bindchang ...
- 电脑版微信小程序全屏显示方法,手机横屏方法。
电脑版微信小程序全屏显示方法: 在app.json中加入:"resizable": true 注意要与"pages"同级,网上有许多错误方法! 手机横屏方法: ...
- 第21课 微信小程序视频标签显示弹幕
第21课 微信小程序视频标签显示弹幕 效果图如下: wxml代码如下: <videosrc="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideo ...
- uni-app分割线微信小程序端不显示
uni-app分割线微信小程序端不显示 文章目录 uni-app分割线微信小程序端不显示 问题描述 解决方案 问题描述 做项目时,遇到一个问题: 自定义的分割线组件在web端能显示,在微信小程序端却不 ...
- 微信小程序swiper不限数量不卡顿
详情见:微信小程序swiper不限数量不卡顿轮播图优化组件(含uniapp版和纯微信开发者工具版),欢迎打包下载啦_swiper小程序插件_KV_T的博客-CSDN博客
最新文章
- 我去!一周内,在闲鱼上被疯狂转了2.6万次的架构课程,现在免费!(限时领)...
- 共模电压和差模电压-(定义及测量)
- ArcGIS Server安装的几个问题
- 程序员面试金典 - 面试题 03.06. 动物收容所(队列)
- PTA11、 输入输出-计算字符串中的数 (10 分)
- Silverlight的OOB特性
- html5编程技术代码,编程技术—CSS技术
- 解析搜索引擎的Robots协议
- 【设计模式】Iterator设计作业-设计LinkedList的iterator
- LabVIEW 杀死进程 直接调用cmd代码来实现
- 机器视觉基础知识(一)
- CSS简单的图片居中
- 设计模式之适配器模式--简单实例分析
- 2021年全球及中国天然橡胶产量、消费量及价格走势分析:中国市场需求量急速增涨[图]
- 关于python使用hadoop(使用python操作hdfs)
- 120行代码爬取电子书网站
- 数据库版本管理工具 -- Flyway
- CPLD/FPGA 内部结构与原理
- 求大神赐教,如何实现echarts自定义legend的样式 如图下的这种
- 单片机实例21——拉幕式数码显示技术(硬件电路图+汇编程序+C语言程序)
热门文章
- 普实AIO5:“互联网+ 移动应用”让管理触手可及
- 什么是波特五力分析模型?看完这篇文章你就知道了
- jsp的MVC模式设计用户登陆注册
- python京东自动签到_京东商城自动签到领京豆
- 《Turtle绘图》Python用Turtle库绘制圣诞树、圣诞节考研祝福礼物
- Metro UI配色方案
- python recvfrom函数详解_UDP协议的两个主要方法sendto和recvfrom详解
- 模拟token访问网络共享路径下的文件
- 上市公司企业持续创新能力、创新可持续性(原始数据+计算代码+计算结果)(2008-2021年)
- Prometheus实现API监控实施方法