个人案例
- 深度睡眠辅助小工具
提供各种白噪音
深度睡眠辅助小工具扫码体验
加个云开发静态托管H5打开小程序应该能满足你的需求: https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/staticstorage/jump-miniprogram.html
短信吊起小程序问题?1、营销工具中短信吊起小程序,最大单次支持1000条能否扩容? 2、是否可以只使用短链能力,但是使用自己短信平台进行发送?
2022-08-222M是指小程序首次加载的代码包大小,超大的小程序可以使用分包加载,把小程序拆分成多个包加载,每个包也不能超过2M,整个小程序项目代码最大好像是20M https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html
请问2M 是指的整个项目还是单个pages?请问2M 是指的整个项目还是单个pages为2M?
2022-08-22有没有可能小米、IOS上的地图坐标要转一下啊?
onLocationChange获取的地理位置为什么会漂移?onLocationChange接口获得的地理位置坐标在小米10上会出现较大漂移,在ios上则不会,这是为什么[图片][图片]
2022-08-22canvas比较蚝性能,建议改一下,图片由后台处理。或者交互改一下:图片预览部分用节点来渲染,最后提交的时候再用canvas处理完成提交给后台
iphone 13 拍照,添加画布,在图片上添加文字,导出图片,多次拍照,会出现 意外退出小程序 ?html--------------------------------------------- <sec-title title="小区门牌"></sec-title> <view class="hourse-photo"> <view class="xiang" v-for="(item,i) in houseNumberList" :key="item.photoName"> <image class="upload-del" @click.stop="handDelImg('number',item.src,houseNumberList)" src="../../static/upload-del.png" mode=""> </image> <image class="upload-img" :src="item.src" mode="scaleToFill" @click.stop="imgPreview(i,houseNumberList)"></image> </view> <view @click.stop="handUploads('number','小区门牌')" v-if="houseNumberList.length <66" class="xiang"> <image class="upload-img" :src="'../../static/camera.png'" mode=""></image> </view> <!-- overflow:visible; --> <!-- <view style='width:0px;height:0px;position: absolute;top: -999999rpx;'> <canvas :style="{'width':canvasWidth,'height': canvasHeight}" canvas-id="firstCanvas"></canvas> </view> --> <view style='width:0px;height:0px;overflow:hidden;position: fixed;top: -999999rpx;'> <canvas :style="{'width':canvasWidth,'height': canvasHeight}" canvas-id="firstCanvas"></canvas> </view> </view> js--------------------------------- wake(res, callback) { const that = this; let iUp = 0; uni.getImageInfo({ src: res.tempFilePaths[0], success: function(ress) { // console.log("wake getImageInfo success", ress); // that.canvasWidth = ress.width / 2 + 'px'; // that.canvasHeight = ress.height / 2 + 'px'; // let ctx = uni.createCanvasContext('firstCanvas'); /** 创建画布 */ // //将图片src放到cancas内,宽高为图片大小 // ctx.drawImage(res.tempFilePaths[0], 0, 0, ress.width / 2, ress.height / 2) // ctx.setFontSize(20) // 字体大小 // // ctx.setFillStyle('#0071bd') //字体颜色 // ctx.setFillStyle('#fff') //字体颜色 // ctx.rotate(24 * Math.PI / 180); // let textToWidth = ress.width / 4.5 * 0.5; // let textToHeight = ress.height / 3 * 0.3; // let textToLongWidth = ress.height / 3 * 0.3; // let textToLongHeight = ress.height / 2.5 * 0.3; // const { // addressName, // lat, // long // } = that // const wateAddress = `${addressName}` // // const latAndLong = `${String(lat).substr(0,5)},${String(long).substr(0,5)}` // const latAndLong = `${String(long).substr(0,10)},${String(lat).substr(0,9)}` // ctx.fillText(that.addressName, textToWidth, textToHeight) // ctx.fillText(latAndLong, textToLongWidth, textToLongHeight) // console.log(" wakeCanvas ctx canvasDraw",ctx) // ctx.draw(false, () => { // setTimeout(() => { // console.log("wakeCanvas ctx ctx.draw",ctx) // that.canvasDraw(callback) // }, 1000); // }); console.log("wake getImageInfo success", ress); setTimeout(() => { that.wakeCanvas(ress,res,that,callback); }, 1000); }, fail: function(ress) { console.log("wake getImageInfo fail", ress); iUp++; if(iUp <= 5 ){ that.wake(res, callback); }else{ uni.hideLoading(); uni.showToast({ icon: 'none', title: '图片上传失败,请重新拍摄上传!' }) } }, complete: function(ress) { console.log("wake getImageInfo complete", ress); if( ress.errMsg === "getImageInfo:ok"){ console.log("wake getImageInfo complete ress.errMsg === getImageInfo:ok ----- ", ress.errMsg); }else{ // uni.hideLoading(); // that.$toast('图片详细信息获取失败,请重新操作') if(iUp > 5 ){ that.wake(res, callback); } } }, }) // let ress = await uni.getImageInfo({src: res.tempFilePaths[0]}) // // let ress = (await uni.getImageInfo({src}))[1]; // that.canvasWidth = ress.width / 2 + 'px'; // that.canvasHeight = ress.height / 2 + 'px'; // let ctx = uni.createCanvasContext('firstCanvas'); /** 创建画布 */ // //将图片src放到cancas内,宽高为图片大小 // ctx.drawImage(res.tempFilePaths[0], 0, 0, ress.width / 2, ress.height / 2) // ctx.setFontSize(20) // 字体大小 // // ctx.setFillStyle('#0071bd') //字体颜色 // ctx.setFillStyle('#fff') //字体颜色 // ctx.rotate(24 * Math.PI / 180); // let textToWidth = ress.width / 4.5 * 0.5; // let textToHeight = ress.height / 3 * 0.3; // let textToLongWidth = ress.height / 3 * 0.3; // let textToLongHeight = ress.height / 2.5 * 0.3; // const { // addressName, // lat, // long // } = that // const wateAddress = `${addressName}` // // const latAndLong = `${String(lat).substr(0,5)},${String(long).substr(0,5)}` // const latAndLong = `${String(long).substr(0,10)},${String(lat).substr(0,9)}` // ctx.fillText(that.addressName, textToWidth, textToHeight) // ctx.fillText(latAndLong, textToLongWidth, textToLongHeight) // ctx.draw(false, () => { // setTimeout(() => { // that.canvasDraw(callback) // }, 1000); // }); }, // new dyj wakeCanvas(ress,res,that,callback){ const timeWakeCanvasKs = that.getNowTime(); console.log("timeWakeCanvasKs ________",timeWakeCanvasKs); that.canvasWidth = ress.width / 2 + 'px'; that.canvasHeight = ress.height / 2 + 'px'; let ctx = uni.createCanvasContext('firstCanvas', that); // console.log("wakeCanvas ctx",ctx) //将图片src放到cancas内,宽高为图片大小 ctx.drawImage(res.tempFilePaths[0], 0, 0, ress.width / 2, ress.height / 2) ctx.setFontSize(20) // 字体大小 // ctx.setFillStyle('#0071bd') //字体颜色 ctx.setFillStyle('#fff') //字体颜色 ctx.rotate(24 * Math.PI / 180); let textToWidth = ress.width / 4.5 * 0.5; let textToHeight = ress.height / 3 * 0.3; let textToLongWidth = ress.height / 3 * 0.3; let textToLongHeight = ress.height / 2.5 * 0.3; const { addressName, lat, long } = that const wateAddress = `${addressName}` // const latAndLong = `${String(lat).substr(0,5)},${String(long).substr(0,5)}` const latAndLong = `${String(long).substr(0,10)},${String(lat).substr(0,9)}` ctx.fillText(that.addressName, textToWidth, textToHeight) ctx.fillText(latAndLong, textToLongWidth, textToLongHeight) // console.log("wakeCanvas ctx canvasDraw",ctx) ctx.draw(false, () => { const timeWakeCanvasJs = that.getNowTime(); console.log("timeWakeCanvasJs ________",timeWakeCanvasJs); setTimeout(() => { console.log("wakeCanvas ctx canvasDraw ctx.draw",ctx) const timeWakeCanvasDcq = that.getNowTime(); console.log("timeWakeCanvasDcq ________",timeWakeCanvasDcq); that.canvasDraw(callback) }, 1000); }); // ctx.draw(false); // setTimeout(() => { // const timeWakeCanvasDcq = that.getNowTime(); // console.log("timeWakeCanvasDcq ________",timeWakeCanvasDcq); // that.canvasDraw(callback) // }, 1000); }, canvasDraw(callback) { const that = this let iUp = 0; uni.canvasToTempFilePath({ canvasId: 'firstCanvas', success: (res1) => { console.log("canvasDraw canvasToTempFilePath success", res1); // console.log(res1.tempFilePath, // '带水印的图片'); callback(res1.tempFilePath) }, fail: (ress) => { console.log("canvasDraw canvasToTempFilePath fail", ress); iUp++; if(iUp <= 5 ){ that.canvasDraw(callback) }else{ uni.hideLoading(); uni.showToast({ icon: 'none', title: '图片上传失败,请重新拍摄上传!' }) } }, complete: (ress) => { console.log("canvasDraw canvasToTempFilePath complete", ress); if( ress.errMsg === "canvasToTempFilePath:ok"){ // console.log("canvasDraw canvasToTempFilePath complete ress.errMsg === canvasToTempFilePath:ok ----- " , ress.errMsg); // callback(ress.tempFilePath) }else{ if(iUp > 5 ){ that.canvasDraw(callback) } // uni.hideLoading(); // this.$toast('图片水印绘制失败,请重新操作') } }, }, this); }, // 拍照上传 去掉横岗后面 handUploads(type, name) { // if (!this.addressName) { // return this.$toast('请先授权定位') // } if (!this.long) { return this.$toast('请先授权定位') } const that = this const timeKs = that.getNowTime(); console.log("timeKs ________",timeKs); uni.chooseImage({ count: 1, //默认9 sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有 'original'默认的,compressed压缩的 sourceType: ['camera'], //拍照camera,相册album success: function(res) { if (res.tempFiles[0].size > 1020000) { return that.$toast('图片太大') } // that.$loading('上传中') uni.showLoading({ title: "正在上传...", mask: true, }); console.log(res, '选择图片的rees111'); that.wake(res, (callback) => { const timeJs = that.getNowTime(); console.log("timeJs ________",timeJs); console.log(callback, 'callback'); let img = callback; that.houseNumber = img; // that.houseNumber = res.tempFiles[0].path // console.log(res, '选择图片的rees111 that.wake'); let _photoName = name + "_" + name + "_" + that.$functionPub .getSubLastYxWx(img) + that.$functionPub.getSubLastYx(img); // that.$api.uploadeFilesFormal(img, '/uploadFile/ftpUploadFile', // 'file', { // photoName: _photoName, // imageNum: uni.getStorageSync('customer_listdata').imageNum, // }) // src, urltype, name, params // uni.hideLoading(); // new // console.log(img, '选择图片的rees111 uploadeFilesFormal'); that.$api.uploadeFilesFormal(img, '/uploadFile/ftpUploadFile', 'file', { photoName: _photoName, imageNum: uni.getStorageSync('customer_listdata').imageNum, }).then(res => { if (res.code === "200") { if (type === 'number') { that.houseNumberList.push({ src: img, name, type: that.$functionPub.getSubLastYx(img), typeName: that.$functionPub.getSubLastYxWx(img), photoName: _photoName }) } else if (type === 'unit') { that.unitDoorList.push({ src: img, name, type: that.$functionPub.getSubLastYx(img), typeName: that.$functionPub.getSubLastYxWx(img), photoName: _photoName }) } else if (type === 'hourse') { that.hourseDoorList.push({ src: img, name, type: that.$functionPub.getSubLastYx(img), typeName: that.$functionPub.getSubLastYxWx(img), photoName: _photoName }) } const timeJsEnd = that.getNowTime(); console.log("timeJsEnd ________",timeJsEnd); uni.hideLoading(); } else { uni.hideLoading(); } }); }) // let img = res.tempFilePaths[0]; // that.houseNumber = img // that.houseNumber = res.tempFiles[0].path // let _photoName = name + "_" + name + "_" + that.$functionPub.getSubLastYxWx( // img) + that.$functionPub.getSubLastYx(img) // if (type === 'number') { // that.houseNumberList.push({ // src: img, // name, // type: that.$functionPub.getSubLastYx(img), // typeName: that.$functionPub.getSubLastYxWx(img), // photoName: _photoName // }) // } else if (type === 'unit') { // that.unitDoorList.push({ // src: img, // name, // type: that.$functionPub.getSubLastYx(img), // typeName: that.$functionPub.getSubLastYxWx(img), // photoName: _photoName // }) // } else if (type === 'hourse') { // that.hourseDoorList.push({ // src: img, // name, // type: that.$functionPub.getSubLastYx(img), // typeName: that.$functionPub.getSubLastYxWx(img), // photoName: _photoName // }) // } // that.$api.uploadeFilesFormal(img, '/uploadFile/ftpUploadFile', 'file', { // photoName: _photoName, // imageNum: uni.getStorageSync('customer_listdata').imageNum, // }) // src, urltype, name, params }, fail: function(ress) { console.log("handUploads chooseImage fail", ress); uni.hideLoading(); // uni.showToast({ // icon: 'none', // title: '图片上传失败,请重新拍摄上传!' // }) }, }); },
2022-08-22问题截图?
视频号绑定公众号显示信息异常?问题比较紧急,求速解决
2022-08-19需要用企业对公账号转账300
认证企业订阅号需要收费吗?认证企业订阅号需要收费吗?
2022-08-19引用、模仿内容过多。
您的应用审核被驳回?您的应用审核被驳回。 驳回原因:你好,你所提供的官网为他人网站,此次审核不予通过,建议提供与认证主体一致的官网或提供相关授权书以供审核。注:如涉及授权委托,可在提审基本信息页面的流程图处附上授权书,授权书可自行拟定,需说明清楚授权关系、授权内容,并加盖双方公司公章,个人主体则签名即可。 。 该应用仍以上次审核通过的状态在微信中正常运行 请问为什么被认为是他人网站?
2022-08-19编辑公众号推文,点击预览,然后发送到微信就行
微信推送封面图底部的渐变色区域,请问有人知道灰度这类数据吗?[图片]
2022-08-19在当前页面的js里面把默认生成的onShareAppMessage方法删掉就行
企业微信中小程序长按图片,如何能隐藏菜单栏中“分享到微信“‘、’转发”功能?希望得到官方答复,谢谢![图片]企业微信中小程序长按图片,如何可以隐藏菜单栏中“分享到微信“、‘’转发”功能?很急,谢谢各位了。
2022-08-19scroll-view高度通过calc(100vh - 固定不滚动部分内容高度),如果整个页面都是滚动的,高度直接设为100vh
视频号打开小程序后拉高到整屏幕,scroll-view高度应该怎么调整?视频号打开小程序后页面高度不是满屏,向上拉高小程序后页面高度满屏,怎么检测页面高度赋值呢
2022-08-18