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