(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/components/login-popup"],{"0b8a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("5f87"),i=n("6436"),a=function(){n.e("components/app-step").then(function(){return resolve(n("bb43"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/plugin/bottom-popup").then(function(){return resolve(n("062d"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("components/module/app-close").then(function(){return resolve(n("3239"))}.bind(null,n)).catch(n.oe)},s={name:"login-popup-module",components:{AppStep:a,BottomPopup:u,AppClose:c},props:{show:{type:Boolean,default:!1},info:{type:Object,default:function(){}},isPublic:{type:Boolean,default:!1},merchantInfo:{type:Object,default:function(){}},subscribe:{type:Number,default:0},mobile:{type:String,default:""}},data:function(){return{constant:this.$constant,stepIndex:0,wxPhoneInfo:"",wxInfo:{}}},methods:{hidePopup:function(){this.$emit("hide"),this.stepIndex=0},registerFn:function(){this.$util.getCheckLogin()},getWxAvatar:function(){var e=this;t.getUserProfile({desc:"登录",success:function(n){(0,i.getWxInfo)({iv:n.iv,encryptedData:n.encryptedData}).then((function(n){t.showToast({icon:"success"}),e.wxInfo=n.data,setTimeout((function(){e.stepIndex=1}),1e3)}))},fail:function(t){}})},getWxMobile:function(e){var n=this;console.log(e),"getPhoneNumber:ok"===e.detail.errMsg?(0,i.getWxPhone)({iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then((function(e){console.log("用户信息",e),t.showToast({icon:"success"}),n.wxPhoneInfo=e.data.mobile,n.$emit("update:subscribe",1),n.$emit("update:mobile",e.data.mobile),(0,o.getShopUser)(!0),(0,o.wxLoginFn)(!0),setTimeout((function(){n.stepIndex=2}),1e3)})):this.$msg("获取信息失败！")},attentionPublish:function(){this.stepIndex=2},officialErr:function(t){console.log("关注公众号组件",t)},copyFn:function(){var e=this;t.setClipboardData({data:this.merchantInfo.wxAliasName,success:function(){e.$msg("复制成功")},fail:function(){e.$msg("复制失败，请重试！")}})}}};e.default=s}).call(this,n("f3be")["default"])},"8aa4":function(t,e,n){},b63e:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,0==t.stepIndex?t._f("default_avatar")(t.wxInfo.smallAvatarUrl):null);t.$mp.data=Object.assign({},{$root:{f0:n}})},a=[]},df18:function(t,e,n){"use strict";n.r(e);var o=n("0b8a"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},e5d9:function(t,e,n){"use strict";n.r(e);var o=n("b63e"),i=n("df18");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("e77e");var u,c=n("0095"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"d83c8222",null,!1,o["a"],u);e["default"]=s.exports},e77e:function(t,e,n){"use strict";var o=n("8aa4"),i=n.n(o);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/home/components/login-popup-create-component',
    {
        'pages/home/components/login-popup-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('f3be')['createComponent'](__webpack_require__("e5d9"))
        })
    },
    [['pages/home/components/login-popup-create-component']]
]);
