PageSourceSearch

https://www.maka.im/mk-web-store-v7/_next/static/chunks/pages/miniprogram/account-df856177d54968f1.js

js maka.im collected 2026-10-01 12:34:30 UTC 14,531 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1813],{42590:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/miniprogram/account",function(){return e(17818)}])},27935:function(n,t,e){"use strict";var r=e(85893),i=e(93967),o=e.n(i),u=e(38741),c=e.n(u),s=e(11163),a=e(39892);let f=[{route:"/miniprogram/activity",path:"".concat((0,a.API)("根域名"),"/mk-web-store-v7/miniprogram/activity"),text:"拓客"},{route:"/miniprogram/home",path:"".concat((0,a.API)("根域名"),"/mk-web-store-v7/miniprogram/home"),text:"做图"},{path:"".concat((0,a.API)("根域名"),"/mk-web-store-v7/miniprogram/material"),text:"话术"},{path:"".concat((0,a.API)("根域名"),"/mk-web-store-v7/miniprogram/account"),text:"账户"}];t.Z=n=>{let{activeIndex:t}=n,e=(0,s.useRouter)(),toPage=n=>{e.push(n.path)};return(0,r.jsx)("div",{className:c().tabbar,children:f.map((n,e)=>(0,r.jsx)("div",{className:o()([c().tabItem,t===e&&c().active]),onClick:()=>toPage(n),children:n.text},e))})}},95301:function(n,t,e){"use strict";var r=e(85893),i=e(15494),o=e(91265),u=e.n(o);e(14076);var c=e(13886),s=e(98253),a=e(9008),f=e.n(a),l=e(4298),m=e.n(l),p=e(67294),d=e(85102);t.Z=n=>{let{loadDebugScript:t=!1,loadWxScript:e=!0}=n,{setCustomerVips:o,setPermissions:a,setProfile:l}=(0,d.o)(),h=(0,i.Z)(),getProfile=async()=>{let n=(0,c.sqP)(),t=(0,c.LP)();if(n&&t){let[t,e]=await Promise.all([(0,c.etS)(n),(0,c.Fv8)(n)]);l(t.data),o(e.data)}},getUserPremissions=async()=>{let n=(0,c.sqP)();if(n){let t=await (0,c.pZA)(n);a(t)}},getUserPremissionsV5=async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10004,t=(0,c.sqP)();if(t){let e=await (0,c.wh9)(t,n);a(e)}},initUserInfo=()=>{getProfile();let n=(0,s.queryToObj)();n.appid?getUserPremissionsV5({maka:10001,gov:10006,preschool:10005,education:10004}[n.appid||"maka"]):getUserPremissions()},initAppUserInfo=()=>{u().judgeIsInApp()?u().appCall({type:"MKUserInfo",jsCbFnName:"appBridgeOnUserInfoCb"},n=>{(null==n?void 0:n.uid)&&((0,s.setCookie)("token",null==n?void 0:n.token),(0,s.setCookie)("Makauid",n.uid),(0,s.setCookie)("maka_uid",n.uid),initUserInfo())}):initUserInfo()};return(0,p.useEffect)(()=>{if(h.isDesktop()&&location.href.indexOf("/mobile/site/")>-1){location.href=location.href.replace(/mobile/,"makapc");return}},[]),(0,p.useEffect)(()=>{initAppUserInfo(),(0,s.isMakaAppClient)()||document.documentElement.style.setProperty("--safe-area-inset-top","0px");let{appid:n}=(0,s.queryToObj)();"gov"===n?(document.documentElement.style.setProperty("--app-theme-color","#CF1322"),document.documentElement.style.setProperty("--app-background-color","#FFF1F0"),document.documentElement.style.setProperty("--app-btn-color","#CF1322"),document.documentElement.style.setProperty("--app-btn-text-color","#fff")):"preschool"===n?(document.documentElement.style.setProperty("--app-theme-color","#15B79E"),document.documentElement.style.setProperty("--app-background-color","#F0FDF9"),document.documentElement.style.setProperty("--app-btn-color","#15B79E"),document.documentElement.style.setProperty("--app-btn-text-color","#fff")):"education"===n&&(document.documentElement.style.setProperty("--app-theme-color","#EAAA08"),document.documentElement.style.setProperty("--app-background-color","#FEFDF0"),document.documentElement.style.setProperty("--app-btn-color","#FDE272"),document.documentElement.style.setProperty("--app-btn-text-color","#000")),window.freshPageData=()=>{initUserInfo()}},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f(),{children:(0,r.jsx)("title",{children:n.title})}),t&&(0,r.jsx)(m(),{src:"https://cdn.jsdelivr.net/npm/eruda",onLoad:()=>{window&&window.eruda&&window.eruda.init()}}),e&&(0,r.jsx)(m(),{src:"https://res.wx.qq.com/open/js/jweixin-1.6.0.js"}),n.children]})}},17818:function(n,t,e){"use strict";e.r(t);var r=e(85893),i=e(95301),o=e(47073),u=e.n(o),c=e(85102),s=e(29323),a=e(32824),f=e(67294),l=e(55616),m=e(27935);t.default=(0,s.Pi)(()=>{var n;let{userProfile:t,isVip:e,customerVips:o}=(0,c.o)(),[s,p]=(0,f.useState)(!1),[d,h]=(0,f.useState)(!1),toPage=()=>{(0,l.T8)("/pages/webview/index?url=".concat(encodeURIComponent("https://www.maka.im/datastory/privacy/privacy.html")))},getConfig=()=>{fetch("https://makapicture.oss-cn-beijing.aliyuncs.com/cdn/miniprogram/config/vip_config.json",{}).then(n=>n.json()).then(n=>{h(n.show_vip)}).catch(n=>{})};(0,f.useEffect)(()=>{getConfig()},[]);let v=o[o.length-1];return(0,r.jsx)(i.Z,{children:(0,r.jsxs)("div",{className:u().account,children:[(0,r.jsxs)("div",{className:u().userInfo,children:[(0,r.jsx)("div",{className:u().avatar,children:(0,r.jsx)("img",{src:(null==(n=null==t?void 0:t.avatar)?void 0:n.indexOf("//"))===0?"https:".concat(n):n||"https://res.maka.im/assets/store4/workspace/team_default_thumb%402x.png",alt:""})}),(null==t?void 0:t.uid)?(0,r.jsxs)("div",{className:u().username,children:[(0,r.jsx)("p",{className:u().name,children:null==t?void 0:t.nickname}),(0,r.jsx)("div",{className:u().vip,children:e?v.customer_vip_name:"免费用户"})]}):(0,r.jsx)("div",{style:{lineHeight:"40px"},onClick:()=>(0,l.Xr)(),children:"请先登录"})]}),d&&(0,r.jsxs)("div",{className:u().vipStatus,children:[(0,r.jsx)("img",{src:"https://res.maka.im/cdn/miniprogram/icon_vip.png",alt:"",className:u().icon}),(0,r.jsx)("div",{className:u().vip,children:e?v.customer_vip_name:"暂未开通会员服务"}),(0,r.jsx)("div",{className:u().service,onClick:()=>p(!0),children:"联系客服"})]}),(0,r.jsxs)("div",{className:u().menus,children:[(0,r.jsxs)("div",{className:u().menuItem,onClick:()=>p(!0),children:[(0,r.jsx)(a.Icon,{name:"kefu1",size:18}),(0,r.jsx)("span",{className:u().text,children:"联系客服"}),(0,r.jsx)(a.Icon,{name:"right",size:18,color:"rgba(0,0,0,0.25)"})]}),(0,r.jsxs)("div",{className:u().menuItem,onClick:()=>toPage(),children:[(0,r.jsx)(a.Icon,{name:"xieyi",size:18}),(0,r.jsx)("span",{className:u().text,children:"隐私协议"}),(0,r.jsx)(a.Icon,{name:"right",size:18,color:"rgba(0,0,0,0.25)"})]})]}),(0,r.jsx)(a.Popup,{visible:s,duration:100,position:"center",className:u().popup,lockScroll:!0,onClose:()=>p(!1),children:(0,r.jsxs)("div",{className:u().content,children:[(0,r.jsx)("div",{className:u().title,children:"扫码添加客服"}),(0,r.jsx)("div",{className:u().kefuImg,children:(0,r.jsx)("img",{src:"https://makapicture.oss-cn-beijing.aliyuncs.com/cdn/miniprogram/kefu.png"})})]})}),(0,r.jsx)(m.Z,{activeIndex:3})]})})})},55616:function(n,t,e){"use strict";e.d(t,{Ov:function(){return initMpShareInfo},T8:function(){return navigateTo},UY:function(){return reLaunch},Xr:function(){return toMpLogin},ZM:function(){return isInWechatMP},ZQ:function(){return sendMsg2Mp},n:function(){return navigateBack}});var r=e(39892);let sendMsg2Mp=n=>{var t,e;if(null===(t=window)||void 0===t?void 0:t.wx){let t=null===(e=window)||void 0===e?void 0:e.wx;t.miniProgram.postMessage({data:n})}},initMpShareInfo=n=>{sendMsg2Mp({type:"setShareInfo",data:n})},isInWechatMP=()=>navigator.userAgent.match(/micromessenger/i)&&navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,navigateTo=n=>{var t;let e=null===(t=window)||void 0===t?void 0:t.wx;null==e||e.miniProgram.navigateTo({url:n})},navigateBack=n=>
1{var t;let e=null===(t=window)||void 0===t?void 0:t.wx;null==e||e.miniProgram.navigateBack({delta:n})},reLaunch=n=>{var t;let e=null===(t=window)||void 0===t?void 0:t.wx;null==e||e.miniProgram.reLaunch({url:n})},toMpLogin=async()=>{isInWechatMP()&&navigateTo("/pages/webview/index?url=".concat((0,r.API)("根域名"),"/mk-web-store-v7/miniprogram/login"))}},13886:function(n,t,e){"use strict";e.d(t,{$fC:function(){return r.$fC},$zV:function(){return r.$zV},Agj:function(){return r.Agj},Asp:function(){return r.Asp},Ay2:function(){return r.Ay2},B0h:function(){return r.B0h},BZM:function(){return r.BZM},BcD:function(){return r.BcD},Bzg:function(){return r.Bzg},Cxi:function(){return r.Cxi},DGP:function(){return r.DGP},DIA:function(){return r.DIA},E0u:function(){return r.E0u},FDi:function(){return r.FDi},FP5:function(){return r.FP5},Fv8:function(){return r.Fv8},G9B:function(){return r.G9B},Goz:function(){return r.Goz},I5G:function(){return r.I5G},IaV:function(){return r.IaV},IbQ:function(){return r.IbQ},Ixr:function(){return r.Ixr},J1N:function(){return r.J1N},JDk:function(){return r.JDk},Jih:function(){return r.Jih},Jnx:function(){return r.Jnx},Jsp:function(){return r.Jsp},KAZ:function(){return r.KAZ},KWH:function(){return r.KWH},K_9:function(){return r.K_9},KsD:function(){return r.KsD},L0D:function(){return r.L0D},L60:function(){return r.L60},LG0:function(){return r.LG0},LP:function(){return r.LP},LQZ:function(){return r.LQZ},LVu:function(){return r.LVu},Lky:function(){return r.Lky},MO4:function(){return r.MO4},NnB:function(){return r.NnB},NoV:function(){return r.NoV},OAA:function(){return r.OAA},OLO:function(){return r.OLO},OXN:function(){return r.OXN},Ob$:function(){return r.Ob$},Om:function(){return r.Om},QDG:function(){return r.QDG},QRk:function(){return r.QRk},QmL:function(){return r.QmL},RD3:function(){return r.RD3},RGr:function(){return r.RGr},RUt:function(){return r.RUt},Ru4:function(){return r.Ru4},SI9:function(){return r.SI9},SN3:function(){return r.SN3},T9t:function(){return r.T9t},TTw:function(){return r.TTw},ToI:function(){return r.ToI},U6Q:function(){return r.U6Q},UAI:function(){return r.UAI},UGr:function(){return r.UGr},UUE:function(){return r.UUE},Uqt:function(){return r.Uqt},Uyx:function(){return r.Uyx},VHt:function(){return r.VHt},WY0:function(){return r.WY0},WjE:function(){return r.WjE},WlB:function(){return r.WlB},Wmd:function(){return r.Wmd},XAz:function(){return r.XAz},XL0:function(){return r.XL0},XXJ:function(){return r.XXJ},Xlq:function(){return r.Xlq},Y6e:function(){return r.Y6e},YAj:function(){return r.YAj},YgC:function(){return r.YgC},ZAR:function(){return r.ZAR},_5c:function(){return r._5c},_B:function(){return r._B},_B4:function(){return r._B4},a7T:function(){return r.a7T},aYX:function(){return r.aYX},bFx:function(){return r.bFx},bW$:function(){return r.bW$},bis:function(){return r.bis},cDg:function(){return r.cDg},d4W:function(){return r.d4W},dEx:function(){return r.dEx},dcm:function(){return r.dcm},eFO:function(){return r.eFO},eKt:function(){return r.eKt},e_5:function(){return r.e_5},etS:function(){return r.etS},f17:function(){return r.f17},f7T:function(){return r.f7T},fHf:function(){return r.fHf},gQq:function(){return r.gQq},h_B:function(){return r.h_B},hdb:function(){return r.hdb},hgR:function(){return r.hgR},ijo:function(){return r.ijo},imA:function(){return r.imA},iny:function(){return r.iny},iut:function(){return r.iut},jWp:function(){return r.jWp},kRk:function(){return r.kRk},lpE:function(){return r.lpE},mrS:function(){return r.mrS},muZ:function(){return r.muZ},n$y:function(){return r.n$y},nB3:function(){return r.nB3},nXq:function(){return r.nXq},nnv:function(){return r.nnv},oKJ:function(){return r.oKJ},oL$:function(){return r.oL$},p0:function(){return r.p0},pZA:function(){return r.pZA},pz3:function(){return r.pz3},qCk:function(){return r.qCk},qb$:function(){return r.qb$},qyF:function(){return r.qyF},rJb:function(){return r.rJb},rhL:function(){return r.rhL},sM3:function(){return r.sM3}
1,saW:function(){return r.saW},sqP:function(){return r.sqP},tFu:function(){return r.tFu},uDq:function(){return r.uDq},uYE:function(){return r.uYE},vfU:function(){return r.vfU},wIw:function(){return r.wIw},wh9:function(){return r.wh9},wr9:function(){return r.wr9},wvT:function(){return r.wvT},x3i:function(){return r.x3i},xE6:function(){return r.xE6},xR2:function(){return r.xR2},xT0:function(){return r.xT0},xeQ:function(){return r.xeQ},xjx:function(){return r.xjx},yNx:function(){return r.yNx},yS7:function(){return r.yS7},yrD:function(){return r.yrD},z9q:function(){return r.z9q},zhZ:function(){return r.zhZ}});var r=e(81396)},85102:function(n,t,e){"use strict";e.d(t,{O:function(){return o},o:function(){return useStore}});var r=e(68949),i=e(46670);let o=new class{get userProfile(){return(0,r.toJS)(this.profile)}get isEnterpriseVip(){var n;return!!(null===(n=this.customerVips)||void 0===n?void 0:n.find(n=>"multi_senior"===n.alias||"multi_super"===n.alias))}get isBusiVip(){var n;return!!(null===(n=this.customerVips)||void 0===n?void 0:n.find(n=>"busi"===n.alias))}get isSuperVip(){var n;return!!(null===(n=this.customerVips)||void 0===n?void 0:n.find(n=>"super"===n.alias))}get isSeniorVip(){var n;return!!(null===(n=this.customerVips)||void 0===n?void 0:n.find(n=>"senior"===n.alias))}get isVip(){var n;return(null===(n=this.customerVips)||void 0===n?void 0:n.length)>0}constructor(){this.loginShow=!1,this.vipShow=!1,this.vipType="senior",this.vipTrackData={},this.curSearchWord="",this.profile=null,this.customerVips=[],this.permissions={},this.abConfig=!1,this.setcurSearchWord=n=>{this.curSearchWord=n},this.setLoginShow=n=>{this.loginShow=n},this.setVipShow=(n,t,e)=>{this.vipShow=n,this.vipType=t||"senior",this.vipTrackData=e||{}},this.setProfile=n=>{this.profile=n},this.setCustomerVips=n=>{this.customerVips=n},this.setPermissions=n=>{this.permissions=n},this.setAbConfig=n=>{this.abConfig=n},(0,r.makeAutoObservable)(this)}},useStore=()=>{let n=(0,i.fv)(()=>o);return n}},15494:function(n,t,e){"use strict";var r=e(67294);let getMobileDetect=n=>{let isAndroid=()=>!!n.match(/Android/i),isIos=()=>!!n.match(/iPhone|iPad|iPod/i),isOpera=()=>!!n.match(/Opera Mini/i),isWindows=()=>!!n.match(/IEMobile/i),isSSR=()=>!!n.match(/SSR/i),isMobile=()=>!!(isAndroid()||isIos()||isOpera()||isWindows());return{isMobile,isDesktop:()=>!!(!isMobile()&&!isSSR()),isAndroid,isIos,isSSR}};t.Z=()=>{(0,r.useEffect)(()=>{},[]);let n="undefined"==typeof navigator?"SSR":navigator.userAgent;return getMobileDetect(n)}},14076:function(){},38741:function(n){n.exports={tabbar:"tabbar_tabbar__pQJgO",tabItem:"tabbar_tabItem__jzv4T",active:"tabbar_active__7W8Qy"}},47073:function(n){n.exports={account:"account_account__0WJD6",userInfo:"account_userInfo__nxIVq",avatar:"account_avatar__XSN7F",username:"account_username__T_PiR",name:"account_name___t1jT",vip:"account_vip__9A1kb",vipStatus:"account_vipStatus__Pxdd3",icon:"account_icon__lLHzM",service:"account_service__6_zOZ",menus:"account_menus__7s_20",menuItem:"account_menuItem__Zu_oJ",text:"account_text__Pmal1",content:"account_content__hyJsH",title:"account_title__51a6T",kefuImg:"account_kefuImg__jwuWS"}},11163:function(n,t,e){n.exports=e(59974)}},function(n){n.O(0,[461,1466,9019,3135,965,1758,2116,9110,6937,2824,5253,9323,5727,9774,2888,179],function(){return n(n.s=42590)}),_N_E=n.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.