小程序
bokolin
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
微信小程序获取验证码的代码参考
// 引入手机格式验证文件 (根据业务需求进行引入)var phoneFormat = app.Simplify.verificationPhone;// 点击事件_getPhoneCode: function (e) { let userPhone = e.target.id; let that = this; if (phoneFormat.test(userPhone)) { ...原创 2019-11-09 15:24:14 · 1185 阅读 · 0 评论 -
如何在小程序之中利用npm使用第三方组件
在编写小程序api测试工具-以linUI表示LinUI参考文档1.设置-项目设置-勾选使用npm模块2.在根目录 npm init3.npm install lin-ui4.工具 -构建npm接下来就可以像使用普通组件一样使用组件了或者直接拷贝dist的内容,可以按需加载。...原创 2019-06-30 16:19:30 · 909 阅读 · 0 评论 -
小程序音乐播放组件旋转与暂停样式
<image class="classic-img {{playing?'rotation':'rotation suspended'}}" src="{{img}}" /> .rotation { -webkit-transform: rotate(360deg); animation: rotation 12s linear infinite; -moz-anim...原创 2019-07-09 16:03:17 · 1077 阅读 · 0 评论 -
小程序从上至下弹出对话框
结构:蒙层+对话框 <!-- 底部弹出框 --> <view class="commodity_screen" bindtap="hideModal" wx:if="{{showModalStatus}}"></view> <!-- 从上至下的弹窗--> <view原创 2018-09-01 15:13:05 · 1757 阅读 · 0 评论 -
微信小程序的分享页图片如何自定义呢?
1.先要把open-type设置成share<button wx:if="{{shareMid == undefined}}" open-type="share" class="save-order">分享</button>注意:右上角也可进行分享2.触发 onShareAppMessage 方法//分享 onShareAppMessage:function...原创 2018-08-18 14:11:59 · 13632 阅读 · 4 评论 -
禁止小程序页面滑动的方法:
{"navigationBarTitleText": "手机账号登录","backgroundColor": "#FFF","backgroundTextStyle": "light","disableScroll": true}原创 2018-08-15 18:37:44 · 5576 阅读 · 0 评论 -
怎么给小程序添加背景图片且在背景图片上添加遮罩?
page::before{content: '';position: fixed;top: 0;z-index: -1;width: 100vw;height: 100vh;background: url("") no-repeat center/cover;}page::after{content: '';position: fixed;top: ...原创 2018-08-15 18:30:04 · 5015 阅读 · 0 评论 -
小程序去除按钮默认样式 border-radius
//去除默认圆角button{ border-radius: 0;}//去除默认边框button{border:0}button::after{border:none;}原创 2018-08-15 17:21:43 · 3081 阅读 · 0 评论 -
微信小程序根据当前所在地址来获取城市名称
场景: html部分: <view class="index-top-left incursor" bindtap="get_user_address"> <span style="font-size:14px;color:#333333;">{{userCity}}</span></vie原创 2018-08-15 14:50:24 · 2579 阅读 · 1 评论 -
点击眼睛图标更改密码显示格式
使用场景: <view class="info_input"> <input type="{{passwordType}}" placeholder-class="incolor" maxlength="16" name="password" placeholder="请输入密码" /&原创 2018-08-14 14:23:50 · 2737 阅读 · 0 评论 -
navigator的open-type跳转
场景: <view class="login-bottom-mudoler"> <view class="login-bottom"> <view class="font_size"><navigator url="../egaiyi-login-phone/egaiyi-login-phone?url={{pagesUrl}原创 2018-08-14 11:12:03 · 1761 阅读 · 0 评论
分享