当前位置:网站首页>Code error writing method of wechat applet rotation chart
Code error writing method of wechat applet rotation chart
2022-06-10 03:46:00 【hamimelon2020】
<view class="tupian">
<swiper>
<swiper-item>
<image src="{
{}}"></image>
</swiper-item>
</swiper>
</view>
<view class="tupian">
<swiper indicator-dots="{
{indicatorDots}}"
autoplay="{
{autoplay}}"
interval="{
{interval}}"
duration="{
{duration}}">
<block wx:for="{
{background}}" wx:key="*this">
<swiper-item>
<image src="{
{}}"></image>
</swiper-item>
</block>
</swiper>
</view>
view class="tupian">
<swiper indicator-dots="true"
autoplay="true"
interval="2000">
<block wx:for="{
{coverList}}" wx:key="id" bindtap="goodsbug">
<swiper-item>
<image class="photo" src="{
{item.url}}"></image>
</swiper-item>
</block>
</swiper>
</view>
.tupian {
width: 100%;
height: 100%;
line-height: 10px;
}
// pages/index_hio/index_hio.js
Page({
/** * Initial data of the page */
data: {
centerItem: 0,
coverList: [
{
id: 0,
url: "../image/photo/1.jpeg"
},
{
id: 1,
url: "../image/photo/2.jpeg"
},
{
id: 2,
url: "../image/photo/3.jpeg"
},
{
id: 3,
url: "../image/photo/4.jpeg"
}
]
},
/** * Life cycle function -- Monitor page loading */
onLoad(options) {
},
/** * Life cycle function -- Listening page first rendering completed */
onReady() {
},
/** * Life cycle function -- Monitor page display */
onShow() {
},
/** * Life cycle function -- Monitor page hidden */
onHide() {
},
/** * Life cycle function -- Monitor page uninstall */
onUnload() {
},
/** * Page related event handler -- Monitor user pull-down action */
onPullDownRefresh() {
},
/** * Handling function of page pull bottom event */
onReachBottom() {
},
/** * Users click the upper right corner to share */
onShareAppMessage() {
}
})
边栏推荐
- 【PyTorch 模型剪枝实例教程2(结构化剪枝)】
- Quit smoking log_ 04 (day_09)
- 使用队列实现进程之间的数据共享
- Qt窗口、视口、逻辑坐标、物理坐标
- Vulnhub's doubletrouble: 1
- [pytorch model pruning example tutorial 3 (multi parameter and global pruning)]
- Biological probe and intelligent verification code based on user behavior
- [actual combat] redis cluster (Part 2) - system version support
- Implementation scheme of shared file
- Pure JS implements image compression and returns file image information
猜你喜欢

Vulnhub's hacksudo:thor

【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】

【论文笔记|深读】struc2vec: Learning Node Representations from Structural Identity

Redis 核心技术与实战-实践篇读书笔记 20~终结

【提高准确率方法总结】

Anti fraud system and equipment fingerprint

Machine learning & Content Security & overseas risk control companies
![[mui+flask+mongodb+hbuilderx] detailed explanation of the answer integration logic of app development](/img/17/c099b7b34560d2c8e6ff0637921168.png)
[mui+flask+mongodb+hbuilderx] detailed explanation of the answer integration logic of app development

纯js 实现图片压缩,并返回file图片信息

Storage of data (integer, floating-point, super detailed)
随机推荐
Redis core technology and practice - practice reading notes 20 ~ end
Preorder traversal binary tree
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
[model compression pruning / quantification / distillation /automl]
vulnhub——BILLU: B0X
開源框架對Range模式的支持
vulnhub之HARRYPOTTER: FAWKES
从古代文学到云端技术
Milestone events Net Maui officially released
Pure JS implements image compression and returns file image information
A general es aggregation query method
New function official publicity playfab makes cross platform game architecture so simple
497. random points in non overlapping rectangles
Understanding of analog-to-digital conversion
刷题_链表相关系列
c语言刷题系列(三)
[actual combat] Application Based on chromedriver and crawler related
[pytorch pre training model modification, addition and deletion of specific layers]
答辩前电脑坏了......
Refactoring --introduce parameter object