![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
π_π哦
这个作者很懒,什么都没留下…
展开
-
微信小程序方法传参 取参
js delete(event){ console.log(event.currentTarget.id), wx.request({ url:that.data.url+'/api/ibeacon/deleteDevice', data:{ ibeaconName:this.data.uuid[event.currentTarget.id].ibeaconName }, header:{ 'content原创 2021-04-26 21:05:00 · 379 阅读 · 0 评论 -
后台获取openid与session_key 微信小程序+springboot
小程序端 login: function(){ console.log("000"); wx.login({ success (res) { if(res.code) { //发起网络请求 wx.request({ url: 'http://localhost:80/api/login', data: { code: res.code }, m原创 2020-10-03 09:58:05 · 818 阅读 · 0 评论 -
微信小程序 服务端springboot+mybatis-plus 小程序向后台传json数据
小程序前台 请求 wx.request({ url: 'http://localhost:80/api/search1', data: { 'nName' : this.data.name }, header: { 'content-type': 'application/json' // 'content-type': 'application/x-www-form-urlencoded' },原创 2020-09-26 23:09:16 · 1073 阅读 · 2 评论 -
微信小程序: 蓝牙搜索ibeacon设备
pages下新建一个目录 目录中创建 微信小程序文件 在生命周期函数 onLoad()中写入代码 ```script //监听蓝牙切换的状态 蓝牙切换状态 执行search函数 wx.onBluetoothAdapterStateChange(function(res){ if(res.available){ search(); } }) search(); //搜索函数 function search(){原创 2020-09-12 20:35:18 · 1937 阅读 · 1 评论 -
微信小程序引入外部组件 使用bigdecimal.js(npm)
在微信小程序中使用bigdecimal 要使用到npm 安装node.js就不细讲了 创建微信小程序项目完成后 在根目录下打开cmd 输入命令 npm初始化 npm init -f 之后执行命令安装 组件bigdecimal npm i bigdecimal -S --production 安装成功示意图 如果遇到 安装失败报错 Miscellaneous Warning EPERM: EPERM: operation not permitted, open '“盘地址” 使用管理员权限打开 c原创 2020-07-14 23:29:30 · 1902 阅读 · 0 评论