随笔分类 -  小程序

小程序转发与剪切板
摘要:onShareAppMessage(res){ if (res.from 'button') { } return { title: '转发', path: '/pages/echarts/echarts?jsonStr=' + "测试信息", success: function (res) { c 阅读全文
posted @ 2020-07-13 16:03 chenlw101 阅读(240) 评论(0) 推荐(0)
小程序scroll-view解决横向失效问题,文字不换行
摘要://item需要display:inline-block {{item.coursetitle}} .coursetitle{ display: inline-block; fon... 阅读全文
posted @ 2019-05-24 16:12 chenlw101 阅读(471) 评论(0) 推荐(0)
小程序navigateBack,子页面传值给父页面
摘要:子页面 父页面 阅读全文
posted @ 2019-04-22 14:53 chenlw101 阅读(1116) 评论(0) 推荐(0)
小程序下拉刷新问题
摘要:需要在对应的json文件或者app.json下面加上 如果看不见加载动画,在app.json下面加上 下拉刷新需要在页面上执行,而不是组件 阅读全文
posted @ 2018-12-06 19:24 chenlw101 阅读(763) 评论(0) 推荐(0)
async+await一起使用
摘要:/** get 请求 * @param {接口地址} url * @param {请求参数} params */ get(url,params){ return new Promise((resolve,reject) => { wx.request({ url:url, data:params, 阅读全文
posted @ 2018-11-13 18:05 chenlw101 阅读(351) 评论(0) 推荐(0)
小程序打开pdf
摘要:wx.downloadFile({ url:"https://xxxxxx.pdf", success(res){ console.log(res) let data = res.tempFilePath; wx.openDocument({ filePath:data, ... 阅读全文
posted @ 2018-11-08 17:28 chenlw101 阅读(2062) 评论(2) 推荐(0)
wepy打开页面首次不显示,但是数据已经有了
摘要:page页面首次打开异步数据无法通过props传递到子组件 解决:在开发者工具关闭上传代码时自动压缩就解决了,在wepy文档里也有强调 阅读全文
posted @ 2018-11-03 09:11 chenlw101 阅读(475) 评论(0) 推荐(0)
类似openDialog的弹窗
摘要:html data methods 阅读全文
posted @ 2018-10-30 16:37 chenlw101 阅读(394) 评论(0) 推荐(0)