保存海报修改

This commit is contained in:
GaoHao
2024-12-13 11:40:29 +08:00
parent 8ba1fd7f96
commit f3f9af86f9
2 changed files with 10 additions and 9 deletions

View File

@@ -236,7 +236,7 @@
// _this.ctx.setFontSize(uni.upx2px(24));
// _this.ctx.fillText(_this.OriginalTxt, _strlineW, _strHeight); //商品原价
// }
// #endif
//// #endif
_this.ctx.strokeStyle = _this.OriginalColor;
_this.ctx.moveTo(_strlineW, _strHeight - uni.upx2px(10)); //起点
_this.ctx.lineTo(_strlineW + _this.ctx.measureText(_this.OriginalTxt).width, _strHeight - uni.upx2px(
@@ -248,7 +248,7 @@
_strHeight += uni.upx2px(20);
let toTop = uni.upx2px(103);
_this.ctx.drawImage(_QrCode.path, r[0] - q[0] + C_P - uni.upx2px(201), _this.canvasH - q[1] - toTop,
71, 71);
69, 69);
//添加二维码 end
//添加推荐人与描述
@@ -277,7 +277,8 @@
},
fail(err) {
errs(err);
_this.$queue.showToast('海报生成失败');
// _this.$queue.showToast(imgSrc);
_this.$queue.showToast('海报生成失败1');
uni.hideLoading()
}
});