(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-user-bindaccount"],{"491b":function(t,e,i){"use strict";i.r(e);var n=i("e724"),o=i("74ef");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("cc64");var c=i("828b"),s=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"afe2efaa",null,!1,n["a"],void 0);e["default"]=s.exports},"52c6":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.profile_item[data-v-afe2efaa]{display:flex;background:#fff;color:#666;padding:0 %?30?%;justify-content:space-between;border-bottom:%?1?% solid #f5f5f5;height:%?110?%;line-height:%?110?%;font-size:%?28?%}.profile_item .itemleft[data-v-afe2efaa]{display:flex;justify-content:flex-start;align-items:center}.profile_item .itemleft .leftimg[data-v-afe2efaa]{height:25px;width:25px;margin-right:%?25?%}.profile_item .itemright[data-v-afe2efaa]{display:flex;justify-content:flex-end;align-items:center}.profile_item .itemright .righttext[data-v-afe2efaa]{font-size:%?26?%;color:#008eff;margin-right:%?10?%;background:none;text-align:right;padding-left:0;padding-right:0}.profile_item .itemright .righttext[data-v-afe2efaa]::after{border:none}',""]),t.exports=e},"74ef":function(t,e,i){"use strict";i.r(e);var n=i("b92c"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},b92c:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5ef2"),i("64aa"),i("f7a5");var n=i("e360"),o=i("3a07"),a={data:function(){return{BASE_IMG_URL:o.BASE_IMG_URL,code:"",is_bind_wechat:0}},onLoad:function(){console.log(window.location.href,window.location.host,"-----");var t=window.location.href;if(-1!=t.indexOf("code")){var e=Number(t.indexOf("="))+1,i=t.indexOf("&"),n=t.slice(e,i);if(console.log(n,"====="),n){this.code=n;var o={type:"web",code:n};this.send(o)}}this.getIs()},onShow:function(){},methods:{getIs:function(){var t=this;(0,n.nerIsbindWechat)().then((function(e){console.log(e),t.is_bind_wechat=e.data.is_bind_wechat}))},toBindWechat:function(){this.wxOfficialAccountLogin()},wxOfficialAccountLogin:function(){var t=uni.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 uni.showToast({title:"请在后台设置appid",icon:"none"})},send:function(t){var e=this;(0,n.netSendCode)(t).then((function(t){uni.showToast({title:t.msg,icon:"none"}),setTimeout((function(){e.getIs()}),2e3)}))},getInfo:function(){var t=this;wx.login({success:function(e){var i={type:"applet",code:e.code};t.send(i)}})},toUnbound:function(){var t=this;(0,n.netUnboundWecgat)().then((function(e){uni.showToast({title:e.msg,icon:"none"}),setTimeout((function(){t.getIs()}),2e3)}))}}};e.default=a},cc64:function(t,e,i){"use strict";var n=i("d96c"),o=i.n(n);o.a},d96c:function(t,e,i){var n=i("52c6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("7f84f926",n,!0,{sourceMap:!1,shadowMode:!1})},e724:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"profile_item"},[i("v-uni-view",{staticClass:"itemleft"},[i("v-uni-image",{staticClass:"leftimg",attrs:{src:t.BASE_IMG_URL+"wechat.png",mode:"scaleToFill"}}),i("v-uni-view",{staticClass:"lxs_font"},[t._v("微信")])],1),0==t.is_bind_wechat?i("v-uni-view",{staticClass:"itemright",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toBindWechat.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"righttext"},[t._v("请绑定")]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1):i("v-uni-view",{staticClass:"itemright",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toUnbound.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"righttext"},[t._v("已绑定/解绑")]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1)},o=[]}}]);