var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); define(['jQuery', 'Class', 'AppContext', 'widget.Util', 'widget.UI', 'widget.LazyInitializer', 'part.SiteAlitalk', 'core.Component', 'app.contactSmall.map'], function($, Class, AppContext, Util, UI, LazyInitializer, SiteAlitalk, Component,Map) { var ContactSmall = new Class({ init : function(div, config, data) { this.div = div; this.config = config; this.initMobile(); this.initAlitalk(); //new LazyInitializer(this.div, $.proxy(this, 'initMap')); this.initGaoDeMap(); }, initGaoDeMap:function() { new Map($('div.map-container', this.div), { address : this.config.address, companyName : this.config.companyName }); }, initMobile: function(){ var self = this, isTopDomain = this.config.context.isTopDomain; var phoneContainer = $('dl.m-mobilephone', this.div), needNotLogin = phoneContainer.data('needNotLogin'), phoneNo = phoneContainer.data('no'); if (needNotLogin) { return ; } if (Component.isLogin()) { var phoneNoContaner = $('.mobile-number', phoneContainer); phoneNoContaner.html(phoneNo); return ; } var phoneLoginContaner = $('.mobilephone', phoneContainer); // 如果需要登录并且没有登录 if (isTopDomain) { //顶级域名 var loginUrl = null; loginUrl = Util.formatUrl(phoneLoginContaner.attr('href'), { targetUrl: window.location.href }); phoneLoginContaner.attr('href', loginUrl); phoneLoginContaner.show(); } else {//二级域名 phoneLoginContaner.show(); $.add('wp-logist', { css: ['//web.archive.org/web/20220322072744/http://astyle-src.alicdn.com/sys/css/logist/logist.css'], js: ['//web.archive.org/web/20220322072744/http://astyle-src.alicdn.com/sys/js/logist/logist-min.js'], ver: '1.0' }); phoneLoginContaner.click(function(e) { $.use("wp-logist", function(){ FE.sys.logist({ onLoginSuccess: function(){ //登陆成功后回调函数 window.location.reload(); }, onRegistSuccess: function(){ //注册成功后回调函数 window.location.reload(); } }); }); return false; }); } }, initAlitalk: function() { var alitalk = $('a[data-alitalk]', this.div); new SiteAlitalk(alitalk); }, initMap: function() { var container = $('div.map-container', this.div), uid = null; if (!container.length) { return; } uid = this.config.context.uid; $.add('vas-zqx', { js: ['//web.archive.org/web/20220322072744/http://astyle-src.alicdn.com/app/searchweb/common/widget/js/zqx.js'] }); $.use('vas-zqx', function() { window.ZQX && ZQX.init({ prodid: '201', container: container[0], width: 174, height: 203, memberIds: uid, service: 'map' }); }); } }); AppContext.register('view', 'contactSmall', ContactSmall); }); define(['jQuery', 'Class', 'AppContext', 'widget.UI'], function($, Class, AppContext,UI) { var WinportFooter = new Class({ init : function(div, config) { this.initShield(div); this.bindEvent(); this.resetCss(div); //该方法非常猥琐 因为进口旺铺也有一个底部导航 需要将offerdetail的导航给隐藏掉 if(config.isJkWp){ $('#site_footer .app-footerNavigation .m-content').addClass('fd-hide'); } }, initShield : function(div){ var imgs = $('img.shield-img',div); UI.resizeImage(imgs, {height:70}); }, resetCss:function(div){ var layout_type=$("#site_footer").attr("data-layout-type"); if(layout_type&&"fluid"==layout_type){ //如果是全屏布局,则没有必要保持间距 $(div).addClass("mod-winport_footer_no_margin"); } //如果有footNav app则没有必要保持间距 var footerNavigation=$("#site_footer").find(".app-footerNavigation"); if(footerNavigation.length>0){ $(div).addClass("mod-winport_footer_no_margin"); } }, bindEvent:function(){ var self = this; $('.icphref',this.div).on('click',function(e){ e.preventDefault(); var url = $(this).data('url'); if(url){ window.open(url); } }); } }); AppContext.register('view', 'winport_footer', WinportFooter); }); /** * 实锟斤拷锟教硷拷锟斤拷锟斤拷头锟斤拷 * @author qijun.weiqj */ define(['jQuery', 'AppContext', 'core.AppLoader', 'widget.PlaceHolder', 'core.StyleLoader', 'core.Component', 'core.Remote', 'lofty/alicn/aliuser/1.0/aliuser', 'part.SiteAlitalk2'], function ($, AppContext, AppLoader, PlaceHolder, StyleLoader, Component, Remote, Aliuser, SiteAlitalk) { var Topbar = { init: function (div, config) { this.div = div; this.config = config; console.log('[TopNav] ===> config', config); if (config.useAStorePageData) { this.renderAStoreHeader(this.config); return; } this.initDesignBar(); //锟斤拷始锟斤拷designbar锟斤拷锟斤拷锟斤拷锟斤拷锟揭侧浮锟斤拷 this.initWW(); }, initDesignBar: function () { var self = this, designBar = $(''), siteContent = $('div#site_content'); if (this.config.context.uid === Aliuser.getLastMemberId() && this.config.context.pageType === 'index') { $(this.div).append(designBar); if (siteContent.length > 0) { $(window).resize(function () { designBar.css({right: ($('body').width() - siteContent.width()) / 2 - 10 - designBar.width()}); }); $(window).resize(); } designBar.show(); } }, initWW: function () { new SiteAlitalk($("a.wangwang", this.div)); }, renderAStoreHeader: function (config) { console.log('[TopNav] ===> render new page header', config); // 锟斤拷页锟斤拷锟斤拷锟捷放碉拷全锟斤拷 AppContext.__astorePageData__ = config.astorePageData; window.__astorePageData__ = config.astorePageData; var moduleName = 'wp_pc_common_header'; var containNode = 'astore-header'; window.__oldPcWeb__ && window.__oldPcWeb__.renderModule && window.__oldPcWebV2__.renderModule(containNode, moduleName, config.astorePageData); } }; AppContext.register('view', 'topbar', Topbar); }); /** * winport_banner * @author moyan */ define(['jquery', 'AppContext'], function ($, AppContext) { var Banner = { name: 'winport_banner', init: function (div, config) { this.div = div; this.config = config; this.openSpeed = 800; // 打开banner的速度设定为800ms this.closeSpeed = 500; // 关闭banner的速度设定为500ms // target节点 this.$container = $('.container',this.div); // 页面节点存在 if(this.$container){ // 显示banner广告位 this.$container.slideDown(this.openSpeed); // 绑定版块事件 this.bindEvents(); } }, bindEvents: function(){ var self = this; self.div.on('click', '.operate .close', function(){ self.onClose(); }); }, onClose: function() { var self = this; self.$container.slideUp(this.closeSpeed, function(){ self.$container.remove(); }); } }; AppContext.register('view', Banner.name, Banner); }); define(["jquery","AppContext"],function(i,n){var e={name:"winport_promotion_banner",init:function(i,n){this.div=i,this.config=n,this.bindEvents()},bindEvents:function(){var i=this,n=this.div.find(".wp-credit-operate");n.slideDown(800),this.div.on("click",".operate .close",function(){i.div.slideUp(500,function(){n.remove()})})}};n.register("view",e.name,e)});/** * @anchor han.hsh * @date 2015.8.12 */ define(['jQuery', 'AppContext', 'core.AppLoader2', 'widget.PlaceHolder', 'core.StyleLoader', 'core.Component', 'core.Remote', 'lofty/alicn/aliuser/1.0/aliuser'], function($, AppContext, AppLoader, PlaceHolder, StyleLoader, Component, Remote, Aliuser) { var TopBar = { init: function(div, config) { this.div = div; this.config = config; this.hasShopInfo = false; MastHead.init(div, config); this.cutString(div); this.showMore(div); this.initSearch(div); this.fdOutQRcode(div); }, cutString: function(div) { var companyName = $('div.shop-info div.company-name', div), brandName = $('div.shop-info div.brand-name', div), superBrandName = $('div.shop-info div.superbrand-name', div); if(companyName.length > 0) { companyName.text(this.ellipsis(companyName.text(), 200, 14)); } if(superBrandName.length > 0){ var brandNameInfo = superBrandName.data('brandname'); superBrandName.text('品牌:' + this.ellipsis(brandNameInfo, 160, 12)); } if(brandName.length > 0) { brandName.text(this.ellipsis(brandName.text(), 125, 14)); } }, ellipsis: function(str, len, fs){ var el; if(!str) return; if (!el) { el = $('
').appendTo(document.body); } var ret, i = 1, l = str.length; while (i <= l) { el.text( ret = str.substring(0, i++) ); if (el.width() > len) { ret = ret.replace(/..$/, '...'); break; } } return ret; }, showMore: function(div) { var self = this, bsrSellerInfo = $('div.bsr-sellerinfo', div), shopInfo = $('div.shop-info', bsrSellerInfo), shopInfoMore = $('a.more', bsrSellerInfo), sellerInfo = $('div.seller-info', bsrSellerInfo), shopQRcode = $('i.thumbnail'), shopQRcodeContainer = $('div.shop-qrcode', div), personalized = self.config.personalized; // var bsrSellerInfo = $('div.bsr-sellerinfo', div); self.qrcode = $('div.qrcode', div); if(shopInfoMore.length > 0) { bsrSellerInfo.on('mouseenter', function(e) { shopInfoMore.addClass('show-more'); if(!self.hasShopInfo) { self.hasShopInfo = true; aliclick(this,'?tracelog=wp_head_wp_infor'); AppLoader.load({ appName: 'sellerinfo', appStyles: { js: true, css: true }, data : { _server_name : self.config.currentDomainUrl }, csrf_token: true, success: function(html) { sellerInfo.html(html); sellerInfo.slideUp(0); setTimeout(function(){ sellerInfo.slideDown(200); },100); } }); } sellerInfo.slideDown(200); }); bsrSellerInfo.on('mouseleave', function(e) { shopInfoMore.removeClass('show-more'); sellerInfo.slideUp(0); }); } shopQRcode.hover(function(e) { qrcodeImg = $('img', self.qrcode); if(qrcodeImg.length > 0){ self.showQRcode(); return; } self.processQRcode(); },function(e) { }); shopQRcodeContainer.on('mouseleave', function(e) { self.qrcode.slideUp(0); if(shopQRcode.length > 0) { shopQRcode.removeClass('show-more'); } }); }, processQRcode: function(){ var self = this, eventUrl = Component.getGlobalViewConfig('eventUrl'); if(!self.qrloading){ self.qrloading = true; }else{ return; } if(eventUrl){ var domainUrl = $('#content').data('viewConfig').domainUrl; eventUrl += '/event/app/topbar/getQRcode.htm?_server_name=' + domainUrl; $.ajax(eventUrl, { dataType: 'jsonp', success: function(result) { if (result.isSuccess) { var codeUrl = result.codeUrl; self.showQRcode(codeUrl); } } }); } else { Remote.callEvent('topbar','getQRcode',{ pageAware: true, type: 'post', success: function(result) { if (result.isSuccess) { var codeUrl = result.result.codeUrl; self.showQRcode(codeUrl); } } }); } }, showQRcode: function(codeUrl){ if(codeUrl){ this.qrcode.prepend(''); } this.qrcode.slideDown(200); this.qrloading = false; aliclick(this,'?tracelog=wp_head_wp_2dcode'); }, initSearch: function(div) { var self = this, wpSearch = $('div.wp-search', div); if(!wpSearch.length) { return; } var searchForm = $('form', wpSearch), keywords = $('input.search-keywords', wpSearch), searchWpBtn = $('button.search-wp-btn', div), searchGlobalBtn = $('button.search-global-btn', div), siteSearchUrl = '//web.archive.org/web/20220322072744/http://s.1688.com/selloffer/offer_search.htm', importSearchUrl = '//web.archive.org/web/20220322072744/http://in.1688.com/import/offer_search.htm'; if(self.config.personalized){ siteSearchUrl = self.config.personalizedConfig.marketSearchUrl; } searchWpBtn.on('click', function(e) { if(self.div.hasClass('brand-topbar')) { aliclick(this,'?tracelog=wp_head_pp_searchwp'); } else { aliclick(this,'?tracelog=wp_head_wp_searchwp'); } }); searchGlobalBtn.on('click', function(e) { e.preventDefault(); if(self.div.hasClass('brand-topbar')) { aliclick(this,'?tracelog=wp_head_pp_search1688'); } else { aliclick(this,'?tracelog=wp_head_wp_search1688'); } if(keywords.val()!==''){ var origAction = searchForm.attr('action'), origTarget = searchForm.attr('target'); if(searchGlobalBtn.hasClass('search-import-btn')){ searchForm.attr('action', importSearchUrl); }else{ searchForm.attr('action', siteSearchUrl); } searchForm.attr('target', '_blank'); searchForm.trigger('submit'); keywords.val(''); searchForm.attr('action', origAction); searchForm.attr('target', origTarget); } }); }, fdOutQRcode : function(div){ var self = this; if(self.config.isOfferDetail){ return; } var shopQRcode = $('i.thumbnail'); shopQRcode.trigger('mouseenter') setTimeout(function(){ shopQRcode.trigger('mouseleave'); }, 3000); } }; var MastHead = { init: function(div, config) { var lasyloadContainer = $('div.masthead-lasyload-container', div); if (!lasyloadContainer.length || typeof iDetailConfig === 'undefined') { return; } var container = $('div.masthead-lasyload-container', div), url = container.data('cmstemplate'), searchWpUrl = container.data('searchWpUrl'); $.ajax(url, { data: { searchWpUrl: searchWpUrl, categoryId: iDetailConfig.catid }, dataType: 'JSONP', success: function(result) { if (result.success) { var html = $.util.unescapeHTML(result.data.content); var $subLogo = $(html).find('div.sub-logo'), $subCategory = $(html).find('div.sub-category'); container.find('#ali-masthead-v6').removeClass("standard").addClass("detail"); container.find('div.sub-logo').replaceWith($subLogo); container.find('div.sub-category').replaceWith($subCategory); } } }); } }; AppContext.register('view', 'common_topbar', TopBar); });define(["jquery","AppContext","pkg/@alife/refly-view/0.5.0/index"],function(n,e,o){var i=o({name:"winport_announce",init:function(){},events:{"click .foo":"onFoo"},onFoo:function(){}});e.register("view",i.name,i)}); define(['jQuery', 'core.Remote','AppContext', 'require','core.AppLoader2','core.Component','core.StyleLoader'], function($, Remote,AppContext, require,AppLoader,Component,StyleLoader) { var Layer = { init: function(div, config) { if(window.hasUpgradeFlag == undefined){ window.hasUpgradeFlag = false; } this.div = div; this.config = config; if(!window.hasUpgradeFlag){ this.showGrade(); } }, showGrade:function(){ var self = this; var layer = $('.universal-layer',self.div); if(!self.config || !self.config.context){ return; } var pageName = self.config.context.pageType; if(pageName && pageName!="index"){ return; } var industry = $('.app-industry_topbar'); if(pageName && pageName=="index" && industry.length){ return; } AppLoader.load({ appName:'winport_layer', appStyles: { js: true, css: true }, csrf_token: true, success:function(html){ if($('.mengceng',html).length==0){ window.hasUpgradeFlag = true; }else{ layer.html(html); } } }); } }; AppContext.register('view', 'layer', Layer); });define(["jQuery","AppContext"],function(i,t){var n={init:function(i,t){this.div=i,this.config=t,this.initEvents()},initEvents:function(){var t=this;i(".import-promotion .button.close",t.div).on("click",function(n){n.preventDefault(),i(".import-promotion",t.div).hide()})}};t.register("view","winport_promotion_import",n)}); } /* FILE ARCHIVED ON 07:27:44 Mar 22, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 16:36:58 Nov 18, 2023. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 218.999 exclusion.robots: 0.084 exclusion.robots.policy: 0.074 cdx.remote: 0.067 esindex: 0.012 LoadShardBlock: 146.558 (3) PetaboxLoader3.datanode: 63.111 (4) load_resource: 520.464 PetaboxLoader3.resolve: 458.043 */