Files
xingque/pages/dashouduan/dashouduan.js
2026-07-09 00:17:03 +08:00

15 lines
472 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 旧二维码兼容dashouduan → 打手中心inviteCode 自动注册逻辑不变 */
import { parseSceneOptions } from '../../utils/base-page.js';
Page({
onLoad(options) {
const parsed = parseSceneOptions(options || {});
const inviteCode = parsed.inviteCode || options.inviteCode || '';
let url = '/pages/fighter/fighter';
if (inviteCode) {
url += `?inviteCode=${encodeURIComponent(inviteCode)}`;
}
wx.reLaunch({ url });
},
});