|
应用于模式调用确认提示框,参考主模版简约模式
应用示例可查看_MATRIX 和_AUDIO方法,可自行修改相关方法属性及添加方法属性。有任何问题建议可在下方留言,功能持续改进更新
附:
function _ENTER(modefun,vinfopage)
{
this.infopage = vinfopage;
this.infotext = 'txtSysteminfo1';
this.busy = 0;
this.model = 0;
setSystemInt('_systemmodel',this.model);
setSystemInt('_systembusy',this.busy);
this.setModel = function(vNum,vSec)
{
this.model = getSystemInt('_systemmodel',this.model);
if(this.model==vNum) //如为视频会议模式则只跳页面,不再执行程序
{
modefun(vNum);
}
else //否则跳页+执行程序
{
this.busy = getSystemInt('_systembusy',this.busy);
if(this.busy==0)//当系统不忙时执行程序
{
this.model = vNum; //设置模式标识为3
setSystemInt('_systemmodel',this.model);
this.busy = vSec; //设置忙时间为20秒
setSystemInt('_systembusy',this.busy);
modefun(vNum);
setPageShow(this.infopage);//弹出等待提示框
}
else//否则弹出提示框提示
{
setPageShow(this.infopage);//弹出等待提示框
}
}
}
this.setStatus = function()
{
this.busy = getSystemInt('_systembusy',this.busy);
if(this.busy> 0)
{
this.busy--;
setSystemInt('_systembusy',this.busy);
setText(this.infotext,'' + this.busy);
if(this.busy ==0)
{
setPageHide(this.infopage);
}
}
}
}
|
|