- 微信小程序商城首页放视频需要官方审核,商城首页的样式都是自定义保存在数据库中查出来?
需要官方审核?
04-09 - 使用<canvas/>标签做一个刮刮乐的样式效果,模拟器和真机效果不一样?
<!-- 刮刮乐--> <view class="scratch-card"> <!-- 添加积分提示 --> <view class="notice"> 每次抽奖将消耗<span class="expend">{{obts.needpoint}}积分</span>,祝您好运! </view> <canvas id="myCanvas" canvas-id="canvas" style="display:block;height:75%;width:92%;top:12%;left:4%;position:relative;" bindtouchstart="onTouchStart" bindtouchmove="onTouchMove" bindtouchend="onTouchEnd"/> <!-- 其他元素如背景图片等 --> <view class="container"> <text class="prizeText">{{prizeText}}</text> </view> </view>initCanvas() { console.log('初始化画布'); const systemInfo = wx.getSystemInfoSync(); // 获取系统信息 this.canvasWidth = systemInfo.windowWidth; // 根据实际窗口宽度设置 this.canvasHeight = systemInfo.windowHeight; // 根据实际窗口高度设置(或自定义) console.log('窗口宽度',systemInfo.windowWidth); console.log('窗口高度',systemInfo.windowHeight); this.ctx = wx.createCanvasContext('canvas', this); if (!this.ctx) { console.error("Canvas 上下文创建失败"); return; } console.log('Canvas 上下文:', this.ctx); // 设置初始背景色 this.ctx.setFillStyle('#ADADAD'); this.ctx.fillRect(0, 0, this.canvasWidth, this.canvasHeight); console.log('填充矩形完成'); // 文本绘制循环 for (let i = 0; i < 20; i++) { this.ctx.rotate((-45 * Math.PI) / 180); this.ctx.font = "16px Arial"; this.ctx.fillStyle = "#EEEFEF"; this.ctx.fillText('刮一刮,有惊喜 刮一刮,有惊喜 刮一刮,有惊喜 刮一刮,有惊喜', -200, i * 60); this.ctx.rotate((45 * Math.PI) / 180); console.log(`文本绘制循环 ${i} 完成`); } setTimeout(() => { this.ctx.draw(true); console.log('draw 方法调用完成'); }, 0); }模拟器里画布的样式都是在,效果也能实现,但是在真机中效果就没有了,但是能在控制台中定位位置,而是没有效果
03-03 - 在pc端授权微信小程序第三方成功了,但是重定向到绑定微信页面的时候,微信小程序的appId没有回显?
1
2024-12-30 - 微信小程序后台中开发管理中设置服务器域名,对接第三方后,就不能手动修改了?
[图片]
2024-12-30 - 小程序发货信息管理服务接口调用返回48001,api unauthorized?,大佬帮忙看看,谢谢
1.已经在第三方和微信开发平台小程序进行授权,并且已经成功更新授权。2.appid也是微信小程序的,没有调错。3。原先是没有对接发货管理服务的api,是在商户号中开通了对应的功能服务,现在才接入服务的[图片]
2024-12-26