上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: 参考https://blog.csdn.net/qq_35510173/article/details/106399577 在点击跳转的地方 wx.navigateToMiniProgram({ appId: 'wxece3a9a4c82f58c9', path: e.currentTarget.d 阅读全文
posted @ 2021-07-25 12:51 lude1994 阅读(308) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/luoshida/p/13434197.html 右上角胶囊的信息,包含width、height、top等 let rect= wx.getMenuButtonBoundingClientRect(); 机型信息 let info=wx.getS 阅读全文
posted @ 2021-07-21 21:27 lude1994 阅读(1297) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/hao_m582/article/details/84108041 解决方法:在 gridDelegate中添加宽高比就可以 //宽高比 childAspectRatio: 2 / 3, 阅读全文
posted @ 2021-07-17 10:48 lude1994 阅读(552) 评论(0) 推荐(0)
摘要: 注意:安卓支持分享好友和朋友圈,ios不支持分享朋友圈 在需要分享的页面js的onLoad中 wx.showShareMenu({ menus: ['shareAppMessage', 'shareTimeline'] // 分享好友、朋友圈 }) /** * 用户点击右上角分享 */ onShar 阅读全文
posted @ 2021-07-10 14:55 lude1994 阅读(277) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/qq_29483485/article/details/105421098 <view class="savecode" bindtap='saveToPhone'> 保存二维码 </view> // 保存图片 saveToPhone(e){ // 阅读全文
posted @ 2021-07-10 10:24 lude1994 阅读(398) 评论(0) 推荐(0)
摘要: 1.下拉刷新 在需要的页面: json: "enablePullDownRefresh": true,"backgroundTextStyle": "dark", // 刷新的点的颜色 js: /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: func 阅读全文
posted @ 2021-07-01 21:25 lude1994 阅读(185) 评论(0) 推荐(0)
摘要: 将textarea绑定的事件改成blur,bindblur 但是需要使用form表单的格式拿到textarea的值 如果是一般的input,可以直接使用bindchange拿到值 阅读全文
posted @ 2021-06-29 16:06 lude1994 阅读(900) 评论(0) 推荐(0)
摘要: 父组件: <tpupload bind:tpuploadFun="tpupload1" imgs="{{imgs}}" tpNum='9' ></tpupload> // 事件可以拿到传来的参数 tpupload1(e){ console.log(e.detail.imgs, '这个是子组件传递来的 阅读全文
posted @ 2021-06-14 20:49 lude1994 阅读(264) 评论(0) 推荐(0)
摘要: 微信小程序图片上传功能包含:上传到七牛云、删除图片、查看图片 1.创建子组件tpupload // wxml文件 <view class="weui-uploader"> <view class="weui-uploader__bd " style="flex-wrap: wrap; display 阅读全文
posted @ 2021-06-14 20:42 lude1994 阅读(1102) 评论(0) 推荐(0)
摘要: onInput(event) { const { detail, currentTarget } = event; const date = new Date(detail); var newDate = reFun.dateFormat("YYYY-mm-dd", date) }, 结果: 阅读全文
posted @ 2021-06-13 15:57 lude1994 阅读(31) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页