请选择 进入手机版 | 继续访问电脑版

UBAINS

 找回密码
 立即注册
搜索
热搜: UBAINS
查看: 2402|回复: 0

[程序方法] _ENTER原型继承方法使用说明

[复制链接]

71

主题

75

帖子

712

积分

公司员工

积分
712
发表于 2018-12-6 10:11:43 | 显示全部楼层 |阅读模式
应用于模式调用确认提示框,参考主模版简约模式


应用示例可查看_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);
                        }
                }
        }
       
}

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

Archiver|手机版|小黑屋|BBS.UBAINSYUN.COM

GMT+8, 2024-4-17 01:39 , Processed in 0.033224 second(s), 18 queries .

Powered by UBAINS! X3.4

© 2001-2017 UBAINS Inc.

快速回复 返回顶部 返回列表