![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
你好小马哥
这个作者很懒,什么都没留下…
展开
-
原生微信小程序播放rtmp
原生微信小程序播放rtmp原创 2022-06-24 15:41:05 · 2215 阅读 · 0 评论 -
微信小程序wxml使用函数
1、 公共文件创建wxs文件、声明方法、导出方法 var getNumberColor = function (num) { return '#1a1a90 !important'}module.exports ={ getNumberColor:getNumberColor}2、wxml使用,最顶部引入wxs文件<wxs src="../../utils/fun.wxs" module="tools" />3、使用<view class="items0"原创 2022-03-28 16:12:54 · 1995 阅读 · 0 评论 -
微信小程序获取头像和openID
1、绑定按钮 <button class="weiBtn" open-type="getUserInfo" bindgetuserinfo="getlogin" bindtap="tozhangLogin">微信登录</button>2、获取用户信息 getlogin: function(e) { if (e.detail.userInfo) { this.setData({ usertx: e.detail.userInfo.av原创 2021-01-05 10:30:47 · 739 阅读 · 0 评论