require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/merchant/user/index"],{5421:function(t,e,n){},"6bc3":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var r={uniBadge:function(){return n.e("uni_modules/uni-badge/components/uni-badge/uni-badge").then(n.bind(null,"4d28"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},"7a01":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("7ca3")),a=n("92f9"),i=n("5088"),u=n("8f59"),c=r(n("8b46")),s=n("4d38");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={mixins:[c.default],data:function(){return{pageScrollStatus:!1,orderMenu:[{icon:"icon-ic_daifukuan12",title:"待付款",url:"/pages/goods/order_list/index?status=0"},{icon:"icon-ic_daifahuo11",title:"待发货",url:"/pages/goods/order_list/index?status=1"},{icon:"icon-ic_daishouhuo1",title:"待收货",url:"/pages/goods/order_list/index?status=2"},{icon:"icon-ic_daipingjia1",title:"待评价",url:"/pages/goods/order_list/index?status=3"},{icon:"icon-ic_daituikuan1",title:"售后/退款",url:"/pages/users/user_return_list/index"}],notPayOrder:!1,userInfo:{}}},components:{NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("a7d8"))}.bind(null,n)).catch(n.oe)},countDown:function(){n.e("components/countDown/index").then(function(){return resolve(n("1706"))}.bind(null,n)).catch(n.oe)},tabBar:function(){Promise.all([n.e("pages/merchant/common/vendor"),n.e("pages/merchant/components/tabBar/index")]).then(function(){return resolve(n("dcaf"))}.bind(null,n)).catch(n.oe)}},computed:l(l({},(0,u.mapGetters)({isLogin:"isLogin"})),{},{headerBg:function(){return"url("+s.HTTP_REQUEST_URL+"/statics/images/activity/mer_user_bg.png)"},merCard:function(){return"url("+s.HTTP_REQUEST_URL+"/statics/images/activity/merchant_user_card.png)"},routineContact:function(){return!1}}),onPageScroll:function(e){e.scrollTop>40?this.pageScrollStatus=!0:e.scrollTop<40&&(this.pageScrollStatus=!1),t.$emit("scroll")},onLoad:function(){this.checkPurchaserFeatureStatus(),this.getInfo()},methods:{getInfo:function(){var t=this;(0,a.getUserInfo)().then((function(e){t.userInfo=e.data,t.orderMenu.forEach((function(n,r){switch(n.title){case"待付款":t.$set(n,"num",e.data.orderStatusNum.unpaid_count);break;case"待发货":t.$set(n,"num",e.data.orderStatusNum.unshipped_count);break;case"待收货":t.$set(n,"num",e.data.orderStatusNum.received_count);break;case"待评价":t.$set(n,"num",e.data.orderStatusNum.evaluated_count);break;case"售后/退款":t.$set(n,"num",e.data.orderStatusNum.refunding_count);break}})),t.$store.commit("UPDATE_USERINFO",e.data);var n=e.data.identity;1!=n&&t.isLogin}))},checkIdentity:function(){var e=this;(0,a.checkIdentityApi)({identity:0}).then((function(n){(0,a.getUserInfo)().then((function(n){e.$store.commit("UPDATE_USERINFO",n.data),t.switchTab({url:"/pages/user/index"})}))})).catch((function(t){return e.$util.Tips({title:t})}))},intoPage:function(t){this.isLogin?this.$util.JumpPath(t):(0,i.toLogin)()}}};e.default=f}).call(this,n("df3c")["default"])},"969b":function(t,e,n){"use strict";n.r(e);var r=n("6bc3"),o=n("b3ea");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("b549");var i=n("828b"),u=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,"2595b480",null,!1,r["a"],void 0);e["default"]=u.exports},"9ca7":function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("f076");r(n("3240"));var o=r(n("969b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b3ea:function(t,e,n){"use strict";n.r(e);var r=n("7a01"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=o.a},b549:function(t,e,n){"use strict";var r=n("5421"),o=n.n(r);o.a}},[["9ca7","common/runtime","common/vendor","pages/merchant/common/vendor"]]]);