
微信小程序
π_π哦
这个作者很懒,什么都没留下…
展开
-
微信小程序方法传参 取参
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 · 434 阅读 · 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 · 849 阅读 · 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 · 1138 阅读 · 2 评论 -
微信小程序: 蓝牙搜索ibeacon设备
pages下新建一个目录目录中创建 微信小程序文件在生命周期函数 onLoad()中写入代码```script //监听蓝牙切换的状态 蓝牙切换状态 执行search函数 wx.onBluetoothAdapterStateChange(function(res){ if(res.available){ search(); } }) search(); //搜索函数 function search(){原创 2020-09-12 20:35:18 · 2034 阅读 · 1 评论 -
微信小程序引入外部组件 使用bigdecimal.js(npm)
在微信小程序中使用bigdecimal 要使用到npm安装node.js就不细讲了创建微信小程序项目完成后 在根目录下打开cmd输入命令 npm初始化npm init -f之后执行命令安装 组件bigdecimalnpm i bigdecimal -S --production安装成功示意图如果遇到 安装失败报错Miscellaneous Warning EPERM: EPERM: operation not permitted, open '“盘地址”使用管理员权限打开 c原创 2020-07-14 23:29:30 · 2093 阅读 · 0 评论