公司小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/WxLogin/WxLogin"],{192:function(n,e,o){"use strict";(function(n){o(3);t(o(2));var e=t(o(193));function t(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=o,n(e.default)}).call(this,o(0)["createPage"])},193:function(n,e,o){"use strict";o.r(e);var t=o(38),u=o(22);for(var r in u)"default"!==r&&function(n){o.d(e,n,(function(){return u[n]}))}(r);o(194);var i,a=o(1),c=Object(a["a"])(u["default"],t["b"],t["c"],!1,null,"681b0ed8",null,!1,t["a"],i);c.options.__file="pages/WxLogin/WxLogin.vue",e["default"]=c.exports},194:function(n,e,o){"use strict";var t=o(24),u=o.n(t);u.a},22:function(n,e,o){"use strict";o.r(e);var t=o(23),u=o.n(t);for(var r in t)"default"!==r&&function(n){o.d(e,n,(function(){return t[n]}))}(r);e["default"]=u.a},23:function(n,e,o){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=u(o(44));function u(n){return n&&n.__esModule?n:{default:n}}function r(n,e,o,t,u,r,i){try{var a=n[r](i),c=a.value}catch(s){return void o(s)}a.done?e(c):Promise.resolve(c).then(t,u)}function i(n){return function(){var e=this,o=arguments;return new Promise((function(t,u){var i=n.apply(e,o);function a(n){r(i,t,u,a,c,"next",n)}function c(n){r(i,t,u,a,c,"throw",n)}a(void 0)}))}}var a={data:function(){return{SessionKey:"",OpenId:"",nickName:null,avatarUrl:null,isCanUse:n.getStorageSync("isCanUse")||!0}},methods:{doGetUserInfo:function(){var n=this;return i(t.default.mark((function e(){return t.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$utils.wechatLogin();case 2:e.sent;case 3:case"end":return e.stop()}}),e)})))()},onBackTouched:function(){n.navigateBack({})},login:function(){n.showLoading({title:"登录中..."}),n.login({provider:"weixin",success:function(e){console.log(e);var o=e.code;n.request({url:"http://192.168.31.11:8888/app/v1/login/wechatlogin",data:{code:o},method:"POST",header:{"content-type":"application/json"},success:function(e){console.log("!!!!"),console.log(e),n.hideLoading()},fail:function(e){console.log(e),n.hideLoading()}})}})},onLoad:function(){}}};e.default=a}).call(this,o(0)["default"])},24:function(n,e,o){},38:function(n,e,o){"use strict";var t;o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return t}));try{t={uNavbar:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-navbar/u-navbar")]).then(o.bind(null,467))},uGap:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-gap/u-gap")]).then(o.bind(null,468))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var u=function(){var n=this,e=n.$createElement;n._self._c},r=[];u._withStripped=!0}},[[192,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/WxLogin/WxLogin.js.map