网页繁忙代码:
<script type="text/javascript">
;(function() {
function getUrlParams() {
var params = {};
var tmp = location.search.slice(1).split('&');
var i, item;
for(i = 0; i < tmp.length; i++) {
item = tmp.split('=');
params[item[0]] = item[1];
}
return params;
};
var urlParams = getUrlParams();
var rid = urlParams['rid'];
var dataDomain = urlParams['env'] == 'uat' ? 'vip.qzs.qq.com' : window.g_siDomain || 'qzonestyle.gtimg.cn';
require.config({
urlArgs: {
'app/meteor/base-pkg': '',
'app/meteor/act/js/index-pkg': ''
}
})(['yom/core-pkg', 'base-pkg', 'app/meteor/base-pkg', 'app/meteor/act/js/index-pkg', 'jsonp!http://' + dataDomain + '/qzone/space_item/crm/json/pcard_' + rid + '.js?@callbackName=_callback', document.querySelectorAll ? '' : 'yom/inc/sizzle'], function($, $$, $$$, main, data, sizzle) {
main.init(data);
$$.stat.observeClickStat({maxBubble: 2});
$$.stat.addPgvStat({path: '/meteor/act/' + $$.util.getUrlParam('rid')});
}, function() {
var $$ = require('base-pkg');
var msg = '系统繁忙,请您稍后重试。';
$$ ? $$alert(msg, {hint: 'WARN'}) : alert(msg);
});
})();
</script>