PageSourceSearch

https://www.maka.im/mk-web-store-v7/_next/static/chunks/pages/miniprogram/bindPhone-42a5d9f8ceb305f7.js

js maka.im collected 2026-10-01 12:34:34 UTC 18,955 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8680],{46670:function(e,n,t){"use strict";t.d(n,{FY:function(){return isUsingStaticRendering},Pi:function(){return observer},fv:function(){return useLocalObservable}});var r,i=t(68949),o=t(67294);if(!o.useState)throw Error("mobx-react-lite requires React with Hooks support");if(!i.makeObservable)throw Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var u=t(73935);function printDebugValue(e){return(0,i.getDependencyTree)(e)}var c=function(){function TimerBasedFinalizationRegistry(e){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var t=Date.now();n.registrations.forEach(function(r,i){t-r.registeredAt>=e&&(n.finalize(r.value),n.registrations.delete(i))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(TimerBasedFinalizationRegistry.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,n,t){this.registrations.set(t,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(TimerBasedFinalizationRegistry.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(TimerBasedFinalizationRegistry.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),TimerBasedFinalizationRegistry}(),s=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:c)(function(e){var n;null===(n=e.reaction)||void 0===n||n.dispose(),e.reaction=null});function isUsingStaticRendering(){return!1}var __read=function(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,o=t.call(e),u=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return u};function observerComponentNameFor(e){return"observer".concat(e)}var ObjectToBeRetainedByReact=function(){};function objectToBeRetainedByReactFactory(){return new ObjectToBeRetainedByReact}var a="function"==typeof Symbol&&Symbol.for,f=a?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)(function(e){return null}).$$typeof,l=a?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)(function(e){return null}).$$typeof;function observer(e,n){if(l&&e.$$typeof===l)throw Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var t,r=null!==(t=null==n?void 0:n.forwardRef)&&void 0!==t&&t,u=e,c=e.displayName||e.name;if(f&&e.$$typeof===f&&(r=!0,"function"!=typeof(u=e.render)))throw Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var observerComponent=function(e,n){return function(e,n){void 0===n&&(n="observed");var t,r,u=__read(o.useState(objectToBeRetainedByReactFactory),1)[0],c=__read(o.useState(),2)[1],forceUpdate=function(){return c([])},a=o.useRef(null);a.current||(a.current={reaction:null,mounted:!1,changedBeforeMount:!1});var f=a.current;if(f.reaction||(f.reaction=new i.Reaction(observerComponentNameFor(n),function(){f.mounted?forceUpdate():f.changedBeforeMount=!0}),s.register(u,f,f)),o.useDebugValue(f.reaction,printDebugValue),o.useEffect(function(){return s.unregister(f),f.mounted=!0,f.reaction?f.changedBeforeMount&&(f.changedBeforeMount=!1,forceUpdate()):(f.reaction=new i.Reaction(observerComponentNameFor(n),function(){forceUpdate()}),forceUpdate()),function(){f.reaction.dispose(),f.reaction=null,f.mounted=!1,f.changedBeforeMount=!1}},[]),f.reaction.track(function(){try{t=e()}catch(e){r=e}}),r)throw r;return t}(function(){return u(e,n)},c)};return""!==c&&(observerComponent.displayName=c),e.contextTypes&&(observerComponent.contextTypes=e.contextTypes),r&&(observerComponent=(0,o.forwardRef)(observerComponent)),function(e,n){Object.keys(e).forEach(function(t){d[t]||Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}(e,observerComponent=(0,o.memo)(observerComponent)),observerComponent}var d={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function useLocalObservable(e,n){return(0,o.useState)(function(){return(0,i.observable)(e(),n,{autoBind:!0})})[0]}(r=u.unstable_batchedUpdates)||(r=function(e){e()}),(0,i.configure)({reactionScheduler:r}),s.finalizeAllImmediately},26649:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/miniprogram/bindPhone",function(){return t(16407)}])},95301:function(e,n,t){"use strict";var r=t(85893),i=t(15494),o=t(91265),u=t.n(o);t(14076);var c=t(13886),s=t(98253),a=t(9008),f=t.n(a),l=t(4298),d=t.n(l),p=t(67294),m=t(85102);
1n.Z=e=>{let{loadDebugScript:n=!1,loadWxScript:t=!0}=e,{setCustomerVips:o,setPermissions:a,setProfile:l}=(0,m.o)(),h=(0,i.Z)(),getProfile=async()=>{let e=(0,c.sqP)(),n=(0,c.LP)();if(e&&n){let[n,t]=await Promise.all([(0,c.etS)(e),(0,c.Fv8)(e)]);l(n.data),o(t.data)}},getUserPremissions=async()=>{let e=(0,c.sqP)();if(e){let n=await (0,c.pZA)(e);a(n)}},getUserPremissionsV5=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10004,n=(0,c.sqP)();if(n){let t=await (0,c.wh9)(n,e);a(t)}},initUserInfo=()=>{getProfile();let e=(0,s.queryToObj)();e.appid?getUserPremissionsV5({maka:10001,gov:10006,preschool:10005,education:10004}[e.appid||"maka"]):getUserPremissions()},initAppUserInfo=()=>{u().judgeIsInApp()?u().appCall({type:"MKUserInfo",jsCbFnName:"appBridgeOnUserInfoCb"},e=>{(null==e?void 0:e.uid)&&((0,s.setCookie)("token",null==e?void 0:e.token),(0,s.setCookie)("Makauid",e.uid),(0,s.setCookie)("maka_uid",e.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:e}=(0,s.queryToObj)();"gov"===e?(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"===e?(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"===e&&(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:e.title})}),n&&(0,r.jsx)(d(),{src:"https://cdn.jsdelivr.net/npm/eruda",onLoad:()=>{window&&window.eruda&&window.eruda.init()}}),t&&(0,r.jsx)(d(),{src:"https://res.wx.qq.com/open/js/jweixin-1.6.0.js"}),e.children]})}},16407:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return bindPhone}});var r=t(85893),i=t(32824),o=t(14651),u=t.n(o),c=t(95301),s=t(55616),a=t(67294),f=t(52942),l=t(13886),d=t(9110),p=t(80085),m=t.n(p),h=t(21410),b=t(31246);function BindPhone(e){let{visible:n,onClose:t}=e,[i,o]=(0,a.useState)(!1),[u,c]=(0,a.useState)(""),[p,v]=(0,a.useState)(""),[y,g]=(0,a.useState)("获取验证码"),[w,_]=(0,a.useState)(!1),onVerifyCode=async()=>{var e;if(i)return;let n=await (0,l.ijo)({type:"admin",mobile:u});(null===(e=n.data)||void 0===e?void 0:e.success)?(o(!0),countDown()):((0,f.Toast)(n.message),o(!1))},countDown=()=>{let e=60;if(g("".concat(e,"s")),!i){let n=setInterval(function(){e--,g("".concat(e,"s")),e<=0&&(clearInterval(n),g("获取验证码"),o(!1))},1e3)}},checkPhone=()=>/^1(\d){10}$/.test(u),onSubmit=async()=>{if(w)return;_(!0);let e=await (0,l.Cxi)({phone:u,code:p});_(!1),(null==e?void 0:e.success)===1?((0,f.Toast)("绑定成功"),setTimeout(()=>{t(),(0,s.n)(1)},200)):(null==e?void 0:e.success)===0?(0,f.Toast)(null==e?void 0:e.error):(0,f.Toast)("请稍后再试")};return(0,r.jsxs)(d.Popup,{visible:n,duration:100,position:"center",className:m().popup_bind_phone,lockScroll:!0,onClose:()=>t(),children:[(0,r.jsxs)("p",{className:m().title,children:["根据国家网络安全法规定,内容发布需",(0,r.jsx)("b",{children:"绑定实名手机号。"})]}),(0,r.jsx)(h.Input,{type:"tel",className:m().input,maxlength:11,placeholder:"请输入手机号",value:u,onChange:e=>c("".concat(e))}),(0,r.jsxs)("div",{className:"flex mt-2",children:[(0,r.jsx)(h.Input,{type:"number",className:m().input,maxlength:4,placeholder:"请输入验证码",value:p,onChange:e=>v("".concat(e))}),(0,r.jsx)(b.Button,{type:"gray",size:"normal",className:m()["btn-verifycode"],disable:!checkPhone()||i,onClick:()=>onVerifyCode(),children:y})]}),(0,r.jsx)(b.Button,{size:"large",className:"mt-4",block:!0,disable:!(p.length>=4&&checkPhone()),loading:w,onClick:()=>onSubmit(),children:"绑定手机号"})]})}var bindPhone=()=>{let[e,n]=(0,a.useState)(!1),toPage=()=>{(0,s.T8)("/pages/webview/index?url=".concat(encodeURIComponent("https://www.maka.im/datastory/privacy/privacy.html")))},onCancel=()=>{(0,s.n)(1)};return(0,r.jsx)(c.Z,{title:"绑定手机",children:(0,r.jsxs)("div",{className:u().bindPhone,children:[(0,r.jsx)("div",{className:u().overlay}),(0,r.jsxs)("div",{className:u().content,children:[(0,r.jsx)("div",{className:u().title,children:"需要手机号进行下一步"}),(0,r.jsxs)("div",{className:u().desc,children:["MAKA十分重视你的个人信息。请点击阅读我们的 ",(0,r.jsx)("span",{onClick:()=>toPage(),children:"使用条款、隐私政策"}),"。如果你同意上述全部内容,请点击“同意并继续”"]}
1),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.Button,{size:"large",type:"light",className:"mr-2",block:!0,onClick:()=>n(!0),children:"手动输入号码"}),(0,r.jsx)(i.Button,{size:"large",type:"default",block:!0,onClick:()=>onCancel(),children:"取消"})]})]}),(0,r.jsx)(BindPhone,{visible:e,onClose:()=>n(!1)})]})})}},55616:function(e,n,t){"use strict";t.d(n,{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=t(39892);let sendMsg2Mp=e=>{var n,t;if(null===(n=window)||void 0===n?void 0:n.wx){let n=null===(t=window)||void 0===t?void 0:t.wx;n.miniProgram.postMessage({data:e})}},initMpShareInfo=e=>{sendMsg2Mp({type:"setShareInfo",data:e})},isInWechatMP=()=>navigator.userAgent.match(/micromessenger/i)&&navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,navigateTo=e=>{var n;let t=null===(n=window)||void 0===n?void 0:n.wx;null==t||t.miniProgram.navigateTo({url:e})},navigateBack=e=>{var n;let t=null===(n=window)||void 0===n?void 0:n.wx;null==t||t.miniProgram.navigateBack({delta:e})},reLaunch=e=>{var n;let t=null===(n=window)||void 0===n?void 0:n.wx;null==t||t.miniProgram.reLaunch({url:e})},toMpLogin=async()=>{isInWechatMP()&&navigateTo("/pages/webview/index?url=".concat((0,r.API)("根域名"),"/mk-web-store-v7/miniprogram/login"))}},13886:function(e,n,t){"use strict";t.d(n,{$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=t(81396)},85102:function(e,n,t){"use strict";t.d(n,{O:function(){return o},o:function(){return useStore}});var r=t(68949),i=t(46670);let o=new class{get userProfile(){return(0,r.toJS)(this.profile)}get isEnterpriseVip(){var e;return!!(null===(e=this.customerVips)||void 0===e?void 0:e.find(e=>"multi_senior"===e.alias||"multi_super"===e.alias))}get isBusiVip(){var e;return!!(null===(e=this.customerVips)||void 0===e?void 0:e.find(e=>"busi"===e.alias))}get isSuperVip(){var e;return!!(null===(e=this.customerVips)||void 0===e?void 0:e.find(e=>"super"===e.alias))}get isSeniorVip(){var e;return!!(null===(e=this.customerVips)||void 0===e?void 0:e.find(e=>"senior"===e.alias))}get isVip(){var e;return(null===(e=this.customerVips)||void 0===e?void 0:e.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=e=>{this.curSearchWord=e},this.setLoginShow=e=>{this.loginShow=e},this.setVipShow=(e,n,t)=>{this.vipShow=e,this.vipType=n||"senior",this.vipTrackData=t||{}},this.setProfile=e=>{this.profile=e},this.setCustomerVips=e=>{this.customerVips=e},this.setPermissions=e=>{this.permissions=e},this.setAbConfig=e=>{this.abConfig=e},(0,r.makeAutoObservable)(this)}},useStore=()=>{let e=(0,i.fv)(()=>o);return e}},15494:function(e,n,t){"use strict";var r=t(67294);let getMobileDetect=e=>{let isAndroid=()=>!!e.match(/Android/i),isIos=()=>!!e.match(/iPhone|iPad|iPod/i),isOpera=()=>!!e.match(/Opera Mini/i),isWindows=()=>!!e.match(/IEMobile/i),isSSR=()=>!!e.match(/SSR/i),isMobile=()=>!!(isAndroid()||isIos()||isOpera()||isWindows());return{isMobile,isDesktop:()=>!!(!isMobile()&&!isSSR()),isAndroid,isIos,isSSR}};n.Z=()=>{(0,r.useEffect)(()=>{},[]);let e="undefined"==typeof navigator?"SSR":navigator.userAgent;return getMobileDetect(e)}},14076:function(){},80085:function(e){e.exports={popup_bind_phone:"bindPhone_popup_bind_phone__CrnWv",title:"bindPhone_title__eaK96",tip:"bindPhone_tip__XeJeo",input:"bindPhone_input__v_w_y","mkm-field__label":"bindPhone_mkm-field__label___Is9u","btn-verifycode":"bindPhone_btn-verifycode__xVCfR"}},14651:function(e){e.exports={bindPhone:"bindPhone_bindPhone__DFTJT",overlay:"bindPhone_overlay__qZ8yH",content:"bindPhone_content__av_mk",title:"bindPhone_title__SY6gy",desc:"bindPhone_desc__tD9Mu",btn:"bindPhone_btn__g3AWq"}}},function(e){e.O(0,[461,1466,9019,3135,965,1758,2116,9110,6937,2824,5253,5727,9774,2888,179],function(){return e(e.s=26649)}),_N_E=e.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.