Files
peko-h5/view/peko/modules/myincome/static/js/6.3655d80f5f2b212e3b9f.js

2 lines
3.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

webpackJsonp([6],{"160G":function(t,e){},CroZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("+EAh"),s=i("Fd2+");i("7+uW").a.use(s.c);var o=null,a={data:function(){return{phone:"",code:"",getCodeTitle:"獲取驗證碼",styleCode:!0}},methods:{blurBtn:function(){setTimeout(function(){var t=document.documentElement.scrollTop||document.body.scrollTop||0;window.scrollTo(0,Math.max(t-1,0))},100)},getCode:function(){var t=this;if(this.styleCode){/^[1]([3-9])[0-9]{9}$/.test(this.phone)?(this.styleCode=!1,Object(n.h)({mobile:this.phone,type:1}).then(function(e){200===e.data.code&&(Object(s.b)(e.data.message),t.timer())})):Object(s.b)("請輸入正確的手機號")}},logining:function(){var t=this;/^[1]([3-9])[0-9]{9}$/.test(this.phone)?(s.b.loading({message:"loading",forbidClick:!0}),Object(n.p)({mobile:this.phone,code:this.code}).then(function(e){if(200===e.data.code){window.sessionStorage.clear(),info.ticket=e.data.data.token,info.uid=e.data.data.uid,window.sessionStorage.setItem("uid",info.uid),window.sessionStorage.setItem("ticket",info.ticket),window.sessionStorage.setItem("jurisdiction","h5");var i=setTimeout(function(){t.$router.replace({path:"/MyIncome"}),s.b.clear(),clearTimeout(i)},600)}}).catch(function(t){503===t.code&&Object(s.b)("該手機號未註冊\n請先去pekoapp完成註冊")})):Object(s.b)("請輸入正確的手機號")},timer:function(){var t=this,e=60;clearInterval(o),this.getCodeTitle="重新獲取("+e+"s)",o=setInterval(function(){e--,t.getCodeTitle="重新獲取("+e+"s)",e<=0&&(clearInterval(o),t.styleCode=!0,t.getCodeTitle="獲取驗證碼")},1e3)}}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("img",{attrs:{src:i("Nl6a")}}),t._v(" "),n("p",{staticClass:"tit"},[t._v("登錄peko")]),t._v(" "),n("div",{staticClass:"max"},[n("div",{staticClass:"phone"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{type:"type",maxlength:"11",placeholder:"請輸入手機號碼"},domProps:{value:t.phone},on:{blur:t.blurBtn,input:function(e){e.target.composing||(t.phone=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"phone_code"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],attrs:{type:"type",maxlength:"5",placeholder:"請輸入驗證碼"},domProps:{value:t.code},on:{blur:t.blurBtn,input:function(e){e.target.composing||(t.code=e.target.value)}}}),t._v(" "),n("span",{staticClass:"get-code",on:{click:function(e){return t.getCode()}}},[t._v(t._s(t.getCodeTitle))])])]),t._v(" "),n("p",{staticClass:"btn",attrs:{"data-lg":"1"},on:{click:t.logining}},[t._v("登錄")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"message"},[this._v("\n 驗證碼錯誤或者過期\n "),e("span")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"pop1"},[e("div",{staticClass:"content"},[e("div",{staticClass:"message_"}),this._v(" "),e("p",{staticClass:"check1",attrs:{id:"confirm1"}},[this._v("確定")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact"},[e("p",[this._v("peko客服微信號pekokefu01")]),this._v(" "),e("p",[e("span",[this._v("粵網文:(2018)8220-2981號")]),this._v(" "),e("span",[e("a",{attrs:{href:"http://www.beian.miit.gov.cn"}},[this._v("粵ICP備20032171")])])])])}]};var r=i("VU/8")(a,c,!1,function(t){i("160G")},"data-v-5659291e",null);e.default=r.exports},Nl6a:function(t,e,i){t.exports=i.p+"static/fonts/login.e6f4fdc.png"}});
//# sourceMappingURL=6.3655d80f5f2b212e3b9f.js.map