improve: 邀请二维码生成

This commit is contained in:
From-wh 2023-02-20 18:22:16 +08:00
parent 677f4aa1ef
commit 02e66850c7

View File

@ -220,7 +220,7 @@
// #endif
// #ifdef APP-PLUS
img = await this.imgToBase(res.data.spread[i].pic, res.data.qrcode)
arr2 = [img.code || this.codeSrc, img.image]
arr2 = [this.codeSrc, img.image]
// #endif
that.$util.userPosterCanvas(arr2, res.data.nickname, res.data.site_name, i, this.wd, this.hg, (
tempFilePath) => {
@ -247,6 +247,7 @@
this.mpUrl = res.data.url
},
async imgToBase(url, code) {
console.log(url, code);
let res = await imgToBase({
image: url,
code: code