doctype html
html(lang="en")
    head
        meta(charset="UTF-8")
        title Document
    body
    script.
        window.onload = function () {
            //解析页面的url ，获取各个锚点的值
            var frameHeight, frameWidth, closeStatus, hashes = window.location.search;
            frameWidth;
            hashArray = hashes.slice(1).split("&");
            for (var i = 0, len = hashArray.length; i < len; i++) {
                var hash = hashArray[i].split("=");
                if (hash[0] === 'height') {
                    frameHeight = hash[1];
                    parent.parent.oAppIframe.setIframeHeight(frameHeight);
                }
                if (hash[0] === 'close') {
                    closeStatus = hash[1];
                    if (closeStatus * 1 === 1) {
                        parent.parent.oAppIframe.closeIframe();
                    }
                    if (closeStatus * 1 === 2) {
                        parent.parent.oAppIframe.closeAlert();
                    }
                    if (closeStatus * 1 === 3) {
                        parent.parent.oAppIframe.showNewApp();
                    }
                }
                if (hash[0] === 'alertMess') {
                    parent.parent.oAppIframe.alertMess();
                }
                if (hash[0] === 'upsuccess') {
                    parent.parent.oAppIframe.showNewApp();
                }
            }
        };