https://developers.weixin.qq.com/miniprogram/dev/framework/quickstart/release.html#%E5%8F%91%E5%B8%83%E4%B8%8A%E7%BA%BF [图片]
如何上传小程序代码?问问各位大神如何上传小程序代码? [图片]
2023-06-09改成这样试试: socket && socket.close() socket = wx.connectSocket({ url: RESULT_STREAM_SOCKET_URL(this.data.id)})
wx.connectSocket返回的实例怎么销毁?socket = wx.connectSocket({ url: RESULT_STREAM_SOCKET_URL(this.data.id)}) 这样创建的实例,在onError和onClose的code不等于1000时重连,我重连逻辑就是上方这样重新给socket变量赋值,这样相当于重新创建了个实例,有最大5个限制,我想把之前error或者close的实例注销掉不占用这5个名额,要怎么操作?
2023-06-08其它的也是可以的
live-pusher和live-player支持推流或播放自己服务器的视频吗?r了个t live-player 的 src 属性和 live-pusher 的 url 属性可以是公司自己搭建的服务器的连接吗? 还是说只能是腾讯云的?
2023-06-08可以设置一下缩放级别:CameraContext.setZoom(Object object) https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.setZoom.html
iphone14 camera 近距离无法聚焦?iphone14,在近距离拍摄身份证时,无法聚焦。苹果其他版本手机均没有此类问题,有解决方法吗?
2023-06-07拼音+文字是一块: display: flex; flex-direction: column; align-items: center; 每句诗是一块: display: flex; flex-direction: row; align-items: center; 最后整体一块: display: flex; flex-direction: column; align-items: center; 数据组装格式: [ [ { pinyin: 'jing', zh: '静' }, { pinyin: 'ye', zh: '夜' }, { pinyin: 'si', zh: '思' } ], [ { pinyin: 'tang', zh: '【唐】' }, { pinyin: 'dai', zh: '【代】' }, { pinyin: 'li', zh: '李' }, { pinyin: 'bai', zh: '白' } ] ...... ] [图片]
css排版求教?[图片] 现在想让诗句上下都对齐,不单单每一行。求css的参数,使用flex布局。 css代码如下: text { font-family: "Microsoft YaHei"; } .container { display: flex; flex-direction: column; align-items: center; background-color: #f2f2f2; } /* 盒子 */ .box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10rpx; } /* 标题 */ .title { display: flex; flex-direction: row; align-items: flex-end; padding: 0 10rpx; } .title .pinyin { font-size: 1.5em; } .title .hanzi { font-size: 1.8em; } /* 诗人信息 */ .info { display: flex; flex-direction: row; align-items: flex-end; margin-bottom: 10rpx; } /* 朝代 */ .dynasty { display: flex; flex-direction: row; margin-right: 10rpx; } .dynasty .pinyin { font-size: 1.2em; } .dynasty .hanzi { font-size: 1.5em; } /* 诗人 */ .poet { display: flex; flex-direction: row; } .poet .pinyin { font-size: 1em; } .poet .hanzi { font-size: 1.3em; } /* 诗句 */ .verses { display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: pre-wrap; text-align: justify; word-break: break-all; vertical-align: middle; } .verse { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; vertical-align: middle; } .verse .pinyin { font-size: 1em; vertical-align: middle; } .verse .hanzi { font-size: 1.3em; vertical-align: middle; }
2023-06-06可以理解为一种快速打开小程序的途径,举一个使用场景:每个商品都有唯一的商品码,即一物一码,可以用微信扫这个码,快速打开小程序展示对应的商品介绍等等。
小程序官方后台开发管理里面的扫普通链接二维码打开小程序有啥用?小程序官方后台开发管理里面的扫普通链接二维码打开小程序有啥用? 这个功能 扫普通链接二维码打开小程序 [图片]
2023-06-06里面有使用到 canvasContext.createImageData 方法吗? 目前小程序那边使用了这个方法后,安卓手机微信升级到 8.0.37,会出现无法绘制问题。
使用 canvas.toTempFilePath截图在小米手机上会出现花屏?const dpr = wx.getSystemInfoSync().pixelRatio canvas.toTempFilePath({ x: 0, y: 0, width: 500, height: 400 , destWidth: 500*dpr, destHeight: 400*dpr, fileType: 'png', quality: 1, success(res) { wx.shareAppMessage({ imageUrl:res.tempFilePath, }); } }); 在其他手机上测试没有问题但是在小米手机上会出现花屏无法正常截图
2023-06-06里面有使用到 canvasContext.createImageData 方法吗? 目前小程序那边使用了这个方法后,安卓手机微信升级到 8.0.37,会出现无法绘制问题。
使用 toTempFilePathSync截图后分享图片为黑色https://developers.weixin.qq.com/minigame/dev/api/render/canvas/Canvas.toTempFilePathSync.html 使用这个api截图保存出来的画面黑色
2023-06-06wx.downloadFile 这一步可以不需要的,再去看看速度如何
canvas 2d createImage创建图片对象后,使用onload加载图片速度慢?Android 微信版本 8.0.37 let img = canvas.createImage(); const ctx = canvas.getContext('2d'); wx.downloadFile({ url: url, //网络图片 success:(res) => { img.src = res.tempFilePath; img.onload = () => { let imgSize = this.canvasImgMode(mode,img,width,height); ctx.drawImage(img, imgSize.sx,imgSize.sy,imgSize.sw,imgSize.sh, x, y, imgSize.width, imgSize.height); reslove(imgSize); } }, fail(error) { console.log(error) reslove() } }); 图片加载速度慢
2023-06-06不需要的,用别的手机试试,排除设备问题
wx.vibrateLong需要授权才能震动吗https://developers.weixin.qq.com/minigame/dev/api/device/vibrate/wx.vibrateLong.html
2023-06-06