保存海报修改
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
|
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
|
||||||
const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||||
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
APIHOST: ROOTPATH,
|
APIHOST: ROOTPATH,
|
||||||
|
|||||||
@@ -236,7 +236,7 @@
|
|||||||
// _this.ctx.setFontSize(uni.upx2px(24));
|
// _this.ctx.setFontSize(uni.upx2px(24));
|
||||||
// _this.ctx.fillText(_this.OriginalTxt, _strlineW, _strHeight); //商品原价
|
// _this.ctx.fillText(_this.OriginalTxt, _strlineW, _strHeight); //商品原价
|
||||||
// }
|
// }
|
||||||
// #endif
|
//// #endif
|
||||||
_this.ctx.strokeStyle = _this.OriginalColor;
|
_this.ctx.strokeStyle = _this.OriginalColor;
|
||||||
_this.ctx.moveTo(_strlineW, _strHeight - uni.upx2px(10)); //起点
|
_this.ctx.moveTo(_strlineW, _strHeight - uni.upx2px(10)); //起点
|
||||||
_this.ctx.lineTo(_strlineW + _this.ctx.measureText(_this.OriginalTxt).width, _strHeight - uni.upx2px(
|
_this.ctx.lineTo(_strlineW + _this.ctx.measureText(_this.OriginalTxt).width, _strHeight - uni.upx2px(
|
||||||
@@ -248,7 +248,7 @@
|
|||||||
_strHeight += uni.upx2px(20);
|
_strHeight += uni.upx2px(20);
|
||||||
let toTop = uni.upx2px(103);
|
let toTop = uni.upx2px(103);
|
||||||
_this.ctx.drawImage(_QrCode.path, r[0] - q[0] + C_P - uni.upx2px(201), _this.canvasH - q[1] - toTop,
|
_this.ctx.drawImage(_QrCode.path, r[0] - q[0] + C_P - uni.upx2px(201), _this.canvasH - q[1] - toTop,
|
||||||
71, 71);
|
69, 69);
|
||||||
//添加二维码 end
|
//添加二维码 end
|
||||||
|
|
||||||
//添加推荐人与描述
|
//添加推荐人与描述
|
||||||
@@ -277,7 +277,8 @@
|
|||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
errs(err);
|
errs(err);
|
||||||
_this.$queue.showToast('海报生成失败');
|
// _this.$queue.showToast(imgSrc);
|
||||||
|
_this.$queue.showToast('海报生成失败1');
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user