当前位置:网站首页>How to customize cursor position in wechat applet rotation chart
How to customize cursor position in wechat applet rotation chart
2022-06-24 19:14:00 【Yisu cloud】
How to customize the cursor position in the wechat applet rotation chart
This article introduces “ How to customize the cursor position in the wechat applet rotation chart ” Knowledge about , During the operation of the actual case , Many people will encounter such difficulties , Next, let Xiaobian lead you to learn how to deal with these situations ! I hope you will read carefully , Be able to learn !
Pictured

The cursor of the rotation chart can be positioned to change the up, down, left and right positions
wxml:
<!--start banner --><swiper class='home-swiper' autoplay='true' bindchange='changDot' interval='4000'> <!-- Set up autoplay , Switching interval --> <swiper-item wx:for="{{slider}}" wx:for-index="index" wx:key="slider"> <image src='{{item.img}}'></image> </swiper-item></swiper><!-- Carousel cursor --><view class="dots"> <block wx:for="{{slider}}" wx:key="slider"> <view class="dot {{index == swiperCurrent?'actives':''}}"></view> </block></view><!-- end banner -->wxss:
/* Carousel picture size */ .home-swiper { width: 100%; height: 350rpx; position: relative;} .home-swiper image { width: 100%; height: 100%;} /* The rotation chart indicates the point */ .dots { display: flex; flex-direction: row; position: absolute; top: 311rpx; width: 100%; height: 50rpx; justify-content: center;} .dots .dot { width: 20rpx; height: 20rpx; /* background-color: #333; */ /* border: 1rpx solid #e8672e; */ margin-left: 12rpx; background: #fff; border-radius: 20rpx; /* transform: all 0.6; */ opacity: 0.44;} /* Called css effect */ .dots .actives { background-color: #fff; opacity: 1;}js:
Page({ /** * Initial data of the page */ data: { swiperCurrent: 0, slider :[ {'img':'/img/img/1.jpg'}, { 'img': '/img/img/1.jpg' }, { 'img': '/img/img/1.jpg' }, { 'img': '/img/img/1.jpg' }, { 'img': '/img/img/1.jpg' } ] }, // Carousel subscript changDot(e) { this.setData({ swiperCurrent: e.detail.current }); }, /** * Life cycle function -- Monitor page loading */ onLoad: function(options) { }, /** * Life cycle function -- Listening page first rendering completed */ onReady: function() { }, /** * Life cycle function -- Monitor page display */ onShow: function() { }, /** * Life cycle function -- Monitor page hidden */ onHide: function() { }, /** * Life cycle function -- Monitor page uninstall */ onUnload: function() { }, /** * Page related event handler -- Monitor user pull-down action */ onPullDownRefresh: function() { }, /** * Handling function of page pull bottom event */ onReachBottom: function() { }, /** * Users click the upper right corner to share */ onShareAppMessage: function() { }})“ How to customize the cursor position in the wechat applet rotation chart ” That's all for , Thanks for reading . If you want to know more about the industry, you can pay attention to Yisu cloud website , Xiaobian will output more high-quality practical articles for you !
边栏推荐
- MySQL basic commands
- Microservice system design -- interface document management design
- starring V6平台开发接出点流程
- Air pollution gas satellite data download tutorial
- 8 challenges of BSS application cloud native deployment
- three.js创建的基础框架
- 目前是不是只cdc 监控mysql 可以拿到新增列的数据 sqlserver不行是吧
- JS deep understanding of functions
- Introduction to smart contract security audit delegatecall (2)
- 我链接mysql 报这个错 是啥意思呀?
猜你喜欢

How to use Fisher's least significant difference (LSD) in R

Make track map

论文解读(SR-GNN)《Shift-Robust GNNs: Overcoming the Limitations of Localized Graph Training Data》
![subject may not be empty [subject-empty]](/img/6b/9b57a7ed3ab086036cb6dfe0b31de4.png)
subject may not be empty [subject-empty]

Experience of MDM master data project implementation for manufacturing projects

Northwestern Polytechnic University attacked by hackers? Two factor authentication changes the situation!

Microservice system design -- data model and system architecture design

JS position operation

Volcano becomes spark default batch scheduler

Sentry series satellite introduction and download tutorial
随机推荐
想问下 pgsql cdc 账号同一个 多个 task 会有影响吗,我现在3个task 只有一个 有
Microservice system design - sub service project construction
Freeswitch使用originate转dialplan
Road vector data download tutorial
cdc sql表里面的datetime要用什么类型替换
Volcano devient l'ordonnanceur de lots par défaut Spark
Value passing and reference passing of value types and reference types in CSharp
Source code analysis of ArrayList
Introduction, download and use of global meteorological data CRU ts from 1901 to 2020
cdc+mysql connector从维表中join的日期时间字段会被+8:00,请问阿里云托管的
8 challenges of BSS application cloud native deployment
NFT双币质押流动性挖矿系统开发
How to protect biological privacy in the AI era? Overview of the latest "privacy enhancement technology in biometrics" of the Autonomous University of Madrid, comprehensively detailing the biometric p
Microservice system design -- data model and system architecture design
Interpreting harmonyos application and service ecology
UnityShader 世界坐标不随模型变化
智能合约安全审计入门篇 —— delegatecall (2)
NFT pledge liquidity mining system development technology
Introduction and download of nine npp\gpp datasets
MySQL binlog data source configuration document, please share