增加分销二维码邀请

This commit is contained in:
gyq
2026-01-22 14:50:28 +08:00
parent 94be2739af
commit dc3174ef13
2 changed files with 36 additions and 3 deletions

View File

@@ -497,12 +497,13 @@ onShareAppMessage(async (res) => {
});
onLoad(async (opt) => {
await handleMixinOnLoad(opt);
if (opt.q) {
const q = decodeURIComponent(opt.q);
const params = parseQueryString(q.split('?')[1]);
await handleMixinOnLoad(params);
Object.assign(options, params);
} else {
await handleMixinOnLoad(opt);
Object.assign(options, opt);
}
console.log(options);