原生微信小程序
记录写原生小程序的过程
邱铁牛
前端工作中,有意义的记录分享
展开
-
moment设置当前月第一天,当前月最后一天
例如:2021-7-1 至 2021-7-31timeTime() {// 开始时间 let date = moment().startOf('month'); //当月第一天 let y = date.get('year'); let m = date.get('month') + 1; let d = date.get('date'); this.startDateString = y + "-" + m + .原创 2021-07-22 11:17:30 · 1604 阅读 · 0 评论 -
小程序使用painter生成海报
引入第三方包就可以轻松的完成具体可参考:原项目地址:https://github.com/Kujiale-Mobile/Painter新版地址:https://github.com/shesw/Painter使用这个网址编辑出你的海报样子,然后【复制代码】https://lingxiaoyi.github.io/painter-custom-poster/...原创 2021-01-19 14:55:22 · 597 阅读 · 0 评论 -
CSS文字上下无限滚动 用于奖励记录
先看效果图直接上代码wxml页面<view class="swiper_rise"> <view class="charm animation5"> <view> <view class="item" wx:for="{{5}}" wx:key="index"> <text>2月{{index}}日原创 2020-06-15 14:51:51 · 652 阅读 · 0 评论 -
小程序view标签禁止滚动
.wxml代码小知识:show-menu-by-longpress='1' //image标签设置这个参数,打开长按发送给朋友、识别图中小程序;使用catch:touchmove="touchmove"事件,catch:修饰阻止冒泡<view class="image_view" catch:touchmove="touchmove"> <i...原创 2020-04-08 10:39:53 · 2178 阅读 · 0 评论