1 line
3.1 KiB
JavaScript
1 line
3.1 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-index"],{"1cc5":function(t,e,n){"use strict";n.r(e);var i=n("dc07c"),a=n("cb46");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("bc32");var c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"0842670a",null,!1,i["a"],void 0);e["default"]=s.exports},bc32:function(t,e,n){"use strict";var i=n("cb46c"),a=n.n(i);a.a},c6a0:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-page-body[data-v-0842670a]{background:#f5f5f5!important}body.?%PAGE?%[data-v-0842670a]{background:#f5f5f5!important}.login[data-v-0842670a]{width:100%;height:100vh}",""]),t.exports=e},cb46:function(t,e,n){"use strict";n.r(e);var i=n("edde"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},cb46c:function(t,e,n){var i=n("c6a0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("5f484914",i,!0,{sourceMap:!1,shadowMode:!1})},dc07c:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"login flex_items flex_center pos"},[n("v-uni-view",{staticClass:"flex_column flex_items",staticStyle:{height:"60vh"}},[n("v-uni-view",{staticClass:"pos",staticStyle:{height:"100rpx","line-height":"100rpx","margin-top":"260rpx"}},[n("v-uni-button",{staticClass:"weixin-login-msg",staticStyle:{width:"550rpx",height:"100rpx","line-height":"100rpx",background:"#BD1922",color:"#fff","font-size":"36rpx","font-weight":"bold","border-radius":"40rpx","text-align":"center"},attrs:{size:"mini","open-type":"getPhoneNumber"},on:{getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetPhoneNumber.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"flex_items flex_center",staticStyle:{width:"100%"}},[n("v-uni-text",{staticClass:"f32 ml15"},[t._v("手机号快捷登录")])],1)],1)],1)],1),n("Ywatermark",{attrs:{info:"蓝色兄弟"}})],1)},a=[]},edde:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("e9c4");var i={data:function(){return{code:""}},onLoad:function(){var t=this;uni.login({success:function(e){console.log(e),t.code=e.code}})},methods:{onGetPhoneNumber:function(t){console.log(t);var e=t.detail;e.iv&&e.encryptedData&&(uni.showLoading({title:"登录中..."}),this.api.getlogin({code:this.code,encryptedData:e.encryptedData,iv:e.iv}).then((function(t){console.log(t),"200"==t.data.code?uni.setStorageSync("token",t.data.data):uni.showToast({title:t.data.message,icon:"none"})})))},getuserinfo:function(){this.api.userinfo().then((function(t){console.log(t),"SUCCESS"==t.data.code?(uni.showToast({title:"登录成功",icon:"success",duration:1200}),uni.setStorageSync("phone",t.data.data.phone),uni.setStorageSync("infos",JSON.stringify(t.data.data)),setTimeout((function(){uni.reLaunch({url:"/pages/index/index"})}),1200)):uni.showToast({title:t.data.message,icon:"none"})}))}}};e.default=i}}]);
|