随笔分类 - 小程序
摘要:描述:tab导航切换,点击一次B为a->b状态下,在这状态再点击一次b,tab b则会出现下拉导航,再点则会收上去动画逻辑分析先定义全局状态var djcs = 0;djcs这里代表的是tab前面的向下箭头img的状态tab选项卡不分析,if (e.currentTarget.id == 0){e.
阅读全文
摘要:1.后端筛选查数据,前端js排序实现tab1级,2级选项卡切换底下内容为1面列表,二面折线图js实现前端排序,这里1面2面的数据结构一样目录为数据中心端-pages/dataStatistics/sort/index 2.text内容收起功能,每行前两个字有后端分段分内容pages/activity
阅读全文
摘要:creat<view bindtap="selectLocation" class='add-cont'><view class='add-list'><view class='add-list-left'>打卡地点</view><view class='add-list-right'>{{loca
阅读全文
摘要:如果出现开发版小程序已过期,请在开发者工具重新扫码的话;让那人重新扫一下开发工具预览! <web-view src="{{url}}"></web-view> /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { console.log(optio
阅读全文
摘要:百度云盘->春稻田小程序->pages/community/index/index 案例分析:tab1,tab2,内层都有list,有分页tab1比如滑动到sTop800得时候,切换到tab2,会发现tab2也是stop800;所以换了布局方案,内容页用swiper以解决 page{ backgro
阅读全文
摘要:最重要的是二维数组 小程序通讯录(student) 正式版顺序搜索算法先来说几个坑:1>比如 var field = "user";item.field 就会报错,写法只能为item[field]2>比如type为number的时候,管理员没有这个number字段,所以item[field][i][
阅读全文
摘要:window.addEventListener('pageshow', function(e) {var da = history.length;console.log(history.length);//监听history返回的是数字getData();});
阅读全文
摘要:效果是个导航轮播视图层<swiper indicator-dots="true" autoplay="true" duration="1000" bindchange="listenSwiper" ><block wx:for="{{Arr}}" wx:for-index="idx" wx:key=
阅读全文
摘要:1》小程序ios页面晃动问题,上下晃动是因为机子本身问题,左右问题可以解决.container{padding-bottom: 0;background-repeat: no-repeat;background-size: 100% auto;background-position: bottom
阅读全文
摘要:初始化DOM求高度是有BUG的,只能第一次渲染后求,不加延迟有时候求不到值,加了延迟第一面效果不好
阅读全文