acdr-ui/dist/dev/mp-weixin/app.js.map

1 line
3.6 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"app.js","sources":["../../../src/App.vue","../../../src/main.ts"],"sourcesContent":["<script setup lang=\"js\">\nimport { onLaunch, onShow, onHide } from '@dcloudio/uni-app'\nimport { notificationService } from './service/notificationService'\nimport { ShoproInit } from './sheep'\n\nonLoad(() => {\n // 隐藏底部导航栏\n uni.hideTabBar()\n})\n\n// 在应用启动时注册轮询服务\nonLaunch(() => {\n console.log('应用正在运行...')\n uni.hideTabBar()\n notificationService.startPollingUnreadMessages()\n // 加载底部商城依赖\n ShoproInit()\n})\n\n// 当应用进入前台时继续轮询服务\nonShow(() => {\n console.log('应用显示出来了...')\n notificationService.startPollingUnreadMessages()\n\n // 下面是商城模块的初始化方法\n // #ifdef APP-PLUS\n // 获取urlSchemes参数\n const args = plus.runtime.arguments\n if (args) {\n }\n\n // 获取剪贴板\n uni.getClipboardData({\n success: (res) => {},\n })\n // #endif\n\n // #ifdef MP-WEIXIN\n // 确认收货回调结果\n console.log(options, 'options')\n // #endif\n})\n\n// 当应用进入后台时停止轮询服务\nonHide(() => {\n console.log('App Hide')\n notificationService.stopPollingUnreadMessages()\n})\n</script>\n\n<style lang=\"scss\">\n@import \"@/style/index.scss\";\n@import \"@/scss/index.scss\";\n\nbutton::after {\n border: none;\n}\n\nswiper,\nscroll-view {\n flex: 1;\n height: 100%;\n overflow: hidden;\n}\n\nimage {\n width: 100%;\n height: 100%;\n vertical-align: middle;\n}\n\n// 单行省略,优先使用 unocss: text-ellipsis\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n// 两行省略\n.ellipsis-2 {\n display: -webkit-box;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n\n// 三行省略\n.ellipsis-3 {\n display: -webkit-box;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n}\n</style>\n","import { createSSRApp } from 'vue'\r\nimport App from './App.vue'\r\nimport store from './store' // 这里导入上面定义的 store\r\nimport { routeInterceptor, requestInterceptor, prototypeInterceptor } from './interceptors'\r\nimport 'virtual:uno.css'\r\nimport '@/style/index.css'\r\nimport { setupPinia } from './sheep/store'\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n\r\n // 启动商城模块的Pinia\r\n setupPinia(store)\r\n // 使用 Pinia 存储\r\n app.use(store)\r\n\r\n // 其他插件\r\n app.use(routeInterceptor)\r\n app.use(requestInterceptor)\r\n app.use(prototypeInterceptor)\r\n\r\n return {\r\n app,\r\n }\r\n}\r\n"],"names":["onLoad","uni","onLaunch","notificationService","ShoproInit","onShow","onHide","createSSRApp","App","setupPinia","store","routeInterceptor","requestInterceptor","prototypeInterceptor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKAA,kBAAAA,OAAO,MAAM;AAEXC,oBAAAA,MAAI,WAAY;AAAA,IAClB,CAAC;AAGDC,kBAAAA,SAAS,MAAM;AACb,cAAQ,IAAI,WAAW;AACvBD,oBAAAA,MAAI,WAAY;AAChBE,kCAAAA,oBAAoB,2BAA4B;AAEhDC,6BAAY;AAAA,IACd,CAAC;AAGDC,kBAAAA,OAAO,MAAM;AACX,cAAQ,IAAI,YAAY;AACxBF,kCAAAA,oBAAoB,2BAA4B;AAiBhD,cAAQ,IAAI,SAAS,SAAS;AAAA,IAEhC,CAAC;AAGDG,kBAAAA,OAAO,MAAM;AACX,cAAQ,IAAI,UAAU;AACtBH,kCAAAA,oBAAoB,0BAA2B;AAAA,IACjD,CAAC;;;;;ACvCe,SAAA,YAAA;AAAA,QAAA,MAAAI,2BAAAC,SAAA;AAAAC,oBAAA,WAAAC,YAAA,KAAA;AAAA,MAAA,IAAAA,YAAAA,KAAA;AAAA,MAAA,IAAAC,mBAAAA,gBAAA;AAAA,MAAA,IAAAC,qBAAAA,kBAAA;AAAA,MAAA,IAAAC,uBAAAA,oBAAA;AAAA,MAAA,UAAA,sBAAA,kBAAA;AAAA,MAAA,UAAA,mBAAA,eAAA;AAAA,SAAA;AAAA,IAcT;AAAA,EAAA;AAEP;;;;;"}