系统类操作集合

Module: appointment
Parent Module: BM.appointment

Methods

addFontToolbar

addFontToolbar
(
  • id
  • fontFamily
  • fontName
  • callback
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:373

添加字体Toolbar

Parameters:

nametypeflagdescription
id String

按钮的ID,唯一

fontFamily String

哪种字体

fontName String

字的名称

callback Function

按钮被点击后响应的事件

addTextToolbar

addTextToolbar
(
  • id
  • text
  • callback
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:409

添加文本Toolbar

Parameters:

nametypeflagdescription
id String

按钮的ID,唯一

text String

按钮的文字

callback Function

按钮被点击后响应的事件

back

back ()

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:304

页面后退

changeTextToolbar

changeTextToolbar
(
  • id
  • text
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:424

更改文本Toolbar的文字

Parameters:

nametypeflagdescription
id String

按钮的ID,唯一

text String

按钮的文字

close

close ()

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:312

关闭一个页, 对于open方法

closePopup

closePopup
(
  • data
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:320

关闭 Propup 页,对应popup方法

Parameters:

nametypeflagdescription
data Object

传递给打开Popup的方法

deleteToolbar

deleteToolbar
(
  • id
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:390

删除Toolbar

Parameters:

nametypeflagdescription
id String

按钮的ID,唯一

disabledRefresh

disabledRefresh
(
  • disabled
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:363

禁用刷新选项

Parameters:

nametypeflagdescription
disabled Boolean

是否禁用

disabledToolbar

disabledToolbar
(
  • id
  • disabled
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:399

禁用Toolbar

Parameters:

nametypeflagdescription
id String

按钮的ID,唯一

disabled Boolean

是否禁用

enabledImmersiveStatusBar

enabledImmersiveStatusBar
(
  • 是否启用
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:495

设置当前是否启用沉浸式状态栏

Parameters:

nametypeflagdescription
是否启用 Boolean

getRequestData

getRequestData
(
  • callback
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:434

获取请求的数据

Parameters:

nametypeflagdescription
callback Function

获取到后通知的事件

nametypeflagdescription
data JSON

获取到的数据

goHome

goHome ()

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:338

跳转到登录主界面

goLoginView

goLoginView ()

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:346

跳转到登录界面

navigate

navigate
(
  • url
  • [direction]
  • [true]
  • [true]
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:247

打开一个新的view

Parameters:

nametypeflagdescription
url String

view中的URL地址为

[direction] String optional

打开Url的窗口的动画. 此参数暂时设置无效果

[true] Boolean optional

isNeedProgressBar 是否需要显示进度条

[true] Boolean optional

isNeedTitle 是否需要标题

open

open
(
  • url
  • [direction]
  • [true]
  • [true]
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:235

打开一个新的view,此方法和navigate方法效果一样

Parameters:

nametypeflagdescription
url String

view中的URL地址为

[direction] String optional

打开Url的窗口的动画. 此参数暂时设置无效果

[true] Boolean optional

isNeedProgressBar 是否需要显示进度条

[true] Boolean optional

isNeedTitle 是否需要标题

popup

popup
(
  • options
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:272

弹出一个页,并能够在关闭的时候接受回调函数

Parameters:

nametypeflagdescription
options JSON

选项

nametypeflagdescription
url JSON

打开的url

[id] String optional

窗口ID

[isNeedProgressBar] Boolean optional

是否需要显示进度条url

[data] JSON optional

传递给打开页面的数据,此数据可以用getRequestData方法获取到

[onClose] Function optional

关闭的回调事件

setHistroyBackDisabled

setHistroyBackDisabled
(
  • [false]
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:461

设置是否禁用WebView的后退功能

Parameters:

nametypeflagdescription
[false] Boolean optional

disabled 是否禁用

setHistroyEnabled

setHistroyEnabled
(
  • [false]
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:448

设置是否启用WebView的历史功能,可以后退WebView里面的页面

Parameters:

nametypeflagdescription
[false] Boolean optional

enabled 是否开启

setTitle

setTitle
(
  • title
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:354

设置当前页面的标题

Parameters:

nametypeflagdescription
title String

标题

setTitleBarVisible

setTitleBarVisible
(
  • isVisible
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:486

设置当前标题栏是否可见

Parameters:

nametypeflagdescription
isVisible Boolean

是否可见

setViewButton

setViewButton
(
  • buttonCode
)

Provided by the BM.appointment module.

Defined in src\BM.appointment.js:329

设置当前窗口的按钮

Parameters:

nametypeflagdescription
buttonCode String

按钮代号 [默认三种: back => 后退 点击为后退. home => 点击为跳到首页 . none => 去掉图标. 并且点击返回键也不能有任何响应]

Top