(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/f-wxLogin/components/f-wxLogin/f-wxLogin"],{"42a0":function(n,t,e){},4886:function(n,t,e){"use strict";e.r(t);var o=e("c0c0"),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},"6f37":function(n,t,e){"use strict";e.r(t);var o=e("9d15"),i=e("4886");for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);e("7e19");var c=e("f0c5"),a=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"5d60696a",null,!1,o["a"],void 0);t["default"]=a.exports},"7e19":function(n,t,e){"use strict";var o=e("42a0"),i=e.n(o);i.a},"9d15":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return o}));var o={uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,"3828"))},uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"3c11"))}},i=function(){var n=this.$createElement;this._self._c},r=[]},c0c0:function(n,t,e){"use strict";(function(n){var o=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(e("9523")),r=e("26cb");function c(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function a(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?c(Object(e),!0).forEach((function(t){(0,i.default)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var u={computed:a({},(0,r.mapState)(["showWxLogin"])),data:function(){return{PrimaryColor:"#1fba1a",avatarUrl:"",nickName:""}},watch:{showWxLogin:function(n,t){n&&!0===n?this.$refs.popup.open(""):this.$refs.popup.close("")}},mounted:function(){},methods:a(a(a({},(0,r.mapMutations)(["setShowWxLogin","setUserInfo"])),(0,r.mapActions)(["getFeedBackList"])),{},{onClose:function(){this.setShowWxLogin(!1)},maskClick:function(){this.setShowWxLogin(!1)},onChooseAvatar:function(n){this.avatarUrl=n.detail.avatarUrl},onBlur:function(n){this.nickName=n.detail.value},submit:function(t){var e=t.detail.code,o=this;o.avatarUrl?"getPhoneNumber:ok"===t.detail.errMsg?n.login({provider:"weixin",success:function(t){var i={phoneCode:e,wxCode:t.code};o.$http("common.applogin",i,"登录中",!0).then((function(t){if(0===t.code){var e={headLogo:o.avatarUrl,wechatId:t.data.wechatId,token:t.data.token||""};o.setUserInfo(e),n.$emit("loginCallback"),n.showToast({title:"登录成功~",icon:"none",success:function(){n.switchTab({url:"/pages/index/index",success:function(n){}})}}),o.onClose()}}))}}):n.showToast({title:"拒绝手机号登录",icon:"none"}):n.showToast({title:"请上传头像~",icon:"none"})}})};t.default=u}).call(this,e("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/f-wxLogin/components/f-wxLogin/f-wxLogin-create-component',
    {
        'uni_modules/f-wxLogin/components/f-wxLogin/f-wxLogin-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("6f37"))
        })
    },
    [['uni_modules/f-wxLogin/components/f-wxLogin/f-wxLogin-create-component']]
]);
