Commit ac83def6 authored by zhengke's avatar zhengke

修改

parent d6c6a414
......@@ -147,7 +147,6 @@ export default {
};
},
onLoad(option) {
console.log(option,'option')
this.mc = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
let c = this.$uiConfig.is_bang ? 80 : 52;
......
......@@ -87,7 +87,6 @@ export default {
(res) => {
uni.hideNavigationBarLoading();
that.fenxqrcode = that.host2 + res.data;
console.log(that.fenxqrcode);
let tmpTimeout = setTimeout(() => {
that.drawCtx();
clearTimeout(tmpTimeout);
......@@ -104,7 +103,6 @@ export default {
uni.getImageInfo({
src: that.bgPic,
success: function (image) {
console.log("绘制");
ctx.drawImage(image.path, 0, 0, 750, 1344); //绘制图
uni.getImageInfo({
//头像
......@@ -112,12 +110,13 @@ export default {
success: function (image) {
ctx.save();
ctx.beginPath();
// ctx.arc(595 + 63, 1200 + 63, 63, 0, Math.PI * 2);
if(that.type==0){
ctx.arc(that.qrCodeLeft + that.halfCode, that.qrCodeTop + that.halfCode, that.halfCode, 0, Math.PI * 2);
ctx.clip();
}
ctx.setFillStyle("#ffffff");
ctx.fill();
ctx.clip();
// ctx.drawImage(image.path, 595, 1200, 126, 126); //绘制头像
ctx.drawImage(image.path, that.qrCodeLeft, that.qrCodeTop, that.qrCodeSize, that.qrCodeSize); //绘制头像
that.drawQrCode(ctx);
......@@ -202,7 +201,6 @@ export default {
},
drawQrCode(ctx) {
let that = this;
console.log("生成海报12");
setTimeout(() => {
ctx.draw(false, () => {
uni.canvasToTempFilePath(
......@@ -217,7 +215,6 @@ export default {
success: (res) => {
uni.hideLoading();
that.tempPic = res.tempFilePath;
console.log(res,'res');
},
fail(e) {
console.log(e);
......@@ -254,7 +251,6 @@ export default {
uni.authorize({
scope: "scope.writePhotosAlbum",
success: (res) => {
console.log("11111");
},
fail: (res) => {
uni.showModal({
......@@ -266,7 +262,6 @@ export default {
if (res.confirm) {
uni.openSetting({
success: (res) => {
console.log(res);
if (res.authSetting["scope.writePhotosAlbum"]) {
that.preservation();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment