(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-user-bindaccount"],{"1e9c":function(t,e,i){"use strict";i.r(e);var n=i("9ddf"),o=i("7feb");for(var c in o)"default"!==c&&function(t){i.d(e,t,(function(){return o[t]}))}(c);i("ccd9");var a,s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"eb5c9acc",null,!1,n["a"],a);e["default"]=r.exports},"7feb":function(t,e,i){"use strict";i.r(e);var n=i("aaa8"),o=i.n(n);for(var c in n)"default"!==c&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=o.a},8769:function(t,e,i){var n=i("ef0c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("36445b47",n,!0,{sourceMap:!1,shadowMode:!1})},"9ddf":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return n}));var o=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)},c=[]},aaa8:function(t,e,i){"use strict";i("c975"),i("fb6a"),i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("f8c1"),o=i("2345"),c={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=c},ccd9:function(t,e,i){"use strict";var n=i("8769"),o=i.n(n);o.a},ef0c:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.profile_item[data-v-eb5c9acc]{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-eb5c9acc]{display:flex;justify-content:flex-start;align-items:center}.profile_item .itemleft .leftimg[data-v-eb5c9acc]{height:25px;width:25px;margin-right:%?25?%}.profile_item .itemright[data-v-eb5c9acc]{display:flex;justify-content:flex-end;align-items:center}.profile_item .itemright .righttext[data-v-eb5c9acc]{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-eb5c9acc]::after{border:none}',""]),t.exports=e}}]);