This commit is contained in:
zhangjianjun 2026-07-20 14:05:50 +08:00
parent 55eab99af0
commit 3214f66fb9
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import './index.scss'
// xunmeng2,devcon // xunmeng2,devcon
const LINK_PREFIX = '/p/' const LINK_PREFIX = '/p/'
const DEFAULT_LINK_CODE = 'Gbym' const DEFAULT_LINK_CODE = 'PJQQ'
const LANDING_PAGE_URL = '/pages/landing/index' const LANDING_PAGE_URL = '/pages/landing/index'
function isValidLinkCode (code: string) { function isValidLinkCode (code: string) {
@ -53,7 +53,7 @@ export default function Index () {
const wxCode = await Taro.login() const wxCode = await Taro.login()
const linkCode = normalizeQrLinkCode(scene) const linkCode = normalizeQrLinkCode(scene)
console.log('Page loaded.', wxCode) console.log('Page loaded.', LINK_PREFIX, linkCode, wxCode)
setUrl(`https://nb.zuom8.cn${LINK_PREFIX}${encodeURIComponent(linkCode)}?mpCode=${encodeURIComponent(wxCode.code)}`) setUrl(`https://nb.zuom8.cn${LINK_PREFIX}${encodeURIComponent(linkCode)}?mpCode=${encodeURIComponent(wxCode.code)}`)
}) })