正常,可以使用以下属性进行修改 [图片]
为什么安卓input输入框placeholder状态及点击时字体及字体大小、字宽都一样?[图片]
2022-01-12你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
map安卓手机上标记点点击无效,id也添加了怎么回事?<map id="map" style="width: 100%; height: 100vh;" :latitude="latitude" :longitude="longitude" :show-location="true" :scale="mapScale" :max-scale="19" @markertap="bindMarkerTap" @updated="updatedFn" @regionchange="regionchange" ></map>
2022-01-12参考下 https://developers.weixin.qq.com/community/develop/doc/000a6c9719888086282af0dfb56401
微信小程序,如何调用微信支付实名认证获取身份证号?(类“粤事通”)微信小程序,如何调用微信支付实名认证获取身份证号?(类“粤事通”)
2022-01-12你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
<canvas type="2d"> 模式个别机型偶尔闪退?在使用canvas 开启2d模式下,红米机型(微信,基础库都是最新)重新进入小程序偶尔会闪退,试过其他包括华为,小米,ios都未出现。 当关闭2d模式该机型就不会出现偶发的闪退。求问这个谁遇到过,怎么处理的呢
2022-01-12提供下可以复制的rid看看
自定义交易组件,售后接口,创建售后 一直返回“请求体中需要售后的商品不存在于原订单的商品列表中 ”?[图片] 上面的请求返回如下 [图片] 然后潜意识就认为自己的商品id错了,查询的了在微信那边的订单信息,如下 [图片] 希望官网能解答下,out_order_id = 472 ,openid = oL7GS5dxWTiEFP7FywyXbgBbKmHk ,out_product_id=160
2022-01-12请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
canvas 2d 真机调试报错 ?[图片] <!--index.wxml--> <view class="splice-page"> <canvas id="tempCanvas" type="2d" style="position:absolute;left:-999999px"></canvas> <view class="saveButton"> <test class="icon-upload " bindtap="chooseImags">上传</test> <text class="icon-save" bindtap="saveImgToPhone"></text> </view> <view class="header"> <view class="upload_img photoframe" > <image class="frame" mode="widthFix" src="{{frameSrc}}"></image> <image class="photo" src="{{imgSrc}}" disableScroll="true" style="width:{{imgWidth}}px;height:{{imgHeight}}px"></image> </view> <image src="{{canvasImageSrc}}" style="z-index: 3;"/> </view> </view> // index.js // 获取应用实例 const app = getApp() Page({ ctx: null, canvasNode: null, dpr: 1, phoneInfo: null, data: { frameSrc: "https://scpic.chinaz.net/files/pic/pic9/201612/fpic9590.jpg", imgSrc: "", imgWidth: 0, imgHeight: 0, ImgObj:null, frameObj: null, canvasImageSrc: null }, // 事件处理函数 bindViewTap() { wx.navigateTo({ url: '../logs/logs' }) }, onReady() { this.phoneInfo = wx.getSystemInfoSync() const query = wx.createSelectorQuery().in(this); query .select("#tempCanvas") .fields({ node: true, size: true, }) .exec((res) => { this.canvasNode = res[0].node; this.ctx = this.canvasNode.getContext("2d"); this.dpr = this.phoneInfo.pixelRatio; this.canvasNode.width = 230 * this.dpr; this.canvasNode.height = 280 * this.dpr; this.ctx.scale(this.dpr, this.dpr); }); }, onLoad() { }, async chooseImags() { const data = await wx.chooseImage({ count: 1, sizeType: ["original", "compressed"], sourceType: ["album", "camera"], }) console.log(data); const ImgObj = await wx.getImageInfo({ src: data.tempFilePaths[0], }) this.setData({ imgSrc: ImgObj.path, imgWidth: ImgObj.width, imgHeight: ImgObj.height }) console.log(ImgObj); console.log(this.data.frameSrc); const frameObj = await wx.getImageInfo({ src: this.data.frameSrc }) console.log(frameObj); this.setData({ ImgObj, frameObj }) }, saveImgToPhone() { const t = this; const i = this.ctx; const c = this.canvasNode; wx.showLoading({ title: "生成中", }); let {ImgObj, frameObj} = this.data let _offsetX = Math.abs((frameObj.width - ImgObj.width) / 2); let _offsetY = Math.abs((frameObj.height - ImgObj.height) / 2); let _width = Math.max(ImgObj.width, frameObj.width); let _height = Math.max(ImgObj.height, frameObj.height); let framImgEl = c.createImage(); console.log("framImgEl start", framImgEl); framImgEl.onload = () => { i.drawImage( framImgEl, 0, 0, 230, 280, ); }; framImgEl.onerror = (e) => { console.log("framImgEl err", framImgEl, e); } framImgEl.src = frameObj.path; let imgEl = c.createImage(); console.log("imgEl start", imgEl); imgEl.onerror = (e) => { console.log("imgEl err", imgEl, e); } console.log("imgEl create", imgEl); imgEl.onload = () => { console.log("imgEl", imgEl); i.drawImage( imgEl, 20, 20, 230 - 40, 280 - 40 ); }; imgEl.src = ImgObj.path; setTimeout(() => { t.getTemFile({ width: _width, height: _height }) }, 800) }, getTemFile(options) { console.log("getTemFile 触发", options); let t = this; let c = this.canvasNode; wx.canvasToTempFilePath({ canvas: t.canvasNode, }) .then((res) => { console.log("getTemFile success", res); t.setData({ canvasImageSrc: res.tempFilePath, }) wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, }) .then((_res) => { wx.hideLoading() console.log(" _res", _res); }) .catch((err) => { console.log("err", err); }) }) .catch((err) => { console.log("getTemFile err", err); }); }, }) /**index.wxss**/ /* pages/slicePhoto/slicePhoto.wxss */ .splice-page { height: 100%; overflow: hidden; background-color: #f1f1f1; padding-top: 100rpx; } .saveButton { position: absolute; top: 30rpx; right: 40rpx; padding: 10rpx; font-size: 0; opacity: 0.7; z-index: 5; display: flex; align-items: center; } .icon-upload { font-size: 34rpx; display: inline-block; margin-right: 20rpx; } /* 保存图片按钮 */ .icon-save { background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Ctitle%3Esave%3C/title%3E %3Cpath d='M21.7 7.3l-5-5c-0.2-0.2-0.4-0.3-0.7-0.3h-11c-1.7 0-3 1.3-3 3v14c0 1.7 1.3 3 3 3h14c1.7 0 3-1.3 3-3v-11c0-0.3-0.1-0.5-0.3-0.7zM16 20h-8v-6h8v6zM20 19c0 0.6-0.4 1-1 1h-1v-7c0-0.6-0.4-1-1-1h-10c-0.6 0-1 0.4-1 1v7h-1c-0.6 0-1-0.4-1-1v-14c0-0.6 0.4-1 1-1h1v4c0 0.6 0.4 1 1 1h8c0.6 0 1-0.4 1-1s-0.4-1-1-1h-7v-3h7.6l4.4 4.4v10.6z'%3E%3C/path%3E %3C/svg%3E"); background-size: cover; display: inline-block; width: 60rpx; height: 60rpx; } .saveButton:active .icon-save:active { background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Ctitle%3Esave%3C/title%3E %3Cpath d='M21.7 7.3l-5-5c-0.2-0.2-0.4-0.3-0.7-0.3h-11c-1.7 0-3 1.3-3 3v14c0 1.7 1.3 3 3 3h14c1.7 0 3-1.3 3-3v-11c0-0.3-0.1-0.5-0.3-0.7zM16 20h-8v-6h8v6zM20 19c0 0.6-0.4 1-1 1h-1v-7c0-0.6-0.4-1-1-1h-10c-0.6 0-1 0.4-1 1v7h-1c-0.6 0-1-0.4-1-1v-14c0-0.6 0.4-1 1-1h1v4c0 0.6 0.4 1 1 1h8c0.6 0 1-0.4 1-1s-0.4-1-1-1h-7v-3h7.6l4.4 4.4v10.6z' fill='%23d6204b'%3E%3C/path%3E %3C/svg%3E"); } .saveButton:active .icon-upload { color: blueviolet; } /* 相框区域 */ .header { margin-top: 40rpx; height: 100%; display: flex; justify-content: center; } .header .upload_img { width:100%; min-height: 300px; display: flex; border-radius: 10rpx; align-items: center; background-color: #ffffff; justify-content: center; } .photoframe { position: absolute; width: 100%; overflow: hidden; z-index: 2; } .photoframe .photo { position: absolute; z-index: 2; height: 100%; width: 100%; } .photoframe .frame { position: absolute; z-index: 2; width: 100%; margin: 0; } @-webkit-keyframes animation { 0% { bottom: -900rpx; } 100% { bottom: 0; } } @keyframes animation { 0% { bottom: -900rpx; } 100% { bottom: 0; } } .swiper-content { position: fixed; bottom: 20rpx; margin-top: 20rpx; width: 100%; height: 200rpx; overflow: hidden; white-space: nowrap; background-color: #ffffff; padding: 20rpx 0; } .frameBox { width: 200rpx; height: 180rpx; display: inline-block; margin-right: 20rpx; } .frameBox .frameBox-image { width: 100%; height: 100%; }
2022-01-12需要 https [图片]
局域网通信错误校验了request域名{"errMsg":"request:fail url not in domain list"} {"data":{},"url":"http://192.168.137.94:7779/KEY_RIGHT..controller","timeout":500} 小程序连接局域网,与局域网设备保持同一wifi,对设备发起指令请求,使用的API是 wx.request 局域网请求时,直接提示没有配置request域名。 此功能在1年以前是好使的,并且经过了测试验证和线上验收。 最近1年没有关注,最近线上用户大量反馈说局域网环境下不好使,用户中有安卓用户也有IOS用户。 有的模块本身具备局域网失败后,fallback使用跨网方案可以保证功能正常, 但有的模块完全依赖小程序局域网通信,局域网通信必现失败后,产品逻辑遭到根本性破坏。 文档中说,如果局域网ip与本机不相同,是可以直接使用http加ip方式访问接口,并且不用后台添加请求域名。 根据社区搜索,提示的几种方案均不能解决问题 1.http换成https。 此方案无效,不能解决 2.request域名添加局域网地址。 此方案没有可操作性,局域网地址无法穷举 3.打开调试模式vconsole,不校验合法域名。 经过试验,只要打开vconsole,问题立即就解决了,不校验合法域名也可以解决。 但此方案同样没有可操作性,不可能让线上大量用户都开vconsole。
2022-01-11请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
小程序image标签在Mac客户端无法显示本地图片小程序的image组件在微信Mac端无法显示本地图片,微信iOS环境和微信Android环境和微信Windows环境均正常显示,微信Mac环境无法显示本地图片报错信息如下,网络图片可以显示。尝试过svg替换成png图片无效,尝试过图片拖拽到根目录无效。 复现步骤:使用小程序片断代码复制到一个有正式AppID的小程序代码里,编译后上传到体验版,手机扫描体验版二维码后,点击顶部三个点,使用分享到微信用户功能发送到Mac电脑端,在Mac电脑端里打开小程序体验码分享,打开调试即可看到加载出错信息。 Mac环境: [图片] 错误信息: [图片]
2022-01-11请进入腾讯广告开发者专区(https://developers.e.qq.com/),点击页面右下角侧“问号Logo”,通过【反馈中心】进行反馈,会有专人及时处理。
有时候关闭插屏广告后,界面会卡住[图片][图片]
2022-01-11是指出现下面弹框吧?代码示例提供下看看 [图片] 并扫码提供下具体机型等信息 [图片]
wx.chooseMessageFile会调起选择图片??https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseMessageFile.h 盼回复 机型 iphone11 [图片][图片]
2022-01-11