1 line
7.9 KiB
JavaScript
1 line
7.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26937ed4"],{"0860":function(t,e,n){},"0cd0":function(t,e,n){},2532:function(t,e,n){"use strict";var a=n("23e7"),i=n("e330"),o=n("5a34"),r=n("1d80"),s=n("577e"),c=n("ab13"),u=i("".indexOf);a({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~u(s(r(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},2710:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("flex",{staticClass:"home",attrs:{direction:"column"}},[a("flex",{staticClass:"skip",attrs:{justify:"space-between"}},[a("div",{staticClass:"skip_left",on:{click:function(){return t.jump("link")}}},[a("img",{attrs:{alt:"",src:n("6b60")}}),a("div",[a("p",{staticClass:"p1"},[t._v("链接发送")]),a("p",{staticClass:"p2"},[t._v("已知手机号码")])])]),a("div",{staticClass:"skip_right",on:{click:function(){return t.jump("xq")}}},[a("img",{attrs:{alt:"",src:n("e640")}}),a("div",[a("p",{staticClass:"p1"},[t._v("信息填写")]),a("p",{staticClass:"p2"},[t._v("已知全部信息")])])])]),a("flex",{staticClass:"tabs"},[a("flex",{staticClass:"tabItem",attrs:{"align-items":"center",justify:"center"}},[a("router-link",{attrs:{to:{path:"/home/judge"}}},[t._v("待审核")]),a("van-badge",{directives:[{name:"show",rawName:"v-show",value:t.isCorner,expression:"isCorner"}],attrs:{content:t.corner,max:"99"}})],1),a("flex",{staticClass:"tabItem",attrs:{"align-items":"center",justify:"center"}},[a("router-link",{attrs:{to:{path:"/home/invite"}}},[t._v("关于我的")])],1),a("flex",{staticClass:"tabItem",attrs:{"align-items":"center",justify:"center"}},[a("router-link",{attrs:{to:{path:"/home/history"}}},[t._v("审核记录")])],1)],1),a("flex",{staticClass:"content",attrs:{direction:"column"}},[a("router-view")],1),a("PhoneInputDialog",{ref:"phoneDialogRef"})],1)},i=[],o=(n("caad"),n("2532"),n("8696")),r=n("2c56"),s=n("4fcf"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-dialog",{attrs:{beforeClose:t.sendPhone,"show-cancel-button":"",title:"链接发送"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{placeholder:"请输入邀请人手机号码"},domProps:{value:t.phone},on:{input:function(e){e.target.composing||(t.phone=e.target.value)}}})])},u=[],p=n("d399"),l=n("62e6"),d={name:"PhoneInputDialog",data:function(){return{show:!1,phone:void 0}},methods:{showDialog:function(){this.show=!0,this.phone=void 0},sendPhone:function(t,e){var n=this;"confirm"==t?l["a"].sendPhone(this.phone).then((function(t){p["a"].clear(),200==t.code?(n.show=!1,p["a"].success({message:"发送成功",duration:2e3}),e()):(e(!1),Object(r["b"])(t))})):e()}}},f=d,h=(n("e37b"),n("2877")),g=Object(h["a"])(f,c,u,!1,null,"35195103",null),m=g.exports,v={components:{PhoneInputDialog:m},name:"HomeLayout",data:function(){return{department:!1,leader:!1,corner:0,isCorner:!1}},created:function(){this.getTabs(),this.auditNumber()},updated:function(){this.auditNumber()},watch:{corner:function(t,e){this.isCorner=0!=t}},methods:{auditNumber:function(){var t=this;o["a"].auditNumber().then((function(e){200==e.code&&(t.corner=e.data)}))},getTabs:function(){var t=this;o["a"].tabs().then((function(e){200==e.code?(t.department=e.data.includes("wait-depart"),t.leader=e.data.includes("wait-leader")):Object(r["b"])(e)}))},jump:function(t){"link"==t?this.$refs.phoneDialogRef.showDialog():s["a"].goRecordApply("","dingding")}}},b=v,y=(n("993a"),Object(h["a"])(b,a,i,!1,null,"f9824790",null));e["default"]=y.exports},"4fcf":function(t,e,n){"use strict";var a=n("906c"),i=n("a18c"),o=function(t,e){i["a"].push({path:"/record/detail",query:{id:t,num:e}})},r=function(){i["a"].push({path:"/"})},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;i["a"].go(t)},c=function(){i["a"].push({path:"/record/successful"})},u=function(){i["a"].push({path:"/record/succeed"})},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"phone",n={source:e};a["a"].isEmpty(t)||(n.recordId=t),i["a"].push({path:"/record/apply",query:n})},l=function(t){a["a"].isEmpty(t)?r():o(t)},d={login:function(){i["a"].push({path:"/visitor/login"})},record:function(){i["a"].push({path:"/visitor/record"})},result:function(t){i["a"].push({path:"/visitor/result",query:{id:t}})}};e["a"]={Visitor:d,goDetail:o,goHome:r,goBack:s,goRecordSuccessful:c,goRecordSucceed:u,goRecordApply:p,homeDetail:l}},"5a34":function(t,e,n){var a=n("da84"),i=n("44e7"),o=a.TypeError;t.exports=function(t){if(i(t))throw o("The method doesn't accept regular expressions");return t}},"62e6":function(t,e,n){"use strict";var a=n("5530"),i=n("2c56");e["a"]={sendPhone:function(t){return i["a"].post("/app/apply/send/phone",{phone:t})},fill:function(t){return i["a"].post("/app/apply/fill",Object(a["a"])({},t))},info:function(t){return i["a"].post("/app/apply/phone/info",{id:t})},applyAcquire:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["a"].get("/app/apply/acquire",{params:Object(a["a"])({},t)})},timeList:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["a"].get("/app/apply/time",{params:Object(a["a"])({},t)})},playerFill:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["a"].post("/app/apply/player/fill",Object(a["a"])({},t))}}},"6b60":function(t,e,n){t.exports=n.p+"img/link_2.3c53acb6.png"},8696:function(t,e,n){"use strict";n("d3b7"),n("e9c4");var a=n("2c56"),i=n("906c");e["a"]={config:function(){return new Promise((function(t){var e=i["a"].parseJSON(sessionStorage.getItem("indexConfig"),null);e?t(e):a["a"].get("/app/index/config").then((function(e){200==e.code?(sessionStorage.setItem("indexConfig",JSON.stringify(e)),t(e)):Object(a["b"])(e)}))}))},applyLimitDay:function(){return new Promise((function(t){a["a"].get("/common/apply_limit_day").then((function(e){200==e.code?t(e.data):Object(a["b"])(e)}))}))},applyPicture:function(){return new Promise((function(t){a["a"].get("/manager/config/show").then((function(e){200==e.code?t(e.data):Object(a["b"])(e)}))}))},systemConfig:function(t){return new Promise((function(e){a["a"].get("/base/system/get_config_one",{params:{key:t}}).then((function(n){200===n.code?(sessionStorage.setItem(t,n.data.configVal),e(n.data.configVal)):e("")}))}))},tabs:function(){return a["a"].get("/app/index/tabs")},auditNumber:function(){return a["a"].get("/app/index/auditNumber")},screen:function(t){return a["a"].get("/app/record/userPageList",{params:t})},note:function(t){return a["a"].post("/app/index/note",{phone:t})},login:function(t,e){return a["a"].post("/app/index/login",{phone:t,verificationCode:e})},passphrase:function(t){return a["a"].post("/app/index/passphrase",t)}}},"993a":function(t,e,n){"use strict";n("0860")},ab13:function(t,e,n){var a=n("b622"),i=a("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(a){}}return!1}},caad:function(t,e,n){"use strict";var a=n("23e7"),i=n("4d64").includes,o=n("44d2");a({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},e37b:function(t,e,n){"use strict";n("0cd0")},e640:function(t,e,n){t.exports=n.p+"img/message_2.016bfeea.png"},e9c4:function(t,e,n){var a=n("23e7"),i=n("da84"),o=n("d066"),r=n("2ba4"),s=n("e330"),c=n("d039"),u=i.Array,p=o("JSON","stringify"),l=s(/./.exec),d=s("".charAt),f=s("".charCodeAt),h=s("".replace),g=s(1..toString),m=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,y=function(t,e,n){var a=d(n,e-1),i=d(n,e+1);return l(v,t)&&!l(b,i)||l(b,t)&&!l(v,a)?"\\u"+g(f(t,0),16):t},w=c((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")}));p&&a({target:"JSON",stat:!0,forced:w},{stringify:function(t,e,n){for(var a=0,i=arguments.length,o=u(i);a<i;a++)o[a]=arguments[a];var s=r(p,null,o);return"string"==typeof s?h(s,m,y):s}})}}]); |