怎么看都是你们数据的问题
用户登录时提示undefined is not an object?在测试版进行小程序测试时一个测试账号发生登录错误导致无法使用微信登陆,但其他账号是正常的 手机型号iphone 12 pro ios14.3 微信版本8.0.0 基础库版本2.15.0[502] [图片] otherlogin:function(e){ let that = this; // 获取用户信息 wx.getSetting({ success(res) { if (res.authSetting['scope.userInfo']) { wx.getUserInfo({ success(res) { console.log(res) that.setData({ nickName:res.userInfo.nickName, avatarUrl:res.userInfo.avatarUrl }) // 登录 wx.login({ success:(res)=>{ // console.log(res) // 请求后台登录存储token wx.request({ url: app.globalData.URL+'/api/user/third', method:'GET', data:{ 'platform':'微信', 'code':res.code }, header:{"content-type":"application/json"}, success:(res)=>{ console.log(res) wx.setStorageSync('token', res.data.data.userinfo.token) if(res.data.data.status==1){ wx.request({ url: app.globalData.URL+'/api/user/profile', method:'GET', data:{ 'avatar':that.data.avatarUrl, 'nickname':that.data.nickName }, header:{"content-type":"application/json",'token':res.data.data.userinfo.token}, success:(res)=>{ wx.reLaunch({ url: '../index/index', }) } }) }else if(res.data.data.status==0){ wx.navigateTo({ url: '../choseposition/choseposition', }) } } }) } }) }, fail(res) { console.log("获取用户信息失败", res) } }) } else { console.log("未授权=====") that.showSettingToast("请授权") } }, fail(res){ console.log(res) } }) },
2021-01-29翻译一下就好了,应该意思是体积超过2M了
分包问题[图片]https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html { "pages": [ "pages/login/login" , "pages/machineOperator/jobs/jobs", "pages/machineOperator/uncompletedJobsList/uncompletedJobsList", "pages/machineOperator/newJobToday/newJobToday", "pages/machineOperator/functionExpansionIndex/functionExpansionIndex" ], "tabBar": { "color": "#356", "selectionedColor": "#000", "backgroundColor":"#fff", "borderStyle": "white", "list": [ { "pagePath": "pages/machineOperator/jobs/jobs", "iconPath": "/pages/machineOperator/images/workQuery.jpg", "selectedIconPath": "/pages/machineOperator/images/workQuerySelected.jpg", "text": "历史任务" }, { "pagePath": "pages/machineOperator/uncompletedJobsList/uncompletedJobsList", "iconPath": "/pages/machineOperator/images/dispatchM.jpg", "selectedIconPath": "/pages/machineOperator/images/dispatchMSelected.jpg", "text": "新派任务" }, { "pagePath": "pages/machineOperator/newJobToday/newJobToday", "iconPath": "/pages/machineOperator/images/personalInformation.jpg", "selectedIconPath": "/pages/machineOperator/images/personalInformationSelected.jpg", "text": "今日任务", "dot":true }, { "pagePath": "pages/machineOperator/functionExpansionIndex/functionExpansionIndex", "iconPath": "/pages/machineOperator/images/personalInformation.jpg", "selectedIconPath": "/pages/machineOperator/images/personalInformationSelected.jpg", "text": "功能扩展", "badge":"new" } ] }, "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "Weixin", "navigationBarTextStyle": "black" }, "subPackages": [ { "root": "page/systemManagerPackage/", "pages": [ "pages/systemManager/systemManagerIndex/systemMangerIndex" ], "independent": true } ], "networkTimeout": { "request": 10000, "connectSocket": 10000, "uploadFile": 10000, "downloadFile": 10000 }, "debug": false, "sitemapLocation": "sitemap.json" }
2021-01-29你这。。。
请问这个弹窗怎么做?[图片]
2021-01-29不要发布呗,设置为体验版就行了
灰度发布?微信小程序发布后,如何只对指定人员开放?
2021-01-29你是想说,滚动之后,尽管你没有点确定,所选的值也都渲染在了页面上是吧。其实你想要的效果是可以实现的,再仔细看一下
picker三级联动不能监听取消和确定事件吗?picker组件里,选择了multiSelector多列选择器,也成功失效了效果,但是只有bindChange和bindcolumnchange事件,我在picker选项中以滚动,就渲染到了界面上 [图片] 不能监听到取消和确实事件吗?这样也太不人性了吧?
2021-01-29background-size设置了没有,而且有时候要加important
关于图片手机端不显示,电脑端却显示?我原本的代码是这样的 <view class="bg-img radius-20" style="background-image: url('{{item.src}}');height: 500rpx;" bindtap="btnbox{{item.id}}"></view> 这样写,发现只有电脑端微信小程序可以展示出图片; 我改成这样后,手机端小程序可以显示图片了,但是这个style没作用。 <image class="bg-img radius-20" src="{{item.src}}" bindtap="btnbox{{item.id}}" style="height: 500rpx" mode="widthFix"></image> 手机端不支持第一种方法吗???
2021-01-29用swiper把
使用scroll-view 进行横向滚动的时候,如何每次滚动都显示一个完整的区域?[图片] [图片] 要如何才能每次一滚动都显示像图一一样完整的区域,而不是像图二这样停留在中间的位置呢
2021-01-29确实,这都被你发现了。我一般不同文件定义类都加不同前缀
关于开发者自定义样式可影响小程序内置组件样式的问题在页面样式index.wxss中定义.wrapper{ width: 100rpx }样式(不需要显式引用),在index.wxml中定义如下代码: [图片] 此时在开发者工具中预览,可观察到<picker-view-column>组件的宽度为100rpx。 同样地,.mask样式也有概率影响到某些组件样式。(具体哪个组件忘了,原理应该是和上述一致。)
2021-01-28你的button是不是写open-type属性了
小程序调试时每次点击按钮都会出现设置页面,怎么解决?小程序中设置了多个页面、多个按钮,但是每次点击任何一个按钮的时候都会出现下面图的设置页面,请问各位大佬,这样的情况应该如何解决呢[图片]
2021-01-28var data = [0xAA, 0x01, 0x00]; var buf = new ArrayBuffer(data.length); var dataView = new DataView(buf); data.forEach(function (item, index) { dataView.setUint8(index, item); }); buf就是你想要传的值
writeBLECharacteristicValue的value值如何传多个字节的十六进制的值?例如:AA 01 00 06 0C 01 02 00 08 00 01 01这样十六进制的值,我是要一个一个拼接的起来的,拼接成字符串似乎不行啊
2021-01-28