{"version":3,"sources":["webpack:///./src/views/user-center.vue?980f","webpack:///./src/views/user-center.vue","webpack:///./src/views/user-center.vue?81d1"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_defineComponent","__name","setup","__props","getCurrentInstance","proxy","useI18n","userouter","t","useRoute","useRouter","CurrentType","ref","PageTypes","name","list","type","show","$isHide","lodaDelivery","invitation","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":"2KAIMA,EAAa,CAAEC,MAAO,aACtBC,EAAa,CAAED,MAAO,aACtBE,EAAa,CAAEF,MAAO,QAQAG,+BAAiB,CAC3CC,OAAQ,cACRC,MAF2C,SAErCC,GAER,MAAkBC,kCAAVC,EAAR,EAAQA,MACR,EAAcC,iBAERC,GAFN,EAAQC,EACMC,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,KAAI,OAAEZ,QAAF,IAAEA,OAAF,EAAEA,EAAOa,QAAQC,cAGvB,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,UACN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AG7CiC,EAAG,GACF,KAAM,CAAC,QACVC,gCAAoB,IAAI,IAC3B,OACD,aAGN,QAENd,gCAAoB,MAAOnC,EAAY,CACrCkD,yBAAalB,W,iCC7JnB,MAAMmB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB,oCCRf,W","file":"assets/js/chunk-c69af8f8.52e25806.js","sourcesContent":["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-596cd362\"),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?.$isHide.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: true,\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?.$isHide.invitation,\r\n },\r\n {\r\n name: '消息通知',\r\n type: 'stationLetter',\r\n show: true,\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=596cd362&scoped=true&lang=scss\"\n\nimport exportComponent from \"F:\\\\NewLODAPC\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-596cd362\"]])\n\nexport default __exports__","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=596cd362&scoped=true&lang=scss\""],"sourceRoot":""}