- 博客(6)
- 资源 (1)
- 问答 (3)
- 收藏
- 关注
原创 小程序跳转的几种方式
1.页面跳转至有tabbar的某个页面wx.switchTab({ //switchTab只能跳转到有tabbar的页面 url: '../index/index' }); 2.页面跳转到无tabbar的某个页面,使用redirectTo或者navigateTo1)wx.navigateTo(OBJECT)保留当前页面,跳转到应用内的某个页面,使用wx.navigateBack可以返回到原页面。wx.navigateTo({ url: '../index/inde
2021-07-07 15:42:34
210
原创 小程序下拉选择van-popup+van-picker的坑,给自己备注的怕忘
想实现的效果是.wxml<view class="send-item"> <van-cell title="车辆颜色" is-link bind:click="showColor" name="color_id">{{ colorsChose }}</van-cell> <van-popup show="{{ colorIn }}" bind:close="closeColor" position="bottom" custom
2021-07-05 16:09:16
1433
原创 小程序时间选择器报错getFullYear is not a function 的解决方案
小程序时间选择器报错getFullYear is not a function 的解决方案var date = new Date(time)效果点击右侧箭头弹出选择日期后整体用法confirmPicker(val) { // 时间转化 var time = val.detail var date = new Date(time) var date = (date.getFullYear()) + "-" + (date.getMonth() + 1 + "-"
2021-06-21 13:14:28
1790
TA创建的收藏夹 TA关注的收藏夹
TA关注的人