腾讯有数官方文档

getInfo()

获取小程序SDK状态信息,返回 String

Warning
使用在 webview 内嵌页的小程序之中,可以联通会话状态
let app = getApp()

// page with webview
Page({
  data: {
    src: '',
  },
  onShow(options) {
    const host = "http://{siteUrl}/"

    this.setData({
      src: `${host}?${app.sr.getInfo()}`
    })
  }
})