(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"177d":function(t,n,e){},"1f07":function(t,n,e){"use strict";e.r(n);var r=e("fdfd"),o=e("357c");for(var c in o)"default"!==c&&function(t){e.d(n,t,(function(){return o[t]}))}(c);e("d2ad");var i,u=e("f0c5"),a=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);n["default"]=a.exports},"357c":function(t,n,e){"use strict";e.r(n);var r=e("61cb"),o=e.n(r);for(var c in r)"default"!==c&&function(t){e.d(n,t,(function(){return r[t]}))}(c);n["default"]=o.a},"61cb":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("26cb"),o=e("cf53"),c=e("6920");function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach((function(n){a(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function a(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var s=function(){e.e("components/uni-list/uni-list").then(function(){return resolve(e("b46e"))}.bind(null,e)).catch(e.oe)},f=function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e("8bdf"))}.bind(null,e)).catch(e.oe)},l=0,d=0,v=!0,h={components:{uniList:s,uniListItem:f},data:function(){return{coverTransform:"translateY(0px)",coverTransition:"0s",moving:!1}},onShow:function(){this.hasLogin,this.loadBaseData()},computed:u({},(0,r.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:u(u({},(0,r.mapMutations)("user",["setUserInfo","setOrderInfo"])),{},{loadBaseData:function(){var t=this;(0,o.getUserInfo)({}).then((function(n){var e=n.data;t.setUserInfo(e),(0,o.orderData)({}).then((function(n){var e=n.data;t.setOrderInfo(e)})).catch((function(n){t.setOrderInfo({complete_count:0,received_count:0,unshipped_count:0,order_count:0,unpaid_count:0})}))})).catch((function(t){console.log(t)}))},navTo:function(n){this.hasLogin?t.navigateTo({url:n}):((0,c.saveUrl)(),(0,c.interceptor)())},coverTouchstart:function(t){!1!==v&&(this.coverTransition="transform .1s linear",l=t.touches[0].clientY)},coverTouchmove:function(t){d=t.touches[0].clientY;var n=d-l,e=this.userMaxDowm,r=this.userDowm;n<0?this.moving=!1:(this.moving=!0,n>=r&&n<e&&(n=r),n>0&&n<=r&&(this.coverTransform="translateY(".concat(n,"px)")))},coverTouchend:function(){!1!==this.moving&&(this.moving=!1,this.coverTransition="transform 0.3s cubic-bezier(.21,1.93,.53,.64)",this.coverTransform="translateY(0px)")}})};n.default=h}).call(this,e("543d")["default"])},"7d8a":function(t,n,e){"use strict";(function(t){e("7154");r(e("66fd"));var n=r(e("1f07"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},d2ad:function(t,n,e){"use strict";var r=e("177d"),o=e.n(r);o.a},fdfd:function(t,n,e){"use strict";var r;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return r}));var o=function(){var t=this,n=t.$createElement;t._self._c},c=[]}},[["7d8a","common/runtime","common/vendor"]]]);