PageSourceSearch

https://yadog.com/_nuxt/2c69def.js

js yadog.com collected 2026-10-02 00:09:09 UTC 10,450 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1412:function(t,e,o){"use strict";o.r(e);o(16),o(19),o(24),o(42);var n,r=o(0),c=(o(5),o(340),o(2)),l=o.n(c),m=o(931),d={layout:"auth",head:function(){return{title:"登入 - 小狗Online"}},data:function(){return Object(r.a)({isUnder:!1,x:"",isWeb:!1,isIos:!1,nameWithError:null,pwdWithError:null,remember:!1,cookieNameShow:"none",cookiePwdShow:"none",downloadFilename:"",name:"",pwd:"",focuseInput:!1,pb:0,qrCodeConfig:{text:"https://apps.apple.com/tw/app/id1620386161",dotScale:.9,colorDark:"#000"},types:[{title:"帳號",id:"name",type:"text",val:null},{title:"密碼",id:"pwd",type:"password",val:null}],verifyTitle:"取得手機驗證碼",verifyMsg:null,phone:null,ip:"",checkServcieOK:!1},"types",[{title:"帳號名稱(英文數字組合)",id:"register_name",type:"text",val:null},{title:"密碼",id:"register_pwd",type:"password",val:null},{title:"再次輸入密碼",id:"register_re_pwd",type:"password",val:null}])},beforeDestroy:function(){},watch:{"$store.state.isUserLoggedIn":function(t){1==t&&this.$router.push("/")}},components:{VueQr:o.n(m).a},mounted:function(){this.resetModal();var t=deviceType(),e=isAndroidFn();this.isWeb=2!=t&&!e,this.$store.state.isUserLoggedIn&&this.$router.push("/")},methods:(n={buttonPlay:function(){isAndroidFn()||this.$nuxt.$emit("buttonPlay")},focusIn:function(){isAndroidFn()&&(this.pb="100vh")},focusOut:function(){isAndroidFn()&&(this.pb=0,hideStatusBar())},registerModalSubmit:function(t){if(this.checkServcieOK){this.nameWithError=!1,this.pwdWithError=!1,this.re_pwdWithError=!1;var data={name:this.types[0].val,password:this.types[1].val,re_password:this.types[2].val};this.registerModalSubmit(data)}else this.$swal({icon:"error",title:"Oops...",html:"請勾選同意使用者規章"})}},Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(n,"registerModalSubmit",(function(data){var t=this,e=this.$route.query.code?this.$route.query.code:void 0;this.$axios.post("mainApi",{action:"PromoLink_create",username:data.name,password:data.password,password_confirmation:data.re_password,PromoLinkName:e}).then((function(e){if(0==e.data.ErrorCode){var o={name:data.name,password:data.password,remember:t.remember};t.signinModalSubmit(o),gtag("event","sign_up",{method:"Google"})}else t.$swal({icon:"error",title:"Oops...",html:e.data.data.reason})}))})),"getVerifyMsg",(function(t){var e=this;t.preventDefault(),this.$axios.post("/auth/send/verifyMsg",{phone:this.phone,type:"register"}).then((function(t){0==t.data.ErrorCode?e.$swal({icon:"success",html:"驗證碼取得成功"}):e.$swal({icon:"error",title:"Oops...",html:"驗證碼取得失敗"})}))})),"openService",(function(){this.$root.$emit("bv::show::modal","modal-service")})),"openPrivacy",(function(){this.$root.$emit("bv::show::modal","modal-privacy")})),"resetModal",(function(){var t=this;if(2==deviceType()){this.isIos=!0;get_app_storage("cookieSigninTotal",(function(e){if(1==e.res_code){var o=JSON.parse(e.res_content);t.name=o.cookieName,t.pwd=o.cookiePwd,t.remember=o.cookieRemember}}))}else l.a.get("cookieRemember")?(this.remember=!0,this.name=l.a.get("cookieName"),this.pwd=l.a.get("cookiePwd")):this.remember=!1})),"checkForm",(function(t){if(this.buttonPlay(),t.preventDefault(),null!=this.name&&null!=this.pwd){if(this.remember){this.$nuxtSetCookie("cookieRemember","true");var e=this.name;this.$nuxtSetCookie("cookieName",e);var o=this.pwd;this.$nuxtSetCookie("cookiePwd",o);var n={cookieRemember:!0,cookieName:e,cookiePwd:o},r=JSON.stringify(n);this.$nuxtSetCookie("cookieSigninTotal",r)}else this.$nuxtRemoveCookie("cookieRemember"),this.$nuxtRemoveCookie("cookieName"),this.$nuxtRemoveCookie("cookiePwd");var data={name:this.name,password:this.pwd,remember:this.remember};this.signinModalSubmit(data)}else this.$swal({icon:"error",title:"Oops...",html:"請輸入完整資料"})})),"signinModalSubmit",(function(data){var t=this;this.$axios.post("mainApi",{action:"LoginProcess",username:data.name,password:data.password}).then((function(e){0==e.data.ErrorCode?(t.$swal({position:"top-bottom",icon:"success",title:"登入成功",showConfirmButton:!1,timer:1500}).then((function(){gtag("event","login",{method:"Google"})})),t.$nuxt.$emit("setSigninData",e.data),t.$router.push("/")):(t.$swal({icon:"error",title:"Oops...",html:e.data.ErrorMsg}),t.$store.commit("isUserLoggedInSet",!1))}))})),"appleLogin",(function(){var t=this;this.buttonPlay(),apple_login((function(e){e.id;
1t.$bvModal.hide("modal-signin"),t.$axios.post("/apple/app/login",e).then((function(e){0==e.data.ErrorCode?t.$swal({position:"top-bottom",icon:"success",title:"登入成功",showConfirmButton:!1,timer:1500}).then((function(){var o=null!=e.data.social?e.data.social:"member";t.$nuxtSetStorage("social",o),t.$nuxt.$emit("setSigninData",e.data)})):t.$swal({icon:"error",title:"Oops...",html:e.data.ErrorMsg}),t.$nuxt.$emit("setSigninData"),t.$router.push("/")}))}))})),"googleLogin",(function(){this.buttonPlay();var t=isAndroidFn(),e=this;if(t){var o=function(t,o,n,r,c,l,m,d,h){var v={id:o,nickname:n,name:n,email:t,avatar:l,familyName:r,givenName:c,idToken:m,serverAuthCode:d,accessToken:h};e.$bvModal.hide("modal-signin"),e.$axios.post("/google/app/login",v).then((function(t){0==t.data.ErrorCode?e.$swal({position:"top-bottom",icon:"success",title:"登入成功",showConfirmButton:!1,timer:1500}).then((function(){var o=null!=t.data.social?t.data.social:"member";e.$nuxtSetStorage("social",o),e.$nuxt.$emit("setSigninData",t.data),e.$router.push("/")})):e.$swal({icon:"error",title:"Oops...",html:t.data.ErrorMsg}).then((function(){e.$bvModal.hide("modal-signin")})),e.$nuxt.$emit("setSigninData"),e.$router.push("/")}))};andGoogleLogin(o,(function(t){}))}else"yadog.cc"==location.hostname||"localhost"==location.hostname?document.location.href="https://api.yadog.cc/api/google/auth/redirect":document.location.href="https://api.yadog.com/api/google/auth/redirect"})),"closeModal",(function(){this.$bvModal.hide("modal-signin")})),Object(r.a)(Object(r.a)(Object(r.a)(n,"register",(function(){this.buttonPlay(),this.$root.$emit("bv::show::modal","modal-register")})),"forget",(function(){this.buttonPlay(),this.$router.push("/auth/forget")})),"forgetModalSubmit",(function(){})))},h=o(11),component=Object(h.a)(d,(function(){var t=this,e=t._self._c;return this.$store.state.isUserLoggedIn?t._e():e("div",{class:["index","p-login","p-main",{isFocusInput:t.focuseInput}]},[e("div",{staticClass:"logo-wrap"},[e("Logo")],1),t._v(" "),e("div",{staticClass:"position-wrap"},[e("div",{staticClass:"flex-wrap"},[e("div",{staticClass:"login-wrap",style:"margin-bottom: ".concat(t.pb)},[e("b-container",{attrs:{fluid:""}},[t._e(),t._v(" "),e("b-row",[e("b-col",{attrs:{sm:"12"}},[e("b-form-input",{staticClass:"mb-3 mt-3",attrs:{id:"name",type:"text",placeholder:"請輸入帳號"},on:{focusin:t.focusIn,focusout:t.focusOut,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.checkForm.apply(null,arguments)}},model:{value:t.name,callback:function(e){t.name="string"==typeof e?e.trim():e},expression:"name"}})],1)],1),t._v(" "),e("b-row",[e("b-col",{attrs:{sm:"12"}},[e("b-form-input",{staticClass:"mb-3",attrs:{id:"pwd",type:"password",placeholder:"請輸入密碼"},on:{focusin:t.focusIn,focusout:t.focusOut,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.checkForm.apply(null,arguments)}},model:{value:t.pwd,callback:function(e){t.pwd="string"==typeof e?e.trim():e},expression:"pwd"}})],1)],1),t._v(" "),e("div",{staticClass:"row min-row"},[e("b-col",{attrs:{sm:"12"}},[e("b-row",{staticClass:"forget-wrap",staticStyle:{"align-items":"center"}},[e("b-col",{staticClass:"text-left",attrs:{cols:"6"}},[e("label",{staticClass:"remember checkbox-wrap",on:{click:t.buttonPlay}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.remember,expression:"remember"}],staticClass:"d-none",attrs:{id:"remember",type:"checkbox"},domProps:{checked:Array.isArray(t.remember)?t._i(t.remember,null)>-1:t.remember},on:{change:function(e){var o=t.remember,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.remember=o.concat([null])):c>-1&&(t.remember=o.slice(0,c).concat(o.slice(c+1)))}else t.remember=r}}}),t._v(" "),e("span",{staticClass:"checkbox"}),t._v(" 快速登入")])]),t._v(" "),e("b-col",{staticClass:"text-right",attrs:{cols:"6"}},[e("a",{staticStyle:{"font-size":"0.85rem",color:"#fff"},attrs:{href:"javascript:;"},on:{click:t.forget}},[t._v("忘記密碼?")])])],1)],1)],1),t._v(" "),e("b-row",[e("b-col",{attrs:{sm:"12"}}
1,[e("a",{staticClass:"ga-btn ga-signin",attrs:{href:"javascript:;"},on:{click:t.checkForm}},[t._v("登入會員")])])],1),t._v(" "),e("b-row",{staticClass:"btn-wrap"},[e("div",[e("nuxt-link",{staticClass:"btn-thr register-btn",attrs:{to:"/auth/register"}},[e("span",{staticClass:"icon-user_add"}),t._v(" "),e("span",{staticClass:"txt"},[t._v("註冊會員")])])],1),t._v(" "),e("div",[e("a",{staticClass:"btn-thr",attrs:{href:"https://api.yadog.com/api/line/auth/redirect"}},[e("span",{staticClass:"txt"},[t._v("LINE 登入")])])]),t._v(" "),e("div",[t.isIos?t._e():e("a",{staticClass:"btn-thr",attrs:{href:"javascript:;"},on:{click:t.googleLogin}},[e("span",{staticClass:"txt"},[t._v("GOOGLE 登入")])]),t._v(" "),t.isIos?e("a",{staticClass:"btn-thr",attrs:{href:"javascript:;"},on:{click:t.appleLogin}},[e("span",{staticClass:"txt"},[t._v("Apple 登入")])]):t._e()])])],1)],1)]),t._v(" "),e("div",{staticClass:"gohome-list"},[e("nuxt-link",{staticClass:"nav-btn",attrs:{to:"/"},nativeOn:{click:function(e){return t.buttonPlay.apply(null,arguments)}}},[e("span",{staticClass:"icon-game"}),t._v(" "),e("div",{staticClass:"txt"},[t._v("遊戲大廳")])]),t._v(" "),e("a",{staticClass:"nav-btn",attrs:{href:"javascript:;"},on:{click:function(e){return t.modalOpen("modal-qa")}}},[e("span",{staticClass:"icon-else3"}),t._v(" "),e("div",{staticClass:"txt"},[t._v("常見問題")])])],1),t._v(" "),t._e()]),t._v(" "),e("ModalService"),t._v(" "),e("ModalPrivacy")],1)}),[function(){var t=this._self._c;return t("div",{staticStyle:{"margin-top":"10px"}},[t("span",{staticClass:"icon-ios"}),this._v(" app store下載")])}],!1,null,null,null);e.default=component.exports;installComponents(component,{Logo:o(163).default,ModalService:o(429).default,ModalPrivacy:o(430).default})}}]);

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.