当前位置:网站首页>Wechat applet startup page automatically jumps
Wechat applet startup page automatically jumps
2022-06-11 12:18:00 【dq0817_】
wxml
Picture customization
It should be noted that the startup page image If the width and height of the box are not defined, the width and height are set to 100% The picture will not be displayed You need to use image Self contained mode Method
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<text style="position: absolute;top: 10px;right: 10px;color: #fff;width: 60px;height: 25px;background-color:rgba(255,255,255,0.1);text-align: center;border-radius: 15px;" bindtap="home"> skip {
{time}}</text>
<image mode="widthFix" src="https://tse4-mm.cn.bing.net/th/id/OIP-C.XbWs5KyqKjDjcO_RXx4aKAAAAA?w=187&h=332&c=7&r=0&o=5&dpr=1.05&pid=1.7" style="width: 100%;"></image>js
js We need to give them in class “ skip ” Bind click event Click skip to jump to the page Auto jump is used in page loading events
Click event Name custom
home:function(){
wx.switchTab({
url: '/pages/home/home'
})
}Loading event here time Need to be in data Jump time is defined in
It should be noted that the assignment of the applet needs to be in setData In function
onLoad() {
// Jump time
var time = this.data.time,that = this
// Timer pair time Reassign 1000=1s
setInterval(function(){
time--
//time=0 Of Auto jump page
if(time==0){
wx.switchTab({
url: '/pages/home/home'
})
}
that.setData({
time:time
})
},1000)
}边栏推荐
- InputStream读取文件OutputStream创建文件
- (推荐)splunk 多少数量search head 才合适
- Installation and use of saltstack
- Flick scrolling window, sliding window, session window, global window
- Jerry's aicmd command [chapter]
- 8. 18 arhat enhancements for atomic operations
- [digital signal processing] correlation function (property of correlation function | maximum value of correlation function | maximum value of autocorrelation function | maximum value of cross correlat
- C # set or verify the format of text field in PDF
- When a pure data service machine calls in, it falls back to 2g/3g
- Splunk 健康检查之关闭THP
猜你喜欢

Specflow环境搭建

Flink time semantics, watermark, generated watermark, and transmission of watermark

9. Talk about ThreadLocal

Splunk best practices - lighten the burden on Captain

You call this shit MQ?

centos安装mysql5.7

Workload management of Splunk best practices

How does data age in Splunk?

Yapi installation

Gocron scheduled task management platform
随机推荐
gocron 定时任务管理平台
Serveur FTP: téléchargement et utilisation de Serv - U
Gocron scheduled task management platform
Splunk health checks orphaned searches
Record a troubleshooting of MySQL master-slave asynchrony
Splunk Bucket 背后的秘密
Flick grouping sets multidimensional aggregation and setting table state expiration time
Live source code, floating window rolling gradient effect
Splunk最佳实践之workload managment
14、课程总结与回顾
flink Window Join、Interval Join、Window CoGroup (两流匹配 指定key联结,开窗口进行窗口操作)
flink Spark 和 Flink对比
Merge two ordered arrays (C language)
Zabbix安装及配置应用
JMeter 学习心得
Android 11+ configuring sqlserver2014+
Thread five states (thread life cycle)
微信授权获取手机号码
Flink spark vs. Flink
flink 时间语义、水位线(Watermark)、生成水位线、水位线的传递