// pages/Ocean/selectDoctor/selectDoctor.js
Page({
/**
* 页面的初始数据
*/
data: {
swiperCurrent: "", //指示点
is375Width: false,
firsts: 2,
turnImg: [
"https://xinan-hospital.oss-cn-shanghai.aliyuncs.com/guangwang/zxwz-img1.png",
"https://xinan-hospital.oss-cn-shanghai.aliyuncs.com/guangwang/zxwz-img2.png",
"https://xinan-hospital.oss-cn-shanghai.aliyuncs.com/guangwang/zxwz-img3.png",
],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
//swiper滑动事件
swiperChange: function (e) { //指示图标
let that = this;
let vale = e.detail.current;
if (vale == 0) {
that.data.firsts = 2;
} else {
that.data.firsts = vale - 1
}
that.setData({
swiperCurrent: e.detail.current,
firsts: that.data.firsts
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
wx.getSystemInfo({
success: (res) => {
this.setData({
vheight: res.windowHeight
})
},
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
小程序swiper 3D 切换代码
需积分: 18 117 浏览量
2022-07-27
09:23:19
上传
评论
收藏 4KB ZIP 举报
enghe
- 粉丝: 22
- 资源: 9
最新资源
- 20240420-扬州高中小学部风雨操场转换层条件图r.dwg
- 小猫咪邮件在线发送系统源码v1.1,支持添加附件
- 永磁电机铜耗估算表-Excel-v1.0
- 参考资料-人工智能对劳动力市场的影响机制研究.pdf
- 协同供应链集成产品介绍V71sp1.rar
- 上市公司-人工智能的采纳程度面板数据(2003-2021年).xlsx
- 参考资料-人工智能技术应用对就业的影响及作用机制研究-来自制造业企业的微观证据.pdf
- 第5章spring-mvc请求映射处理
- 2023-04-06-项目笔记 - 第一百十六阶段 - 4.4.2.114全局变量的作用域-114 -2024.04.27
- 协同供应链集成产品介绍V70.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0