- 类目符合开通条件,用户隐私已更新,wx.getLocation接口无权限开通,为什么呢?
也通过 隐私接口权限自助排查流程(https://developers.weixin.qq.com/community/develop/doc/00062a6d514c88baacdf52e8a56009),但没发现异常,但还是没有wx.getLocation接口权限,麻烦帮忙看看 AppID: wx3ce525cc6a2f0700
2023-09-20 - canvas的文字渐变填充安卓不显示,模拟器和ios正常展示?
代码片段: https://developers.weixin.qq.com/s/MrqfgAmj7mDa 渐变文字在模拟器和ios上显示正常,但在安卓上面却不显示 const app = getApp() Page({ data: {}, onLoad: function () { // 通过 SelectorQuery 获取 Canvas 节点 wx.createSelectorQuery() .select('#canvas') .fields({ node: true, size: true, }) .exec(this.init.bind(this)) }, init(res) { const width = res[0].width const height = res[0].height const canvas = res[0].node const ctx = canvas.getContext('2d') const dpr = wx.getSystemInfoSync().pixelRatio canvas.width = width * dpr canvas.height = height * dpr ctx.scale(dpr, dpr) const gradient = ctx.createLinearGradient(width * 0.66, height * 0.55, width * 0.7, height * 0.55) gradient.addColorStop('0', 'rgba(213,92,119,1)') gradient.addColorStop('1', 'rgba(255,173,97,1)') ctx.fillStyle = gradient ctx.fillText('这是一行文字', width * 0.64, height * 0.55) const img = canvas.createImage() img.onload = () => { this._img = img } img.src = './car.png' }})
2022-11-07