随笔分类 -  小程序

摘要:case 401: let pages = getCurrentPages() wx.setStorageSync('before_login_page', pages[0].route) wx.setStorageSync('before_login_page_options', pages[0] 阅读全文
posted @ 2023-01-10 10:06 jqynr 阅读(231) 评论(0) 推荐(0) 编辑
摘要:/* 自带input右侧下拉小三角 */ .icon-right-pick{ padding-right: 70rpx!important; width: 54%!important; background: url("http://****.com/images/2d15b.png") no-re 阅读全文
posted @ 2022-12-15 16:46 jqynr 阅读(183) 评论(0) 推荐(0) 编辑
摘要:app.json "subPackages": [ { "root":"commonPackage", "pages":[] } ], pages同级目录加commonPackage 分包中放入echarts组件信息 使用 xx.json 上面是分包组件,下面是加载前替换组件 "usingCompo 阅读全文
posted @ 2022-12-02 18:20 jqynr 阅读(546) 评论(0) 推荐(0) 编辑
摘要:下拉要跟着下拉,凸显上面的下拉动画,上滑的时候固定搜索框到顶部,搜索组件用的vant .page { color: #666; background-color: #f6f6f6; min-height: 100vh; overflow: auto; position: relative; padd 阅读全文
posted @ 2022-12-01 11:41 jqynr 阅读(288) 评论(0) 推荐(0) 编辑
摘要:如果全屏拖动的话,movable-area会覆盖下层元素,所以就把拖动条放到页面右侧,内部元素大于拖动区域就不会出现需要点击事件穿透问题,缺点是只能在边上并且只能上下或者左右拖动 <movable-area class="movable-area"> <movable-view direction= 阅读全文
posted @ 2022-11-30 17:50 jqynr 阅读(402) 评论(0) 推荐(0) 编辑
摘要:git库 https://github.com/ecomfe/echarts-for-weixin 打不开用我这个 https://files.cnblogs.com/files/blogs/743986/echarts-for-weixin-master.zip 如果需要根据接口给的数据渲染 im 阅读全文
posted @ 2022-11-30 11:12 jqynr 阅读(27) 评论(0) 推荐(0) 编辑
摘要:<view class="group" wx:for="{{groupList}}" wx:for-item="groupItem" wx:for-index="groupIndex" wx:key="groupIndex"> <view class="group-title">组{{groupIn 阅读全文
posted @ 2022-11-29 10:46 jqynr 阅读(22) 评论(0) 推荐(0) 编辑
摘要:<rich-text space="nbsp" nodes="{{info.content}}"></rich-text> 为了避免图片横向超出边界出现滚动条 res.data.content = res.data.content.replace(/<img/g,'<img style="width 阅读全文
posted @ 2022-10-26 09:52 jqynr 阅读(20) 评论(0) 推荐(0) 编辑
摘要:value="{{ quoteScore }}" 改成 model:value="{{ quoteScore }}" 阅读全文
posted @ 2022-10-19 09:41 jqynr 阅读(11) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/GrootBaby/article/details/123799246 let name = e.target.dataset.item.enterpriseName let pages = getCurrentPages() let prevPag 阅读全文
posted @ 2022-10-13 16:39 jqynr 阅读(75) 评论(0) 推荐(0) 编辑
摘要:微信小程序 vanthttps://vant-contrib.gitee.io/vant-weapp/#/quickstart#an-zhuang 1,小程序选择不使用云开发,js基础模板2,打开终端根目录 cnpm i @vant/weapp -S --production // --produc 阅读全文
posted @ 2022-09-05 15:03 jqynr 阅读(411) 评论(0) 推荐(0) 编辑
摘要:原生: <view bindtap="uploadAct">上传</view> uploadAct() { wx.chooseImage({ success(res) { const tempFilePaths = res.tempFilePaths wx.uploadFile({ url: 'ht 阅读全文
posted @ 2022-08-25 14:27 jqynr 阅读(69) 评论(0) 推荐(0) 编辑
摘要:// 原来还觉得vant不行,不过这个tabbar还挺香 1、引入 app.json "usingComponents": { "van-tabbar": "@vant/weapp/tabbar/index", "van-tabbar-item": "@vant/weapp/tabbar-item/ 阅读全文
posted @ 2022-08-24 10:32 jqynr 阅读(1003) 评论(0) 推荐(0) 编辑
摘要:一般用在登录页跳转时候 wx.reLaunch({ url: '../../quality-inspector/index/index', }) 阅读全文
posted @ 2022-08-24 10:23 jqynr 阅读(71) 评论(0) 推荐(0) 编辑
摘要:传Object类型会拿不到数据,加上层数据就行了,然后取数组第一个值 js this.setData({ datainfo: [res.data] }) wxml <self-exam-detail datainfo="{{datainfo}}"></self-exam-detail> 组件 js 阅读全文
posted @ 2022-08-11 16:35 jqynr 阅读(158) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/KimBing/article/details/102894271 this.setData({ [e.currentTarget.dataset.formitem]:e.detail.value }) 阅读全文
posted @ 2022-08-08 17:46 jqynr 阅读(53) 评论(0) 推荐(0) 编辑
摘要:placeholder-style 或者 placeholder-class 阅读全文
posted @ 2022-05-18 14:12 jqynr 阅读(167) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示