feat: latest code update

This commit is contained in:
yuzhiran
2026-06-16 13:18:36 +08:00
parent 5a49d15696
commit 96c367e0f8
17 changed files with 198 additions and 107 deletions
+10 -9
View File
@@ -156,7 +156,9 @@ onLoad(async (options) => {
}))
}
}
}).catch(() => {})
}).catch(e => {
console.error('[report] auto-complete failed:', e)
})
}
}
} catch(e) { console.error(e) }
@@ -288,15 +290,12 @@ async function generateCard() {
ctx.setFillStyle('rgba(165,180,252,0.5)')
ctx.fillText('扫码开始你的模拟面试 → 在微信搜索"职引"小程序', w / 2, 690)
// QR code hint (simulated)
// QR text hint
ctx.setFillStyle('#FFFFFF')
ctx.setFontSize(12)
ctx.setFontSize(16)
ctx.setTextAlign('center')
ctx.fillText('⬛ ⬛ ⬛ ⬛ ⬛', w / 2, 760)
ctx.fillText('⬛ ⬛ ⬛ ⬛ ⬛', w / 2, 780)
ctx.fillText('⬛ ⬛ ⬛ ⬛ ⬛', w / 2, 800)
ctx.fillText('⬛ ⬛ ⬛ ⬛ ⬛', w / 2, 820)
ctx.fillText('微信小程序', w / 2, 855)
ctx.fillText('在微信搜索「职引」小程序', w / 2, 760)
ctx.fillText('查看完整面试报告', w / 2, 790)
ctx.draw(false, async () => {
try {
@@ -306,7 +305,9 @@ async function generateCard() {
itemList: ['保存到相册', '分享给好友'],
success: (res) => {
if (res.tapIndex === 0) {
uni.saveImageToPhotosAlbum({ filePath: tempRes.tempFilePath })
uni.saveImageToPhotosAlbum({ filePath: tempRes.tempFilePath, success: () => uni.showToast({ title: '已保存到相册', icon: 'success' }) })
} else if (res.tapIndex === 1) {
uni.shareAppMessage ? uni.shareAppMessage({ title: '我的面试报告', imageUrl: tempRes.tempFilePath }) : uni.showToast({ title: '请截图后分享', icon: 'none' })
}
},
})