
小程序
servicesYY
这个作者很懒,什么都没留下…
展开
-
laraval小程序sdk使用
首先先安装sdk在配置文件composer.json里添加 运行 composer update 命令 "qcloud/weapp-sdk":"0.4.4",接下来初始化sdk 在项目更目录index 配置各个参数(这里需要进行初始化配置)use \QCloud_WeApp_SDK\Conf as Qconf;function qcloud_...原创 2018-05-24 15:28:11 · 577 阅读 · 0 评论 -
微信小程序获取input
首先给input添加事件<view class="field clearfix"> <input id="name" name="Phone" class="login-input" type="text" placeholder="请输入手机号" bindinput="getPhone"/></原创 2018-06-08 16:50:20 · 424 阅读 · 1 评论 -
微信小程序js添加css属性
index.wxml<view class="page" style="background-color:{{pageBackgroundColor}}" ><button bindtap="changeColor" hover-class="none">点击修改背景颜色</button></view>i原创 2018-06-08 16:58:22 · 17605 阅读 · 2 评论 -
微信小程序跳转页面方法
第一种wx.navigateTo({ url: 'test?id=1'})目前页面路径最多只能十层。第二种wx.redirectTo({ url: 'test?id=1'})关闭所有页面,打开到应用内的某个页面。第三种wx.reLaunch({ url: 'test?id=1'})跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面第四种wx.switchTab({...原创 2018-06-30 14:16:29 · 479 阅读 · 0 评论 -
微信小程序调用手机通讯录
wx.addPhoneContact({ success:function(e){ }})参数:photoFilePath // 头像本地文件路径lastName //姓氏nickName //昵称middleName //中间名firstName //名字remark //备注mobilePhoneNumber //手机号...原创 2018-07-26 11:01:49 · 26549 阅读 · 13 评论 -
微信小程序开源项目库汇总
https://github.com/opendigg/awesome-github-wechat-weapp翻译 2018-07-26 11:10:19 · 514 阅读 · 0 评论 -
微信小程序登陆及授权
1,微信小程序开发中,首先会进行授权以及登陆,由于小程序的调整,现在在小程序里调用scope 为 "scope.userInfo" 时,无法弹出授权窗口,所以需要自己写授权。2,授权,小程序授权方式改变后可以通过button按钮来进行点击授权,类型为getUserInfo,下面是授权页面代码。<button class="but" open-type="getUserInfo" hi...原创 2018-08-28 17:09:31 · 1558 阅读 · 0 评论 -
微信小程序表单字符串转数组
<button bindtap="auth" style="background-color: #4569F4;color: white;border-radius: 50rpx; {{isTopShpw ? 'display: block;' : 'display: none;'}}">发送单个</button>//手机号单个mobiles: functio...原创 2018-08-24 14:32:30 · 6312 阅读 · 0 评论 -
微信小程序文件上传,图片上传
1:xml<view style="margin-top: 20px" class="weui-flex"> <view style="width: 35%;font-size: 0.7em">证件照片</view> <!-- <input class="_input weui-flex__item"原创 2018-10-22 17:46:39 · 1316 阅读 · 0 评论