下载

arrow_down

开发者服务

arrow_down

更多

arrow_down
activityactivityactivityactivity
  • themelight
  • languageIcon

  • menu
Skip to Content
Zh CnDocs
参考
Bitget 链接参数

Bitget 链接参数

描述 Bitget 链接参数的作用

参数说明

参数描述例子
_needChain控制钱包切换主链
  • • ETH 网络:_needChain=eth

  • • BSC 网络:_needChain=bnb

  • • Heco 网络:_needChain=ht

更多网络请参考

_nobar是否隐藏原生header, 默认显示
_nobar=false
Preview
_nobar=true
Preview
bgw_language获取 app 当前使用的语言。需要域名白名单才可使用bgw_language=en
  • • 英语 (en)
  • • 简体中文 (zh)
  • • 繁体中文 (tw || zh_tw)
  • • 印地语 (hi)
  • • 印尼语 (id)
  • • 日语 (ja)
  • • 韩语 (ko)
  • • 泰语 (th)
  • • 越南语 (vi)
  • • 孟加拉语 (bn)
  • • 阿拉伯语 (ar)
  • • 俄语 (ru)
  • • 德语 (de)
  • • 法语 (fr)
  • • 意大利语 (it)
  • • 西班牙语 (es)
  • • 西班牙语(西班牙) (es_es)
  • • 葡萄牙语 (pt)
  • • 葡萄牙语(巴西) (pt_br)
  • • 土耳其语 (tr)

1. 链接参数获取

const searchParams = new URLSearchParams(window.location.href); searchParams.get("bgw_language");

域名未加白,可使用方案2

2. npm 包获取

import { getHeader } from "@bitget-wallet/utils"; getHeader().then((res) => { if (res?.success) { return res?.data?.LANGUAGE; } });

bgw_theme

获取当前 app 使用在使用主题模式。需要域名白名单才可使用

1. 链接参数获取

const searchParams = new URLSearchParams(window.location.href); searchParams.get("bgw_theme") === "1" ? "dark" : "light";

域名未加白,可使用方案2

2. npm 包获取

import { appMode } from "@bitget-wallet/utils"; appMode().then((res) => { if (res?.success) { return `${res?.data}` === "1" ? "dark" : "light"; } });
Last updated on