(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/info/wechat"],{"46cd":function(t,e,n){},"75ce":function(t,e,n){"use strict";var a=n("46cd"),i=n.n(a);i.a},"83e1":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=function(){n.e("components/TopBar/TopBar").then(function(){return resolve(n("f619"))}.bind(null,n)).catch(n.oe)},i=function(){n.e("components/invinbg-image-cropper/invinbg-image-cropper").then(function(){return resolve(n("3d91"))}.bind(null,n)).catch(n.oe)},s={components:{TopBar:a,ImageCropper:i},data:function(){return{assetsUrl:this.$util.assetsUrl,auths:[],auth:"",wechat:"",saveOption:{completeUser:{},weiXinStatusEnum:"WxM2F5"}}},mounted:function(){var e=JSON.parse(t.getStorageSync("user"));"Famale"===e.sex?(this.auths=[{key:"WxM2F5",value:"对VIP公开或使用颜豆、权益卡查看"},{key:"WaitAuth",value:"经过我授权才能查看微信"}],this.auth="对VIP公开或使用颜豆、权益卡查看"):"Male"===e.sex&&(this.auths=[{key:"WxF2M7",value:"对完成真人认证的女士公开"},{key:"WaitAuth",value:"经过我授权才能查看微信"}],this.auth="对完成真人认证的女士公开")},methods:{sure:function(){var e=this;if(""!==this.wechat){var n=JSON.parse(t.getStorageSync("user"));n.wxId=this.wechat,this.saveOption.completeUser=n,t.showLoading({title:"保存中",mask:!0}),this.$api.login.saveWechat(this.saveOption).then((function(a){t.hideLoading(),a.data.succ&&(t.setStorageSync("regStep","Index"),t.setStorageSync("user",JSON.stringify(n)),t.showToast({icon:"success",title:"保存成功"}),e.getMineDetail(),t.switchTab({url:"/pages/friends/friends"}))}))}else t.showToast({title:"请填写微信号",icon:"none"})},authsChange:function(t){this.auth=this.auths[t.detail.value].value,this.saveOption.weiXinStatusEnum=this.auths[t.detail.value].key},confirm:function(t){this.tempFilePath="",this.cropFilePath=t.detail.tempFilePath,this.btnText="下一步",this.$refs.popup.close()},getMineDetail:function(){var e=this,n=JSON.parse(t.getStorageSync("user"));this.$api.public.mineDetail({getAlbum:!0,completeUser:n}).then((function(n){e.$store.commit("setUserInfo",n.data),t.setStorageSync("userInfo",JSON.stringify(n.data))}))}}};e.default=s}).call(this,n("543d")["default"])},"8f42":function(t,e,n){"use strict";n.r(e);var a=n("db28"),i=n("d449");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("75ce");var u,o=n("f0c5"),r=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"e76bbf54",null,!1,a["a"],u);e["default"]=r.exports},"9de9":function(t,e,n){"use strict";(function(t){n("39a3");a(n("66fd"));var e=a(n("8f42"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},d449:function(t,e,n){"use strict";n.r(e);var a=n("83e1"),i=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},db28:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var a={TopBar:function(){return n.e("components/TopBar/TopBar").then(n.bind(null,"f619"))}},i=function(){var t=this,e=t.$createElement;t._self._c},s=[]}},[["9de9","common/runtime","common/vendor"]]]);