API Docs for: 1.0.0
Show:

smslist Class

Defined in: sms/smslist.js:3
Module: smslist

Sms list

Methods

addSendMessage

(
  • sms
  • notCleanChatInput
)

Defined in sms/smslist.js:863

增加发送内容到聊天室

Parameters:

  • sms Object

    JSON

  • notCleanChatInput Boolean

    是否清除输入框内容

addSendSmsError

()

Defined in sms/smslist.js:587

添加发送错误消息

bindingEvents

()

Defined in sms/smslist.js:1374

事件绑定

cancelSending

()

Defined in sms/smslist.js:728

取消剩余短信发送操作

changeShownMsgs

()

Defined in sms/smslist.js:309

页面发生滚动后,改变页面显示的短消息

checkDeleteBtnStatus

()

Defined in sms/smslist.js:367

删除按钮禁用可用处理

checkSimStatusForSend

()

Defined in sms/smslist.js:1332

SIM卡未准备好时,禁用发送按钮

cleanSmsList

()

Defined in sms/smslist.js:95

清楚短信列表内容

clearChatList

()

Defined in sms/smslist.js:907

清空聊天室内容

clearMySmsErrorMessage

(
  • id
)

Defined in sms/smslist.js:881

清楚错误消息,避免翻译问题

Parameters:

  • id Integer

    短信编号

dealContent

(
  • content
)

Defined in sms/smslist.js:916

过滤短消息内容

Parameters:

  • content String

    短消息内容

dealPhoneBooks

()

Defined in sms/smslist.js:181

双异步获取设备侧和sim卡侧的短信息,并将其合并

deleteDraftSms

(
  • ids
  • numbers
)

Defined in sms/smslist.js:1078

删除草稿

Parameters:

  • ids Object
  • numbers Object

deleteMultiDraftSms

(
  • ids
)

Defined in sms/smslist.js:1104

删除群聊草稿草稿

Parameters:

  • ids Object

draftListener

()

Defined in sms/smslist.js:1774

文档内容监听,判断是否修改过

draftSmsItemClickHandler

(
  • groupId
)

Defined in sms/smslist.js:1906

点击群聊草稿进入草稿发送页面 在进入的过程中会先删掉草稿

Parameters:

  • groupId Object

fixScrollTop

()

Defined in sms/smslist.js:1986

确定最后一条短消息距离顶部的距离

getLatestDraftSms

()

Defined in sms/smslist.js:1841

获取最新的草稿信息

getLatestMessage

() Object

Defined in sms/smslist.js:737

获取最新的选消息

Returns:

Object:

new message

getNameByNumber

(
  • num
)

Defined in sms/smslist.js:1502

获取聊天对象的名字

Parameters:

  • num String

    电话号码

getNameOrNumberByNumber

(
  • num
)

Defined in sms/smslist.js:1516

获取聊天对象的名字,如果没有名字,则显示号码

Parameters:

  • num String

    电话号码

getPeopleLatestMsg

()

Defined in sms/smslist.js:1134

获取当前聊天对象最新的短消息

getPhoneBooks

()

Defined in sms/smslist.js:164

获取电话本信息,并与短消息关联

getSelectedItem

() Array

Defined in sms/smslist.js:353

获取已选择的条目

Returns:

Array:

getShowNameByNumber

(
  • num
)

Defined in sms/smslist.js:1488

获取聊天对象的名字和号码

Parameters:

  • num String

    电话号码

getSMSMessages

(
  • callback
)

Defined in sms/smslist.js:69

获取全部短消息,并将短信通过回调函数getPhoneBooks,与电话本进行关联

Parameters:

  • callback GetPhoneBooks

    回调:获取全部电话本信息getPhoneBooks

gotoBottom

()

Defined in sms/smslist.js:1223

滚动到底部

groupSms

(
  • messages
)

Defined in sms/smslist.js:103

关联后的短消息根据电话号码进行分组

Parameters:

  • messages Array

    短消息数组

hidePopup

()

Defined in sms/smslist.js:898

关闭快速添加联系人overlay

init

()

Defined in sms/smslist.js:1366

初始化页面及VM

initSmsCapability

()

Defined in sms/smslist.js:1318

初始化短信容量状态

initStatus

()

Defined in sms/smslist.js:1241

初始化页面状态信息

loadData

()

Defined in sms/smslist.js:2001

加载数据

saveDraftAction

(
  • data
)

Defined in sms/smslist.js:1815

保存草稿回调动作

Parameters:

  • data Object

showMultiDraftListData

()

Defined in sms/smslist.js:294

群组草稿列表显示

synchSmsList

(
  • nums
  • ids
)

Defined in sms/smslist.js:1963

同步短信列表数据

Parameters:

  • nums Array
  • ids Array

updateChatInputWordLength

()

Defined in sms/smslist.js:1713

更新剩余字数

updateDBMsg

(
  • msg
)

Defined in sms/smslist.js:762

发送短信后,更新短信数据对象

Parameters:

  • msg Object

updateMsgList

(
  • msg
  • number
)

Defined in sms/smslist.js:785

发送短信后,更新短信列表

Parameters:

  • msg Object
  • number String

    号码不为空做删除处理,为空做增加处理

updateNameInputWordLength

()

Defined in sms/smslist.js:1468

更新剩余字数

updateSmsCapabilityStatus

(
  • capabilityContainer
)

Defined in sms/smslist.js:1348

更新短信容量状态

Parameters:

  • capabilityContainer Object

    放置容量信息的容器

Attributes

addPhonebookTmpl

Object

Defined in sms/smslist.js:24

快速添加联系人模板

chatRoomInLoading

Boolean

Defined in sms/smslist.js:19

聊天室信息正在加载中

currentPage

Integer

Defined in sms/smslist.js:9

当前页

groupDraftItems

Array

Defined in sms/smslist.js:49

短信列表显示群聊草稿

groupDrafts

Array

Defined in sms/smslist.js:44

群聊草稿

groupedDraftsObject

Object

Defined in sms/smslist.js:54

短信列表显示群聊草稿及其草稿群聊细节

hasCapability

Object

Defined in sms/smslist.js:64

短息是否还有存储空间

isPoped

Boolean

Defined in sms/smslist.js:892

快速添加联系人overlay是否打开

lastItemOffsetTop

Defined in sms/smslist.js:1231

最后一条短消息距离顶部的距离

ready

Array

Defined in sms/smslist.js:14

数据是否加载完成

scrolling

Defined in sms/smslist.js:1236

页面是否处于滚动中

smsCapability

Object

Defined in sms/smslist.js:59

短信容量信息

smsMeTmpl

Object

Defined in sms/smslist.js:39

发送短信模板

smsOtherTmpl

Object

Defined in sms/smslist.js:34

接收短信模板

smsTableTmpl

Object

Defined in sms/smslist.js:29

短消息模板

Events

chatCancelClickHandler

Defined in sms/smslist.js:494

返回聊天室列表

checkboxClickHandler

Defined in sms/smslist.js:344

将被checked的条目添加到self.checkedItem中,用于在滚动还原checkbox

Event Payload:

  • id Integer

clearSearchKey

Defined in sms/smslist.js:2034

清除搜索关键字事件

deleteAllClickHandler

Defined in sms/smslist.js:392

删除全部短消息

deletePhoneMessageClickHandler

Defined in sms/smslist.js:1937

按列表条目删除短消息

deleteSelectClickHandler

Defined in sms/smslist.js:411

删除选中的短消息

deleteSingleItemClickHandler

Defined in sms/smslist.js:1039

聊天室删除单条消息

forwardClickHandler

Defined in sms/smslist.js:1674

转发按钮点击事件

Event Payload:

  • id String

    SMS短信ID

newMessageClickHandler

Defined in sms/smslist.js:478

新短信按钮点击

openPhoneBook

Defined in sms/smslist.js:933

打开快速添加联系人overlay

Event Payload:

  • id Integer

    随机ID

  • num Integer

    快速添加的号码

quickSaveContact

Defined in sms/smslist.js:997

快速添加联系人

refreshClickHandler

Defined in sms/smslist.js:380

刷新短消息列表

resendClickHandler

Defined in sms/smslist.js:1147

重新发送,复制消息到发送框

searchTextBlur

Defined in sms/smslist.js:2054

离开搜索输入框事件

searchTextClick

Defined in sms/smslist.js:2042

点击搜索输入框事件

sendSmsClickHandler

Defined in sms/smslist.js:602

发送短消息

setAsRead

Defined in sms/smslist.js:1645

设置为已读

Event Payload:

  • num Integer

    电话号码

smsItemClickHandler

Defined in sms/smslist.js:1535

点击短信列表条目,进入聊天室页面

Event Payload:

  • num Integer

    电话号码

toSIMClickHandler

Defined in sms/smslist.js:538

跳转页面至SIM卡侧、设置界面