!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,u=[],p=!1,c=-1;functiond(){p&&s&&(p=!1,s.length?u=s.concat(u):c=-1,u.length&&g())}functiong(){if(!p){vare=l(d);p=!0;for(vart=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.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)}}functionm(e,t){this.fun=e,this.array=t}functionh(){}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];u.push(newm(e,t)),1!==u.length||p||l(g)},m.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=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,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,R){!function(U,t){!function(){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.hylBannerLink=i,R.hylToLink=s;vara=void0,m=void0,h=void0,f=void0,v=void0,r=void0,k="",n=null;functioni(e){vart,n,i,o,a,r,l,s,u,p,c,d,g;k=$nuxt.$store,console.log("hylBannerLink",e),3!=e.type?1.1==e.type&&(1==k.state.miniProgram||2==k.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])),u=(s=l).id,p=l.type,c=l.isOpenDraw,d=v.formatDate.format(newDate),g=(g=l.validTimeEnd).split(".").join("-"),2==l.validTimeEnd.split(" ").length||(d=d.split(" ")[0]),d=(d=newDate(g.replace(/-/g,"/")).getTime()-newDate(d.replace(/-/g,"/")).getTime())/1e3,2==c?0<=d?(1==p&&$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}),2==p&&$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}),3==p&&$mp.miniProgram.navigateTo({url:"/pages/draw/turntable/turntable?id="+u})):2==p&&null!=s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?perdraw=33&id="+u}):2==p&&null==s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}):m.alert({title:"标题",message:"抽奖已结束"}).then(function(){}):1==p?null==s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}):$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+u}):2==p?null!=s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+u}):$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}):null==s.drawRecordEntity?m.alert({title:"标题",message:"抽奖已结束"}).then(function(){}):$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+u})):-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,k.state.sessionId?f.getConsumerScoreFlag({outId:k.state.userInfo.mixId,advertisementId:i}).then(function(e){0==e.code&&(1==e.object?(o&&0<o&&f.changeScore({outId:k.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:k.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=w($nuxt.$route.query.mixid+"_location")&&JSON.parse(w($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})):h("暂不支持")):1==k.state.miniProgram||2==k.state.miniProgram?$mp.miniProgram.navigateTo({url:"/pages/toMini/toMini?weappPage="+encodeURIComponent(e.link)+"&weappAppId="+e.name}):h("暂不支持")}functions(e){if(n=e.type,(k=$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!=k.state.miniProgram&&2!=k.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(r.GUIDE_URL,"-----shopConfig.GUIDE_URL"),t=r.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==k.state.miniProgram||2==k.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)}functionw(e){if(U.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(R,"__esModule",{value:!0}),R.themeToLinkInit=e,R.$themeToLink=L;varu=null,p=null,c=null,a=void0,d=void0,g=void0,r=void0,h=void0,s=void0,y=void0,C=void0;functionT(e,t){t=1<arguments.length&&void0!==t?t:"";return"../index/main?from=themeLink&backpath="+encodeURIComponent(e)+"¶ms="+encodeURIComponent(t)}functionP(e){return1==e?this.$store&&this.$store.state.sessionId&&this.$store.state.sessionId:2==e?C&&C.getStorageSync("sessionid"):void0}function$(e){return1==e&&this.$store&&this.$store.state.miniProgram}functionI(e){return1==e?r.GUIDE_URL:2==e?config.GUIDE_URL:void0}functionb(e){returne.link.split("?")[0]}functionx(e){returne.link.split("?")[1]||""}functiono(t){vare=getApp();returne.globalData.footerVal?e.globalData.footerVal.componentData.list.findIndex(function(e){returnb(e.link)==t.split("?")[0]}):-1}varl=["index","media-video","goods-goodsInfo","goods-commodityMenu","goodsSearch-goodsSearch","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"].map(function(e){return"/index"==(e="/"+e.replace(/-/g,"/"))?"/":e});functione(e){vart=e.homeNative,n=e.wx,i=e.getCoupon,o=e.themeMemberCardClick,e=e.requireFun;if(u=t,y=e,console.log(y,"-------------------------115"),d=y.createdUserJWT,g=y.getBcakUrl,C=n,console.log(u,"-------------themeToLinkInit"),n=u,console.log("toPage-------------"),c=1==n?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==n?function(e){vart=e.pagePath;1==(e=void0===(e=e.pageType)?1:e)?C.navigateTo({url:t}):2==e&&C.reLaunch({url:t})}:void0,1==u)try{a=y.Vue,r=y.shopConfig,a.prototype.$themeToLink=L,h=y.Toast,s=y.hylToLink}catch(e){}else2==u&&((p=getApp()).$themeToLink=L,p.getCoupon=i,p.themeMemberCardClick=o)}functionD(e){vart=b(e),n=x(e);return(e=l.includes(t)||"/goods/"==t.substr(0,7)||t.includes("/brandTopics"))||P(u)?!(0<=(e=o(t)))||(e=0==e?o("/"):e,t="/"==t?"/pages/home/main":"/pages/tabBar"+e+"/main",(e=getCurrentPages())[e.length-1].route!=t&&(c({pagePath:t+(n?"?"+n:""),pageType:2}),0)):(c({pagePath:"/pages/login/main?back="+t}),0)}asyncfunctionL(t){if(console.log(t,"$themeToLink"),t.type){if(t.link&&t.link.includes("scene=sso")){if(!P.call(this,u))returnvoidh("请先登录");vare=(n=function(e){return1==e?this.$store&&this.$store.state.userInfo:2==e?(console.log(C.getStorageSync("userInfo"),'---wx.getStorageSync("userInfo")'),C&&C.getStorageSync("userInfo")&&JSON.parse(C.getStorageSync("userInfo"))):void0}.call(this,u)).mobilephone,n=n.email;t.link=awaitg({toAppid:"hgFTLLhgnBmeOyCkcbyv",callbackUrl:t.link,phoneNumber:e,email:n})}t.link&&t.link.includes("dynamicForm")&&awaitd().then(function(e){t.link+="&token="+e})}vari,o,a,r,l;1==u&&s.call(this,{data:t,Vue:y.Vue,Dialog:y.Dialog,Toast:y.Toast,hyl:y.hyl,dateFilter:y.dateFilter,shopConfig:y.shopConfig}),2!=(n=t.type)&&2==u&&(D(t),!D(t))||(null!=n&&"undefined"!=n?0==n||(1==n?"/"==t.link.substring(0,1)?1==u?c.call(this,{pagePath:t.link}):2==u&&(i=T(b(t),x(t)),c({pagePath:i})):t.link.startsWith("http")||t.link.startsWith("https")?1==u?c.call(this,{pagePath:t.link,pageType:2}):(i="/pages/wxArticle/main?link="+encodeURIComponent(t.link),c({pagePath:i})):c({pagePath:t.link,pageType:2}):1.1==n?2==u?c({pagePath:t.link}):1==u&&(1==$.call(this,u)||2==$.call(this,u)?c.call(this,{pagePath:t.link,pageType:3}):h("暂不支持")):1.2==n?"outerChain:businessCenter"!=t.link?"/"==t.link.substring(0,1)?c.call(this,{pagePath:t.link}):1==u?1==this.$store.state.miniProgram||2==this.$store.state.miniProgram?(o="/pages/wxArticle/main?link="+encodeURIComponent(t.link),c.call(this,{pagePath:o,pageType:3})):c.call(this,{pagePath:t.link,pageType:2}):2==u&&(o="/pages/wxArticle/main?link="+encodeURIComponent(t.link),c.call(this,{pagePath:o,pageType:1})):(console.log(I(),"-----getGUIDE_URL()"),a=I()+"/login?mixid="+this.$nuxt.$route.query.mixid+"&back="+encodeURIComponent(window.location.href),c.call(this,{pagePath:a,pageType:2})):2==n?"themeCouponClick"==(a=t.feature.type)||0==a?1==u?this.$themeCouponClick(t.feature.value.couponCode,t.feature.value):2==u&&p.getCoupon(t.feature.value.couponCode,t.feature.value):1==a?2==t.type&&1==t.feature.type&&function(e,t){1==e?this.$nuxt.$SHARE({itemList:t.feature.value}):2==e&&p.shareInit({itemList:t.feature.value})}.call(this,u,t):"themeMemberCardClick"!=a&&2!=a||(1==u?this.$themeMemberCardClick(t.feature.value):2==u&&p.themeMemberCardClick(t.feature.value)):3==n?1==u?1==$.call(this,u)||2==$.call(this,u)?this.$store.getters["sceneModule/flushbonadingVisible"]?(r="/pages/toMini/toMini?weappPage="+encodeURIComponent(t.link)+"&weappAppId="+t.name,c.call(this,{pagePath:r,pageType:3})):(r="/pages/toMini/main?weappPage="+encodeURIComponent(t.link)+"&weappAppId="+t.name,c({pagePath:r})):h("暂不支持"):(l="/pages/toMini/main?weappPage="+encodeURIComponent(t.link)+"&weappAppId="+t.name,c({pagePath:l})):0<t.length&&c.call(this,{pagePath:t.link})):0<t.length&&(1==u?c.call(this,{pagePath:t}):2==u&&(l=T(b(t),x(t)),c({pagePath:l}))))}t.themeToLinkInit=e}.call(this)}.call(this,e("_process"),"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{_process:1}]},{},[2]);
\ No newline at end of file
!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,u=[],p=!1,c=-1;functiond(){p&&s&&(p=!1,s.length?u=s.concat(u):c=-1,u.length&&g())}functiong(){if(!p){vare=l(d);p=!0;for(vart=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.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)}}functionm(e,t){this.fun=e,this.array=t}functionh(){}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];u.push(newm(e,t)),1!==u.length||p||l(g)},m.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=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,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,R){!function(U,t){!function(){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.hylBannerLink=i,R.hylToLink=s;vara=void0,m=void0,h=void0,f=void0,v=void0,r=void0,k="",n=null;functioni(e){vart,n,i,o,a,r,l,s,u,p,c,d,g;k=$nuxt.$store,console.log("hylBannerLink",e),3!=e.type?1.1==e.type&&(1==k.state.miniProgram||2==k.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])),u=(s=l).id,p=l.type,c=l.isOpenDraw,d=v.formatDate.format(newDate),g=(g=l.validTimeEnd).split(".").join("-"),2==l.validTimeEnd.split(" ").length||(d=d.split(" ")[0]),d=(d=newDate(g.replace(/-/g,"/")).getTime()-newDate(d.replace(/-/g,"/")).getTime())/1e3,2==c?0<=d?(1==p&&$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}),2==p&&$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}),3==p&&$mp.miniProgram.navigateTo({url:"/pages/draw/turntable/turntable?id="+u})):2==p&&null!=s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?perdraw=33&id="+u}):2==p&&null==s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}):m.alert({title:"标题",message:"抽奖已结束"}).then(function(){}):1==p?null==s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}):$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+u}):2==p?null!=s.drawRecordEntity?$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+u}):$mp.miniProgram.navigateTo({url:"/pages/draw/drawDetails/drawDetails?id="+u}):null==s.drawRecordEntity?m.alert({title:"标题",message:"抽奖已结束"}).then(function(){}):$mp.miniProgram.navigateTo({url:"/pages/draw/openDraw/openDraw?id="+u})):-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,k.state.sessionId?f.getConsumerScoreFlag({outId:k.state.userInfo.mixId,advertisementId:i}).then(function(e){0==e.code&&(1==e.object?(o&&0<o&&f.changeScore({outId:k.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:k.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=w($nuxt.$route.query.mixid+"_location")&&JSON.parse(w($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})):h("暂不支持")):1==k.state.miniProgram||2==k.state.miniProgram?$mp.miniProgram.navigateTo({url:"/pages/toMini/toMini?weappPage="+encodeURIComponent(e.link)+"&weappAppId="+e.name}):h("暂不支持")}functions(e){if(n=e.type,(k=$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!=k.state.miniProgram&&2!=k.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(r.GUIDE_URL,"-----shopConfig.GUIDE_URL"),t=r.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==k.state.miniProgram||2==k.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)}functionw(e){if(U.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(R,"__esModule",{value:!0}),R.themeToLinkInit=e,R.$themeToLink=L;varu=null,p=null,c=null,a=void0,d=void0,g=void0,r=void0,h=void0,s=void0,y=void0,C=void0;functionT(e,t){t=1<arguments.length&&void0!==t?t:"";return"../index/main?from=themeLink&backpath="+encodeURIComponent(e)+"¶ms="+encodeURIComponent(t)}functionP(){return1==u?this.$store&&this.$store.state.sessionId&&this.$store.state.sessionId:2==u?C&&C.getStorageSync("sessionid"):void0}function$(){return1==u&&this.$store&&this.$store.state.miniProgram}functionI(){return1==u?r.GUIDE_URL:2==u?config.GUIDE_URL:void0}functionb(e){returne.link.split("?")[0]}functionx(e){returne.link.split("?")[1]||""}functiono(t){vare=getApp();returne.globalData.footerVal?e.globalData.footerVal.componentData.list.findIndex(function(e){returnb(e.link)==t.split("?")[0]}):-1}varl=["index","media-video","goods-goodsInfo","goods-commodityMenu","goodsSearch-goodsSearch","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"].map(function(e){return"/index"==(e="/"+e.replace(/-/g,"/"))?"/":e});functione(e){vart=e.homeNative,n=e.wx,i=e.getCoupon,o=e.themeMemberCardClick,e=e.requireFun;if(u=t,y=e,console.log(y,"-------------------------115"),d=y.createdUserJWT,g=y.getBcakUrl,C=n,console.log(u,"-------------themeToLinkInit"),console.log("toPage-------------"),c=1==u?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==u?function(e){vart=e.pagePath;1==(e=void0===(e=e.pageType)?1:e)?C.navigateTo({url:t}):2==e&&C.reLaunch({url:t})}:void0,1==u)try{a=y.Vue,r=y.shopConfig,a.prototype.$themeToLink=L,h=y.Toast,s=y.hylToLink}catch(e){}else2==u&&((p=getApp()).$themeToLink=L,p.getCoupon=i,p.themeMemberCardClick=o)}functionD(e){vart=b(e),n=x(e);return(e=l.includes(t)||"/goods/"==t.substr(0,7)||t.includes("/brandTopics"))||P()?!(0<=(e=o(t)))||(e=0==e?o("/"):e,t="/"==t?"/pages/home/main":"/pages/tabBar"+e+"/main",(e=getCurrentPages())[e.length-1].route!=t&&(c({pagePath:t+(n?"?"+n:""),pageType:2}),0)):(c({pagePath:"/pages/login/main?back="+t}),0)}asyncfunctionL(t){if(console.log(t,"$themeToLink"),t.type){if(t.link&&t.link.includes("scene=sso")){if(!P.call(this))returnvoidh("请先登录");vare=(n=function(){return1==u?this.$store&&this.$store.state.userInfo:2==u?(console.log(C.getStorageSync("userInfo"),'---wx.getStorageSync("userInfo")'),C&&C.getStorageSync("userInfo")&&JSON.parse(C.getStorageSync("userInfo"))):void0}.call(this,u)).mobilephone,n=n.email;t.link=awaitg({toAppid:"hgFTLLhgnBmeOyCkcbyv",callbackUrl:t.link,phoneNumber:e,email:n})}t.link&&t.link.includes("dynamicForm")&&awaitd().then(function(e){t.link+="&token="+e})}vari,o,a,r,l;1==u&&s.call(this,{data:t,Vue:y.Vue,Dialog:y.Dialog,Toast:y.Toast,hyl:y.hyl,dateFilter:y.dateFilter,shopConfig:y.shopConfig}),2!=(n=t.type)&&2==u&&(D(t),!D(t))||(null!=n&&"undefined"!=n?0==n||(1==n?"/"==t.link.substring(0,1)?1==u?c.call(this,{pagePath:t.link}):2==u&&(i=T(b(t),x(t)),c({pagePath:i})):t.link.startsWith("http")||t.link.startsWith("https")?1==u?c.call(this,{pagePath:t.link,pageType:2}):(i="/pages/wxArticle/main?link="+encodeURIComponent(t.link),c({pagePath:i})):c({pagePath:t.link,pageType:2}):1.1==n?2==u?c({pagePath:t.link}):1==u&&(1==$.call(this)||2==$.call(this)?c.call(this,{pagePath:t.link,pageType:3}):h("暂不支持")):1.2==n?"outerChain:businessCenter"!=t.link?"/"==t.link.substring(0,1)?c.call(this,{pagePath:t.link}):1==u?1==this.$store.state.miniProgram||2==this.$store.state.miniProgram?(o="/pages/wxArticle/main?link="+encodeURIComponent(t.link),c.call(this,{pagePath:o,pageType:3})):c.call(this,{pagePath:t.link,pageType:2}):2==u&&(o="/pages/wxArticle/main?link="+encodeURIComponent(t.link),c.call(this,{pagePath:o,pageType:1})):(console.log(I(),"-----getGUIDE_URL()"),a=I()+"/login?mixid="+this.$nuxt.$route.query.mixid+"&back="+encodeURIComponent(window.location.href),c.call(this,{pagePath:a,pageType:2})):2==n?"themeCouponClick"==(a=t.feature.type)||0==a?1==u?this.$themeCouponClick(t.feature.value.couponCode,t.feature.value):2==u&&p.getCoupon(t.feature.value.couponCode,t.feature.value):1==a?2==t.type&&1==t.feature.type&&function(e){1==u?this.$nuxt.$SHARE({itemList:e.feature.value}):2==u&&p.shareInit({itemList:e.feature.value})}.call(this,t):"themeMemberCardClick"!=a&&2!=a||(1==u?this.$themeMemberCardClick(t.feature.value):2==u&&p.themeMemberCardClick(t.feature.value)):3==n?1==u?1==$.call(this)||2==$.call(this)?this.$store.getters["sceneModule/flushbonadingVisible"]?(r="/pages/toMini/toMini?weappPage="+encodeURIComponent(t.link)+"&weappAppId="+t.name,c.call(this,{pagePath:r,pageType:3})):(r="/pages/toMini/main?weappPage="+encodeURIComponent(t.link)+"&weappAppId="+t.name,c({pagePath:r})):h("暂不支持"):(l="/pages/toMini/main?weappPage="+encodeURIComponent(t.link)+"&weappAppId="+t.name,c({pagePath:l})):0<t.length&&c.call(this,{pagePath:t.link})):0<t.length&&(1==u?c.call(this,{pagePath:t}):2==u&&(l=T(b(t),x(t)),c({pagePath:l}))))}t.themeToLinkInit=e}.call(this)}.call(this,e("_process"),"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{_process:1}]},{},[2]);