(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{4886:function(t,n,e){"use strict";var o=e("c0a2"),r=e.n(o);r.a},"6a41":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("26cb"),r=e("ef8a"),i=e("a978"),c=e("1d0e");function u(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function s(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?u(Object(e),!0).forEach((function(n){a(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(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 f=function(){e.e("components/uni-list/uni-list").then(function(){return resolve(e("7e12"))}.bind(null,e)).catch(e.oe)},l=function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e("39e5"))}.bind(null,e)).catch(e.oe)},p=0,h=0,d=!0,m={components:{uniList:f,uniListItem:l},data:function(){return{coverTransform:"translateY(0px)",coverTransition:"0s",moving:!1,userDowm:0,userMaxDowm:0,text:"Zjxwcm"}},onShow:function(){this.hasLogin&&(this.loadBaseData(),this.getMyStore())},onReady:function(){var n=this;t.createSelectorQuery().select(".container").fields({size:!0},(function(t){n.userDowm=Math.floor(t.width/750*185),n.userMaxDowm=Math.floor(t.width/750*250)})).exec()},computed:s({},(0,o.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:s(s(s({},(0,o.mapMutations)("user",["setUserInfo","logout"])),{},{uniCopy:function(n){t.setClipboardData({data:n,success:function(){return console.log("success"),!0}})},showPopup:function(){this.$refs.popup.open()},cancel:function(){this.$refs.popup.close()},comfirm:function(n){console.log(n);var e=this.uniCopy(n);!1===e?t.showToast({title:"不支持"}):t.showToast({title:"复制成功",icon:"none"}),this.$refs.popup.close()}},(0,o.mapMutations)("user",["setUserInfo","setOrderInfo"])),{},{loadBaseData:function(){var t=this;(0,r.getUserInfo)({}).then((function(n){var e=n.data;console.log(e,"userInfo+++++++++++++++++++"),t.setUserInfo(e),(0,r.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,i.saveUrl)(),(0,i.interceptor)())},coverTouchstart:function(t){!1!==d&&(this.coverTransition="transform .1s linear",p=t.touches[0].clientY)},coverTouchmove:function(t){h=t.touches[0].clientY;var n=h-p,e=this.userMaxDowm,o=this.userDowm;n<0?this.moving=!1:(this.moving=!0,n>=o&&n<e&&(n=o),n>0&&n<=o&&(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)")},getMyStore:function(){(0,r.getMyStore)().then((function(t){console.log("getMyStore",t)}))},outlogin:function(){var n=this;t.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(0,c.logout)({}).then((function(e){n.logout(),t.navigateTo({url:"/pages/public/login"})})).catch((function(t){console.log(t)}))}})}})};n.default=m}).call(this,e("543d")["default"])},"77ee":function(t,n,e){"use strict";(function(t){e("e27b");o(e("66fd"));var n=o(e("b467"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},b467:function(t,n,e){"use strict";e.r(n);var o=e("d6a3"),r=e("fac6");for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("4886");var c,u=e("f0c5"),s=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=s.exports},c0a2:function(t,n,e){},d6a3:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uniList:function(){return e.e("components/uni-list/uni-list").then(e.bind(null,"7e12"))},uniListItem:function(){return e.e("components/uni-list-item/uni-list-item").then(e.bind(null,"39e5"))},uniPopup:function(){return e.e("components/uni-popup/uni-popup").then(e.bind(null,"bf97"))}},r=function(){var t=this,n=t.$createElement;t._self._c},i=[]},fac6:function(t,n,e){"use strict";e.r(n);var o=e("6a41"),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a}},[["77ee","common/runtime","common/vendor"]]]);