{"version":3,"sources":["webpack:///./src/views/user-center.vue?428b","webpack:///./src/views/user-center.vue?980f","webpack:///./src/views/user-center.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_defineComponent","__name","setup","__props","proxy","getCurrentInstance","t","useI18n","userouter","useRoute","useRouter","CurrentType","ref","PageTypes","name","list","type","show","$SiteSet","lodaDelivery","coupons","invitation","stationLetter","onBeforeRouteUpdate","to","from","value","onMounted","currentRoute","_ctx","_cache","_component_router_link","_resolveComponent","_component_router_view","_openBlock","_createElementBlock","_createElementVNode","_Fragment","_renderList","Types","index","key","_toDisplayString","$t","Type","_createBlock","default","_withCtx","_normalizeClass","_","_createCommentVNode","_createVNode","__exports__"],"mappings":"kHAAA,W,mFCGA,MACMA,EAAa,CAAEC,MAAO,aACtBC,EAAa,CAAED,MAAO,aACtBE,EAAa,CAAEF,MAAO,QAQAG,mCAAiB,CAC3CC,OAAQ,cACRC,MAAMC,GAER,MAAM,MAAEC,GAAUC,mCACZ,EAAEC,GAAMC,iBAERC,GADQC,iBACIC,kBACZC,EAAcC,iBAAI,MAElBC,EAAYD,iBAAI,CACpB,CACEE,KAAM,OACNC,KAAM,CACJ,CACED,KAAM,OACNE,KAAM,QACNC,MAAM,GAER,CACEH,KAAM,OACNE,KAAM,SACNC,MAAM,GAGR,CACEH,KAAM,MACNE,KAAM,YACNC,MAAM,KAIZ,CACEH,KAAM,OACNC,KAAM,CACJ,CACED,KAAM,OACNE,KAAM,YACNC,MAAM,GAGR,CACEH,KAAM,OACNE,KAAM,QACNC,MAAM,GAGR,CACEH,KAAM,OACNE,KAAM,eACNC,KAAW,OAALb,QAAK,IAALA,OAAK,EAALA,EAAOc,SAASC,cAGxB,CACEL,KAAM,OACNE,KAAM,cACNC,MAAM,GAER,CACEH,KAAM,OACNE,KAAM,aACNC,MAAM,KAIZ,CACEH,KAAM,OACNC,KAAM,CACJ,CACED,KAAM,OACNE,KAAM,SACNC,MAAM,GAER,CACEH,KAAM,QACNE,KAAM,UAC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,EAAK5B,MAAQL,EAAYe,SAC9DgB,6BAAiBb,EAAKc,GAAGC,EAAK9B,OAAQ,OAG7CmC,EAAG,GACF,KAAM,CAAC,QACVC,gCAAoB,IAAI,IAC3B,MACD,YAGN,QAENd,gCAAoB,MAAOrC,EAAY,CACrCoD,yBAAalB,W,iCC7JnB,MAAMmB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB","file":"assets/js/chunk-8f71e3c8.ea08a614.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./user-center.vue?vue&type=style&index=0&id=674c7040&scoped=true&lang=scss\"","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-674c7040\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = { class: \"PageTypes\" }\nconst _hoisted_3 = { class: \"Page\" }\n\nimport { ref, reactive, onMounted, getCurrentInstance } from 'vue'\r\nimport * as Api from '@/utils/api'\r\nimport { useRoute, useRouter, onBeforeRouteUpdate } from 'vue-router'\r\nimport { useI18n } from 'vue-i18n'\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'user-center',\n setup(__props) {\n\r\nconst { proxy } = getCurrentInstance()\r\nconst { t } = useI18n()\r\nconst route = useRoute()\r\nconst userouter = useRouter()\r\nconst CurrentType = ref(null)\r\n\r\nconst PageTypes = ref([\r\n {\r\n name: '订单中心',\r\n list: [\r\n {\r\n name: '用户中心',\r\n type: 'basic',\r\n show: true,\r\n },\r\n {\r\n name: '我的订单',\r\n type: 'orders',\r\n show: true,\r\n },\r\n\r\n {\r\n name: '收藏夹',\r\n type: 'favorites',\r\n show: true,\r\n },\r\n ],\r\n },\r\n {\r\n name: '货物中心',\r\n list: [\r\n {\r\n name: '我的包裹',\r\n type: 'myPackage',\r\n show: true,\r\n },\r\n\r\n {\r\n name: '我的箱子',\r\n type: 'myBox',\r\n show: true,\r\n },\r\n\r\n {\r\n name: '乐达配送',\r\n type: 'lodaDelivery',\r\n show: proxy?.$SiteSet.lodaDelivery,\r\n },\r\n\r\n {\r\n name: '收货地址',\r\n type: 'addressList',\r\n show: true,\r\n },\r\n {\r\n name: '提货仓库',\r\n type: 'repository',\r\n show: true,\r\n },\r\n ],\r\n },\r\n {\r\n name: '资产中心',\r\n list: [\r\n {\r\n name: '我的钱包',\r\n type: 'wallet',\r\n show: true,\r\n },\r\n {\r\n name: '我的优惠劵',\r\n type: 'coupons',\r\n show: proxy?.$SiteSet.coupons,\r\n },\r\n ],\r\n },\r\n {\r\n name: '设置',\r\n list: [\r\n {\r\n name: '个人资料',\r\n type: 'userInformation',\r\n show: true,\r\n },\r\n {\r\n name: '安全设置',\r\n type: 'settings',\r\n show: true,\r\n },\r\n {\r\n name: '邀请好友',\r\n type: 'invitation',\r\n show: proxy?.$SiteSet.invitation,\r\n },\r\n {\r\n name: '消息通知',\r\n type: 'stationLetter',\r\n show: proxy?.$SiteSet.stationLetter,\r\n },\r\n ],\r\n },\r\n])\r\n\r\nonBeforeRouteUpdate((to, from) => {\r\n CurrentType.value = to.name\r\n})\r\n\r\nonMounted(() => {\r\n CurrentType.value = userouter.currentRoute.value.name\r\n})\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(PageTypes.value, (Types, index) => {\n return (_openBlock(), _createElementBlock(\"ul\", { key: index }, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(Types.name)), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(Types.list, (Type, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: index }, [\n (Type?.show)\n ? (_openBlock(), _createBlock(_component_router_link, {\n key: 0,\n to: { name: Type.type }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", {\n class: _normalizeClass({ CurrentType: Type.type == CurrentType.value })\n }, _toDisplayString(_ctx.$t(Type.name)), 3)\n ])\n ]),\n _: 2\n }, 1032, [\"to\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ])\n ]))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_router_view)\n ])\n ]))\n}\n}\n\n})","import script from \"./user-center.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-center.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./user-center.vue?vue&type=style&index=0&id=674c7040&scoped=true&lang=scss\"\n\nimport exportComponent from \"F:\\\\store\\\\NewLODAPC\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-674c7040\"]])\n\nexport default __exports__"],"sourceRoot":""}