Module: plus

请在whale.plus模块内调用

Source:

Methods


<inner> getQxAppInfo(callback)

获取app信息

Parameters:
Name Type Description
callback function

回调函数(接收参数info如下表)

Properties:
Name Type Description
info.OSName String

系统名

info.OSVersion String

系统版本

info.APPVersion String

app版本

info.DeviceType String

设备类型

Source:
Example
if(window.getQxApiInfo){
        window.getQxApiInfo(function(data){
            console.log(data);
            //输出 "{'OSName':'IOS','OSVersion':'9.3','APPVersion':'1.1.7','DeviceType':'huawei G3'}"
        });
    }

<inner> getQxToken(callback)

获取app token

Parameters:
Name Type Description
callback function

回调函数(接收参数token如下表)

Properties:
Name Type Description
info String

token信息

Source:
Example
if(window.getQxToken){
        window.getQxToken(function(token){
            console.log(token);
            //输出 "tresssdwrtdfdgghrr"
        });
    }

<inner> jumpToAppPage(pageCode)

跳转到app页面

Parameters:
Name Type Description
pageCode String

页面id

Source:

<inner> setPageTitle(title)

设置页面标题

Parameters:
Name Type Description
title String

页面id

Source: