300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 微信小程序中选项卡的简单介绍

微信小程序中选项卡的简单介绍

时间:2019-04-15 08:26:14

相关推荐

微信小程序中选项卡的简单介绍

微信小程序|小程序开发

微信小程序,选项卡,小程序,选项卡

微信小程序-小程序开发微信小程序 选项卡的简单实例

mmall源码,vscode 编译小程序,ubuntu更新npm,tomcat上配置日志,sikulix爬虫,织梦是php吗,陕西抖音seo软件,php政府网站管理系统源码,网站模板wordpresslzw

看下效果

php源码记账,vscode锁定只读文件,ubuntu系统压缩,tomcat加ssl证书,sqlite数据库和c,爬虫的相关法律风险有哪些,php 联动下拉列表,辽宁seo排名优化,网站源代码文件,html动态模板下载地址lzw

文件资源平台源码,ubuntu可以商业使用,爬虫表情意思,预订 php,西乡seo宣传lzw

代码:

home.wxml

热门 关注 好友 热门关注好友

home.wxss

/* pages/home/home.wxss */.swiper-tab{ width: 100%; border-bottom: 2rpx solid #eeeeee; text-align: center; line-height: 80rpx;} .swiper-tab-item{ font-size: 30rpx; display: inline-block; width: 33.33%; color: #666666; } .on{ color: #f10b2e; border-bottom: 5rpx solid #f10b2e;} .swiper-box{ display: block; height: 100%; width: 100%; overflow: hidden; } .swiper-box view{ text-align: center; }

home.js

// pages/home/home.jsvar app = getApp()Page({ data: { winWidth: 0, winHeight: 0, // tab切换 currentTab: 0, }, onLoad: function () { var that = this; wx.getSystemInfo({ success: function (res) { that.setData({winWidth: res.windowWidth,winHeight: res.windowHeight }); } }); }, bindChange: function (e) { var that = this; that.setData({ currentTab: e.detail.current }); }, swichNav: function (e) { var that = this; if (this.data.currentTab === e.target.dataset.current) { return false; } else { that.setData({ currentTab: e.target.dataset.current }) } }})

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。