function(page) {with(page){!function() {
var crossDomain = require('sf_view:node_modules/@baidu/cross-domain/src/cross_domain.js').createCrossDomain('wk.baidu.com', '//wk.baidu.com/proxy.html');
var sessionX = require('sf_view:node_modules/@baidu/session-x/index.js');
var sessionXMgr = sessionX.sessionXMgr;
sessionXMgr.init(crossDomain.sessionStorage);
var urlParam = sessionXMgr.getUrlParam();
// 鏂颁細鍛樺皬娴侀噺
vw.isNewVipStatus = 1;
vw.isProfessionalDoc = !! 0;
shareDoc = 1
// 鏂囨。绫诲瀷
var docValueType = 0;
var docPrizeOrTicket = docValueType ? NaN : 1;
page.wkwapfelogConf = {
readerType: 'xreader',
docId: '3bfe14f804a1b0717fd5dd1c',
version: '201711',
category: 'toc',
sf: +'0',
isNewVipStatus: vw.isNewVipStatus,
docValueType: docValueType, // 璐㈠瘜鍊笺佷粯璐
docPrizeOrTicket: docPrizeOrTicket, // docValueType = 0 涓嬭浇鍒 = 1 浠锋牸
isProfessionalDoc: vw.isProfessionalDoc,
isShareDoc: shareDoc,
'wapwenku-felog-data-wap-rec-doc-2017': -1,
ppt2Retype: '0',
'_sessionx_url_param': JSON.stringify(urlParam)
};
page.globalData = page.wkwapfelogConf;
}();
!function() {
// 鏂囨。娓叉煋鍚 鍐嶈繍琛岋紝鎬ц兘浼樺寲
var fn = function () {
require.async(['sf_common:widget/cashierVIP/index.js'], function(CashierVIP) {
new CashierVIP({
isLogin: 0,
docId: '3bfe14f804a1b0717fd5dd1c',
docInfo: {"mydoc":0,"isPaymentDoc":0,"cid1":"5","cid2":"77","cid3":"188","cid4":null,"docTitle":"鍚勪釜鍥藉缂╁啓","docType":"9","docDesc":"","docSize":"29184","docPrice":"1","docTicket":1,"viewCount":"4679","downloadCount":"44","createUser":"鐜嬭呴娓","avadar":"https://gss0.bdstatic.com/7Ls0a8Sm1A5BphGlnYG/sys/portraitn/item/8a43cdf5d5dfc6aec3ec4607","createTime":1530307676,"show_create_time":"2012-05-14 08:36:42","show_update_time":"2018-06-30 05:27:56","valueCount":"6","valueScore":"25","totalPageNum":"7","flag":"0","main_status":"2","ishide":"0","keyWord":"","qualityScore":"5.0","zan":0,"cai":0,"downloadToken":"fe11c10f5f4de0eb3ba7c162ccfca589","ispaied":null,"isdownloadable":null,"_payInfo":{"docStatus":"璇曡缁撴潫","end-tip":"璐拱鍚庨槄璇诲叏鏂"},"isOrgCustomized":false},
vipUserInfo: {"isVip":false,"currentVipType":"","isTicketDocGot":false,"downloadTicketCount":0},
isNewVip: Boolean(1),
readerType: 'xreader',
ppt2Retype: '0'
});
});
};
$(customEventMediator).on('docRenderDone', function (e, data) {
var ops = typeof data === 'object' ? data : {};
if (ops.isFirstAll) {
fn();
}
})
}();
!function() {
// 鏂囨。娓叉煋鍚 鍐嶈繍琛岋紝鎬ц兘浼樺寲
var fn = function () {
require.async(['sf_common:widget/voucherPackage/index.js'], function(VoucherPackage) {
new VoucherPackage();
});
};
$(customEventMediator).on('docRenderDone', function (e, data) {
var ops = typeof data === 'object' ? data : {};
if (ops.isFirstAll) {
fn();
}
})
}();
!function() {
// 鏂囨。娓叉煋鍚 鍐嶈繍琛岋紝鎬ц兘浼樺寲
var fn = function () {
require.async(['sf_common:widget/voucher/index.js'], function(Voucher) {
new Voucher({
isLogin: 0
});
});
};
$(customEventMediator).on('docRenderDone', function (e, data) {
var ops = typeof data === 'object' ? data : {};
if (ops.isFirstAll) {
fn();
}
})
}();
!function() {
customEventMediator.componentParamCfg = customEventMediator.componentParamCfg || {};
customEventMediator.componentParamCfg.topBar = {
viewerType: 'xreader',
btnShow: {"back":false},
settingShow: {
head: 'xreader' !== 'ppt'
},
vipUserInfo: {"isVip":false,"currentVipType":"","isTicketDocGot":false,"downloadTicketCount":0}
};
window.isNewVipTest = !!1;
window.isProfessionalDoc = !! 0
}();
!function() {
customEventMediator.componentParamCfg = customEventMediator.componentParamCfg || {};
customEventMediator.componentParamCfg.b_asp = {
show: +'1'
};
}();
!function() {
var that = this;
var $mediator = $(customEventMediator);
var $vw = $(vw.container);
var $root = $('.sf-edu-wenku-id-content', $vw);
var register = require('sf_view:widget/toc/component/register.js');
register.run({
readerType: 'xreader'
});
var subEntry = require('sf_view:widget/common/sub_entry/sub_entry.js');
subEntry.start($root, 'xreader');
$mediator.on('docRenderDone', function () {
require.async(['sf_view:widget/common/view/viewAssist.js', 'sf_view:widget/common/lazyload.js'], function (ViewAssist, lazyLoadImage) {
that.viewAssist = new ViewAssist($root, 'xreader');
lazyLoadImage();
});
});
if (!window._SF_.__SYNC__PAGE__ && window._SF_.vw.wkCustom
&& window._SF_.vw.wkCustom.hideLoading) {
window._SF_.vw.wkCustom.hideLoading(true);
}
require.globalData.set('windowHasLoaded', false);
if (window._SF_.__SYNC__PAGE__) {
// dp鑷畾涔変簨浠
var dpCustomeventsLog = require('sf_view:widget/lib/sync/log.js').dpCustomeventsLog;
// dp鑷畾涔変簨浠 - 缁熻 妯℃澘涓璲s寮濮嬫墽琛屾椂闂寸偣
dpCustomeventsLog.setTime('jsRunInTemplate');
$(window).on('load',function () {
require.globalData.set('windowHasLoaded', true);
$(customEventMediator).trigger('window-onload');
});
}
else {
vw.on('attach', function () {
require.globalData.set('windowHasLoaded', true);
$(customEventMediator).trigger('window-onload');
});
}
var globalData = require('sf_view:widget/common/gd.js');
globalData.set({
doc_id: '3bfe14f804a1b0717fd5dd1c',
isLogin: 0,
// docInfo.docInfo.totalPageNum鍦ㄥ悗缁昏緫涓寮轰緷璧栦慨鏀癸紝杩欓噷鐢ㄤ釜鏂扮殑鍙橀噺鏉ヤ繚瀛樼湡姝g殑椤电爜鏁
realPageCount: 7,
docTypeName: 'word',
docIdUpdate: '3bfe14f804a1b0717fd5dd1c',
isPaper: '0',
hasImage: '0',
Back to home |
File page
Subscribe |
Register |
Login
| N