require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_money/index"],{"64ff":function(t,e,n){"use strict";n.r(e);var o=n("a471"),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},"75d6":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("f076");o(n("3240"));var i=o(n("eb4c"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},7892:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.pageReady?this.hostProduct.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},a280:function(t,e,n){},a471:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("0f73"),a=n("7391"),c=n("92f9"),r=n("5088"),u=n("8f59"),s=o(n("89cc")),d=n("4d38"),f={components:{recommend:function(){Promise.all([n.e("common/vendor"),n.e("components/recommend/index")]).then(function(){return resolve(n("a60c"))}.bind(null,n)).catch(n.oe)}},mixins:[s.default],data:function(){return{imgHost:d.HTTP_REQUEST_URL,getHeight:this.$util.getWXStatusHeight(),userInfo:{now_money:0},pageReady:!1,hostProduct:[],isClose:!1,recharge_switch:0,activity:{},isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,recommendTitle:""}},computed:(0,u.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&this.getUserInfo()},deep:!0}},onShow:function(){this.isLogin?this.getUserInfo():(0,r.toLogin)(),t.removeStorageSync("form_type_cart")},methods:{goarrow:function(){t.navigateBack()},openSubscribe:function(e){t.showLoading({title:"正在加载"}),(0,a.openRechargeSubscribe)().then((function(n){t.hideLoading(),t.navigateTo({url:e})})).catch((function(){t.hideLoading()}))},getUserInfo:function(){var t=this;(0,c.getUserInfo)().then((function(e){Number(e.data.balance_func_status)?(t.$set(t,"userInfo",e.data),t.recharge_switch=e.data.recharge_switch,t.pageReady=!0,t.get_activity(),t.hostProduct.length||t.get_host_product()):t.redirectFeatureClosed("余额功能已关闭")}))},redirectFeatureClosed:function(e){this.isClose||(this.isClose=!0,t.showToast({title:e,icon:"none"}),setTimeout((function(){var e=getCurrentPages();e.length>1?t.navigateBack():t.reLaunch({url:"/pages/index/index"})}),1200))},get_activity:function(){var t=this;(0,c.userActivity)().then((function(e){t.$set(t,"activity",e.data)}))},get_host_product:function(){var t=this;t.hotScroll||(0,i.getProductHot)({page:t.hotPage,limit:t.hotLimit,type:5}).then((function(e){t.hotPage++,t.hotScroll=e.data.length<t.hotLimit,t.hostProduct=t.hostProduct.concat(e.data.list),t.recommendTitle=e.data.title?e.data.title:"猜你喜欢"}))}},onPageScroll:function(e){t.$emit("scroll")},onReachBottom:function(){this.get_host_product()}};e.default=f}).call(this,n("df3c")["default"])},e1aa:function(t,e,n){"use strict";var o=n("a280"),i=n.n(o);i.a},eb4c:function(t,e,n){"use strict";n.r(e);var o=n("7892"),i=n("64ff");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("e1aa");var c=n("828b"),r=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"e22742fc",null,!1,o["a"],void 0);e["default"]=r.exports}},[["75d6","common/runtime","common/vendor"]]]);