crm_second_opening_mini/pagesA/user/bindaccount.js

1 line
2.3 KiB
JavaScript

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/user/bindaccount"],{"1e1f":function(n,t,e){"use strict";e.r(t);var o=e("60c6"),c=e("c48e");for(var i in c)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(i);e("b1a7");var a=e("f0c5"),u=Object(a["a"])(c["default"],o["b"],o["c"],!1,null,"45fc071e",null,!1,o["a"],void 0);t["default"]=u.exports},"5ebd":function(n,t,e){"use strict";(function(n,t){var o=e("4ea4");e("8886");o(e("66fd"));var c=o(e("1e1f"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"60c6":function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){}));var o=function(){var n=this.$createElement;this._self._c},c=[]},"68c9":function(n,t,e){},b1a7:function(n,t,e){"use strict";var o=e("68c9"),c=e.n(o);c.a},c48e:function(n,t,e){"use strict";e.r(t);var o=e("dba5"),c=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=c.a},dba5:function(n,t,e){"use strict";(function(n,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=e("f785"),i=e("0c59"),a={data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,code:"",is_bind_wechat:0}},onLoad:function(){this.getIs()},onShow:function(){},methods:{getIs:function(){var n=this;(0,c.nerIsbindWechat)().then((function(t){console.log(t),n.is_bind_wechat=t.data.is_bind_wechat}))},toBindWechat:function(){this.getInfo()},wxOfficialAccountLogin:function(){var t=n.getStorageSync("appid");if(t){var e=window.location.href;e=encodeURIComponent(e),window.location="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+t+"&redirect_uri=".concat(e,"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")}else n.showToast({title:"请在后台设置appid",icon:"none"})},send:function(t){var e=this;(0,c.netSendCode)(t).then((function(t){n.showToast({title:t.msg,icon:"none"}),setTimeout((function(){e.getIs()}),2e3)}))},getInfo:function(){var n=this;o.login({success:function(t){console.log(t,"-----");var e={type:"applet",code:t.code};n.send(e)}})}}};t.default=a}).call(this,e("543d")["default"],e("bc2e")["default"])}},[["5ebd","common/runtime","common/vendor"]]]);