Brak opisu

wangyong 5e04106f74 修复 图标 5 lat temu
components 294271dc15 定制bug 5 lat temu
customized feef3ed9ed 压缩图片上传 5 lat temu
images 5e04106f74 修复 图标 5 lat temu
pages 0fb7c4c03e 新增 5 lat temu
style 7c64a33579 bug 6 lat temu
utils 98bf33ad7d 底部添加轮子覆盖 5 lat temu
wxParse 95d2e1cd6f daliangzao 6 lat temu
app - 副本.zip 6ab87d7971 样式修改 6 lat temu
app.js 5c87d631cb 图片压缩 5 lat temu
app.json d7984bcda4 nav 添加 5 lat temu
app.wxss 28469fac80 添加定制列表页面 6 lat temu
box_white_big_1.psd ecca072b84 白色箱子合成 5 lat temu
font.zip 7c64a33579 bug 6 lat temu
pages-old.zip c9eb3576ae order detail and zip 6 lat temu
project.config.json 294271dc15 定制bug 5 lat temu
readme.md 8556e6713f d 6 lat temu
sitemap.json 294271dc15 定制bug 5 lat temu
wx_daliangzao.zip 561c65a696 添加图片 5 lat temu

readme.md

项目需求原型 z3qowq.axshare.com

canvas 需要实现截图

生成图片后在合成

把旋转起点转为图片中心为原点的公式

注意:用roate实现旋转,重点在于改变坐标中心点 : ctx.translate(100,45)

  坐标中心点计算公式:
  x = 左上角x + 宽度/2
  y = 左上角y + 高度/2
  然后translate到(x,y)即可,之后调用rotate进行旋转。
  旋转之后填充时注意:
  ctx.fillRect(-50,-25,100,50);
  x = - 宽度/2
  y = -高度/2
  fillRect(x,y,宽度,高度)

缺少详情页,字体加粗、字体定制