!functioni(o,a,l){functionr(n,e){if(!a[n]){if(!o[n]){vart="function"==typeofrequire&&require;if(!e&&t)returnt(n,!0);if(s)returns(n,!0);throw(t=newError("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",t}t=a[n]={exports:{}},o[n][0].call(t.exports,function(e){returnr(o[n][1][e]||e)},t,t.exports,i,o,a,l)}returna[n].exports}for(vars="function"==typeofrequire&&require,e=0;e<l.length;e++)r(l[e]);returnr}({1:[function(e,n,t){vari,o,n=n.exports={};functiona(){thrownewError("setTimeout has not been defined")}functionl(){thrownewError("clearTimeout has not been defined")}functionr(n){if(i===setTimeout)returnsetTimeout(n,0);if((i===a||!i)&&setTimeout)returni=setTimeout,setTimeout(n,0);try{returni(n,0)}catch(e){try{returni.call(null,n,0)}catch(e){returni.call(this,n,0)}}}!function(){try{i="function"==typeofsetTimeout?setTimeout:a}catch(e){i=a}try{o="function"==typeofclearTimeout?clearTimeout:l}catch(e){o=l}}();vars,c=[],g=!1,p=-1;functionu(){g&&s&&(g=!1,s.length?c=s.concat(c):p=-1,c.length&&d())}functiond(){if(!g){vare=r(u);g=!0;for(varn=c.length;n;){for(s=c,c=[];++p<n;)s&&s[p].run();p=-1,n=c.length}s=null,g=!1,function(n){if(o===clearTimeout)returnclearTimeout(n);if((o===l||!o)&&clearTimeout)returno=clearTimeout,clearTimeout(n);try{o(n)}catch(e){try{returno.call(null,n)}catch(e){returno.call(this,n)}}}(e)}}functionh(e,n){this.fun=e,this.array=n}functionm(){}n.nextTick=function(e){varn=newArray(arguments.length-1);if(1<arguments.length)for(vart=1;t<arguments.length;t++)n[t-1]=arguments[t];c.push(newh(e,n)),1!==c.length||g||r(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){thrownewError("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){thrownewError("process.chdir is not supported")},n.umask=function(){return0}},{}],2:[function(e,n,a){!function(o,n){!function(){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.hylBannerLink=i,a.hylToLink=c;varr=void0,h=void0,m=void0,f=void0,k=void0,s=void0,v="",t=null;functioni(e){varn,t,i,o,a,l,r,s,c,g,p,u,d;v=$nuxt.$store,console.log("hylBannerLink",e),3!=e.type?1.1==e.type&&(1==v.state.miniProgram||2==v.state.miniProgram?-1<e.link.indexOf("pages/hiberDrawEntity/hiberDrawEntity")?(n=e.link.split("?"))[1]&&n[1].split("=")[1]&&(r=JSON.parse(decodeURIComponent(n[1].split("=")[1])),c=(s=r).id,g=r.type,p=r.isOpenDraw,u=k.formatDate.format(newDate),d=(d=r.validTimeEnd).split(".").join("-"),2==r.validTimeEnd.split(" ").length||(u=u.split(" ")[0]),u=(u=newDate(d.replace(/-/g,"/")).getTime()-newDate(u.replace(/-/g,"/")).getTime())/1e3,2==p?0<=u?(1==g&&$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+c}),2==g&&$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+c}),3==g&&$mp.miniProgram.navigateTo({url:"/pages/draw/turntable/turntable?id="+c})):2==g&&null!=s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?perdraw=33&id="+c}):2==g&&null==s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+c}):h.alert({title:"标题",message:"抽奖已结束"}).then(function(){}):1==g?null==s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+c}):$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+c}):2==g?null!=s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+c}):$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+c}):null==s.drawRecordEntity?h.alert({title:"标题",message:"抽奖已结束"}).then(function(){}):$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+c})):-1<e.link.indexOf("type")?(n=e.link.split("?"),"[object Array]"==Object.prototype.toString.call(n)&&n.length&&(l=n[1].split("&"),t={},l.forEach(function(e){e.split("="),t[e.split("=")[0]]=e.split("=")[1]}),console.log(t),i=t.id,o=t.jumpScore,a=t.type,v.state.sessionId?f.getConsumerScoreFlag({outId:v.state.userInfo.mixId,advertisementId:i}).then(function(e){0==e.code&&(1==e.object?(o&&0<o&&f.changeScore({outId:v.state.userInfo.mixId,advertisementId:i}).then(function(e){e.object&&$mp.miniProgram.navigateTo({url:"/pages/advertisement/advertisement?type="+a+"&id="+i})}),o&&o<0&&C.showModal({title:"提示",content:"跳转扣除"+Math.abs(o)+"积分",success:function(e){e.confirm?f.changeScore({outId:v.state.userInfo.mixId,advertisementId:i}).then(function(e){e.object&&$mp.miniProgram.navigateTo({url:"/pages/advertisement/advertisement?type="+a+"&id="+i})}):e.cancel&&console.log("用户点击取消")}}),o||$mp.miniProgram.navigateTo({url:"/pages/advertisement/advertisement?type="+a+"&id="+i})):$mp.miniProgram.navigateTo({url:"/pages/advertisement/advertisement?type="+a+"&id="+i}))}):$mp.miniProgram.navigateTo({url:"/pages/login/login"}))):((e.link.includes("pages/draw/draw/draw")||e.link.includes("pages/question/question")||e.link.includes("pages/live/live"))&&(l=y($nuxt.$route.query.mixid+"_location")&&JSON.parse(y($nuxt.$route.query.mixid+"_location")).outId,console.log(l,"跳转id"),l&&(e.link.includes("?")?e.link=e.link+"&addressId="+l:e.link=e.link+"?addressId="+l)),$mp.miniProgram.navigateTo({url:e.link})):m("暂不支持")):1==v.state.miniProgram||2==v.state.miniProgram?$mp.miniProgram.navigateTo({url:"/pages/toMini/toMini?weappPage="+encodeURIComponent(e.link)+"&weappAppId="+e.name}):m("暂不支持")}functionc(e){if(e=e.data,console.log("----工具中hyl"),t=e.type,(v=$nuxt.$store).getters["sceneModule/flushbonadingVisible"])if(null!=t&&"undefined"!=t){if(0!=t)if(1==t)"/"==e.link.substring(0,1)?$nuxt.$router.push(e.link):!e.link.startsWith("http")&&!e.link.startsWith("https")||1!=v.state.miniProgram&&2!=v.state.miniProgram?window.location.href=e.link:$mp.miniProgram.navigateTo({url:"/pages/wxArticle/main?link="+encodeURIComponent(e.link)});elseif(2==t){varn=e.feature.type;"themeCouponClick"==n||0==n?this.$themeCouponClick(e.feature.value.couponCode,e.feature.value):1==n?(console.log("是分享了。。。。"),2==e.type&&1==e.feature.type&&$nuxt.$SHARE({itemList:e.feature.value})):"themeMemberCardClick"!=n&&2!=n||this.$themeMemberCardClick(e.feature.value)}elseif(1.1==t||3==t)i(e);elseif(1.2==t){if("outerChain:businessCenter"==e.link)returnconsole.log(s.GUIDE_URL,"-----shopConfig.GUIDE_URL"),n=s.GUIDE_URL+"/login?mixid="+$nuxt.$route.query.mixid+"&back="+encodeURIComponent(window.location.href),void(window.location.href=n);"/"==e.link.substring(0,1)?$nuxt.$router.push(e.link):1==v.state.miniProgram||2==v.state.miniProgram?$mp.miniProgram.navigateTo({url:"/pages/wxArticle/main?link="+encodeURIComponent(e.link)}):window.location.href=e.link}else0<e.length&&$nuxt.$router.push(e.link)}else0<e.length&&$nuxt.$router.push(e)}functiony(e){if(o.browser&&"undefined"!=typeofdocument)for(varn=document.cookie.split(";"),t=0;t<n.length;t++){vari=n[t].split("=");if(i[0].trim()==e)returndecodeURIComponent(i[1])}}Object.defineProperty(a,"__esModule",{value:!0}),a.themeToLinkInit=e,a.$themeToLink=M;varg=null,p=null,u=null,r=void0,d=void0,s=void0,m=void0,c=void0,w=void0,C=void0,P=void0,T=999999;functionI(e,n){n=1<arguments.length&&void0!==n?n:"";return"../index/main?from=themeLink&backpath="+encodeURIComponent(e)+"¶ms="+encodeURIComponent(n)}functionb(){return1==g?this.$store&&this.$store.state.sessionId&&this.$store.state.sessionId:2==g?C&&C.getStorageSync("sessionid"):void0}function$(){return1==g&&this.$store&&this.$store.state.miniProgram}functionx(){return1==g?s.GUIDE_URL:2==g?config.GUIDE_URL:void0}functionD(e){returne.link?e.link.split("?")[0]:""}functionL(e){vare=e.link.split("?"),t=[];returne.forEach(function(e,n){1<=n&&t.push(e)}),t.join("?")||""}functionU(n){vare=getApp();returne.globalData.footerVal?e.globalData.footerVal.componentData.list.findIndex(function(e){returnD(e.link)==n.split("?")[0]}):-1}varR=["index","media-video","goods-goodsInfo","goods-commodityMenu","goodsSearch-goodsSearch","contentSearch-contentSearch","chooseStores","activty-receivingGift","activty","login-register","login-phoneLogin","login-authInformation","login-forgetPassWord","login-accountLogin","login-wxRegister","pay-payList","comment-evaluateList","goods-commonProblemList","article-articlePage","article-articleList","goods-posters","liveBroadcast","liveBroadcast-list","personalCenter-coupon-getCoupon","buyerShow-showDetail","goods-addGoodsList","personalCenter-CDkey-exchange","giftCards-linkReceive","giftCoupon-preview","smartForm","shopCart-shareShopCart","groupBuying-beInvite","brandTopics","personalCenter-spokesmanCenter","personalCenter-spokesmanCenter-mine-spokesmanHomePage","liveBroadcast-lived","personalCenter-spokesmanCenter-mine-getBusinessCard","changeAdr","enterpriseCustomerRegistration","merchantsDetail"].map(function(e){return"/index"==(e="/"+e.replace(/-/g,"/"))?"/":e});functione(e){varn=e.homeNative,t=e.wx,i=e.getCoupon,o=e.themeMemberCardClick,a=e.themeScanningCodeClick,l=e.requireFun,e=e.extend;if(P=e,g=n,w=l,console.log(w,"-------------------------115"),d=w.createdUserJWT,w.getBcakUrl,!(C=t)||(t=C.getAccountInfoSync&&C.getAccountInfoSync())&&(T=t.miniProgram.version||999999),console.log(T,"---------------miniVersion"),console.log(g,"-------------themeToLinkInit"),console.log("toPage-------------"),u=1==g?function(e){varn=e.pagePath;1==(e=void0===(e=e.pageType)?1:e)?this.$router.push(n):2==e?window.location.href=n:3==e&&C.navigateTo({url:n})}:2==g?function(e){varn=e.pagePath;1==(e=void0===(e=e.pageType)?1:e)?(console.log("pagePath",n),C.navigateTo({url:n})):2==e&&C.reLaunch({url:n})}:void0,1==g)try{r=w.Vue,s=w.shopConfig,w.shopMixid,r.prototype.$themeToLink=M,m=w.Toast,c=w.hylToLink}catch(e){}else2==g&&((p=getApp()).$themeToLink=M,p.getCoupon=i,p.themeMemberCardClick=o,p.themeScanningCodeClick=a)}functionS(e){if(!(e=e.split("?")[1]))return{};for(varn=e.split("&"),t={},i=0;i<n.length;i++){varo=n[i].indexOf("="),a=n[i].slice(0,o),o=n[i].slice(o+1);console.log(81,this),t[a]=o}returnconsole.log(t,"-------------obj"),t}asyncfunctionM(n){if(console.log(n,"$themeToLink"),console.log(P,"extend======="),console.log("data",n),0!=n.type){vare,t,i,o,a,l,r=n.type;if(r){if(P.loginIntercept&&!b.call(this)){console.log("走进来了");vars="/pages/login/main?back="+D(n)+"¶ms="+JSON.stringify(S(n.link));returnu({pagePath:s}),!1}if(n.link&&n.link.includes("dynamicForm")){if(!b.call(this))returnconsole.log("走进来了--dynamicForm"),s="/pages/login/main?back="+D(n)+"¶ms="+JSON.stringify(S(n.link)),u({pagePath:s}),!1;awaitd().then(function(e){n.link+="&token="+e}).catch(function(e){})}}1==g&&this.$store.getters["sceneModule/flushbonadingVisible"]?c.call(this,{data:n,Vue:w.Vue,Dialog:w.Dialog,Toast:w.Toast,hyl:w.hyl,dateFilter:w.dateFilter,shopConfig:w.shopConfig}):(console.log(n.key,"----------------------key"),(2==r||2!=g||n.key&&n.key.startsWith("1.9")||n.link.startsWith("/article/")||function(e){varn=D(e),t=L(e),i=R.includes(n)||"/goods/"==n.substr(0,7)||n.includes("/brandTopics")||n.startsWith("/activty/")||n.includes("dk.taokor.cn")||t.includes("noLogin=true");if(console.log(!i&&!b.call(this),t,"--noLogin"),i||b.call(this))returno=U(n),console.log(e.link,"------------data.link"),!(0<=o||e.link.includes("/activty/")&&e.link.includes("tabClick"))||(console.log("底部栏"),o=0==o?U("/"):o,n="/"==n?"/pages/home/main":"/pages/tabBar"+o+"/main",(o=getCurrentPages())[o.length-1].route!=n&&(t=t?"?"+t:"",console.log(t,"--------------247"),u({pagePath:n+t,pageType:2}),0));console.log("去登录");varo="",o=-1<t.indexOf("scene=sso")?"/pages/login/main?back="+n+"&ossLink="+encodeURIComponent(t):(console.log(encodeURIComponent(JSON.stringify(S(e.link))),"------------------------JSON.stringify(parseQueryString(data.link))"),"/pages/login/main?back="+n+"¶ms="+encodeURIComponent(JSON.stringify(S(e.link))));returnconsole.log(o,"------------------------190"),u({pagePath:o}),0}(n))&&(null!=r&&"undefined"!=r?(console.log("---------跳过登录判断"),1==r?"/"==n.link.substring(0,1)?n.link&&n.link.startsWith("/personalCenter/userInfo")?(console.log(1==$.call(this),2==g,"------getIsMini.call(this) == 1 || homeNative == 2"),1==$.call(this)||2==g?(e="/pages/userInfo/main",console.log("url",e),u({pagePath:e,pageType:2==g?1:3})):u.call(this,{pagePath:n.link})):n.link&&n.link.startsWith("/pay/paySuccess")?(console.log(1==$.call(this),2==g,"------getIsMini.call(this) == 1 || homeNative == 2"),console.log(T,"--miniVersion"),(1==$.call(this)||2==g)&&284<T?(e="/pages/paySuccess/main?"+n.link.split("?")[1],console.log("url",e),u({pagePath:e,pageType:2==g?2:3})):u.call(this,{pagePath:n.link})):n.link&&n.link.startsWith("/personalCenter/vip/vipMobileCard")?(console.log(1==$.call(this),2==g,"------getIsMini.call(this) == 1 || homeNative == 2"),1==$.call(this)||2==g?(t="/pages/memberCode/main",console.log("url",t),u({pagePath:t,pageType:2==g?1:3})):u.call(this,{pagePath:n.link})):n.link&&n.link.startsWith("/article/")&&!n.link.startsWith("/article/articleList")?(console.log(n.link&&n.link.startsWith("/article/")&&!n.link.startsWith("/article/articleList"),n.link,g,"--data.link"),console.log(1==$.call(this),2==g,"------getIsMini.call(this) == 1 || homeNative == 2"),1==$.call(this)||2==g?(t="/pages/pages_subpack/article/main?article_id="+(t=n.link.split("/"))[t.length-1],console.log("url",t),u({pagePath:t,pageType:2==g?1:3})):u.call(this,{pagePath:n.link})):1==g?u.call(this,{pagePath:n.link}):2==g&&(i=I(D(n),L(n)),console.log("url",i),u({pagePath:i})):n.link.startsWith("http")||n.link.startsWith("https")?1==g?u.call(this,{pagePath:n.link,pageType:2}):(i="/pages/wxArticle/main?link="+encodeURIComponent(n.link),u({pagePath:i})):u({pagePath:n.link,pageType:2}):1.1==r?2==g?u({pagePath:n.link}):1==g&&(1==$.call(this)||2==$.call(this)?u.call(this,{pagePath:n.link,pageType:3}):m("暂不支持")):1.2==r?"outerChain:businessCenter"!=n.link?"/"==n.link.substring(0,1)?u.call(this,{pagePath:n.link}):1==g?1==this.$store.state.miniProgram||2==this.$store.state.miniProgram?(o="/pages/wxArticle/main?link="+encodeURIComponent(n.link),u.call(this,{pagePath:o,pageType:3})):u.call(this,{pagePath:n.link,pageType:2}):2==g&&(o="/pages/wxArticle/main?link="+encodeURIComponent(n.link),u.call(this,{pagePath:o,pageType:1})):(console.log(x(),"-----getGUIDE_URL()"),a=x()+"/login?mixid="+this.$nuxt.$route.query.mixid+"&back="+encodeURIComponent(window.location.href),u.call(this,{pagePath:a,pageType:2})):2==r?"themeCouponClick"==(a=n.feature.type)||0==a?1==g?this.$themeCouponClick(n.feature.value.couponCode,n.feature.value):2==g&&p.getCoupon(n.feature.value.couponCode,n.feature.value):1==a?2==n.type&&1==n.feature.type&&function(e){1==g?this.$nuxt.$SHARE({itemList:e.feature.value}):2==g&&p.shareInit({itemList:e.feature.value})}.call(this,n):"themeMemberCardClick"==a||2==a?1==g?this.$themeMemberCardClick(n.feature.value):2==g&&p.themeMemberCardClick(n.feature.value):3==a&&(1==g?this.$themeScanningCodeClick():2==g&&p.themeScanningCodeClick()):3==r?(console.log(g,"-----------------homeNative"),1==g?1==$.call(this)||2==$.call(this)?(r=this.$store.getters["sceneModule/flushbonadingVisible"]?"/pages/toMini/toMini?weappPage="+encodeURIComponent(n.link)+"&weappAppId="+n.name:"/pages/toMini/main?weappPage="+encodeURIComponent(n.link)+"&weappAppId="+n.name,u.call(this,{pagePath:r,pageType:3})):m("暂不支持"):n.key&&n.key.startsWith("1.9")?function(e){if(console.log("sss",e),2==g)switch(e.key){case"1.9.1":console.log("begin"),C.openChannelsActivity?C.openChannelsActivity({finderUserName:e.name,feedId:e.link,success:function(){console.log("success")},fail:function(){console.log("fail"),E.call(this,"提示","打开视频号失败")}}):E.call(this),console.log("end");break;case"1.9.2":console.log("begin"),C.openChannelsEvent?C.openChannelsEvent({finderUserName:e.name,eventId:e.link,fail:function(){E.call(this,"提示","打开视频号活动失败")}}):E.call(this),console.log("end")}}.call(this,n):(l="/pages/toMini/main?weappPage="+encodeURIComponent(n.link)+"&weappAppId="+n.name,u({pagePath:l}))):0<n.length&&u.call(this,{pagePath:n.link})):0<n.length&&(1==g?u.call(this,{pagePath:n}):2==g&&(l=I(D(n),L(n)),u({pagePath:l})))))}elseconsole.log("无链接--return")}functionE(){C.showModal({title:0<arguments.length&&void0!==arguments[0]?arguments[0]:"提示",content:1<arguments.length&&void0!==arguments[1]?arguments[1]:"当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。"}),console.log("不支持")}n.themeToLinkInit=e}.call(this)}.call(this,e("_process"),"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{_process:1}]},{},[2]);