1 line
2.2 KiB
Plaintext
1 line
2.2 KiB
Plaintext
{"version":3,"file":"error.js","sources":["../../../../../../src/modules/mall/public/error.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHB1YmxpY1xlcnJvci52dWU"],"sourcesContent":["<!-- 错误界面 -->\r\n<template>\r\n <view class=\"error-page\">\r\n <s-empty\r\n v-if=\"errCode === 'NetworkError'\"\r\n icon=\"/static/internet-empty.png\"\r\n text=\"网络连接失败\"\r\n showAction\r\n actionText=\"重新连接\"\r\n @clickAction=\"onReconnect\"\r\n buttonColor=\"#ff3000\"\r\n />\r\n <s-empty\r\n v-else-if=\"errCode === 'TemplateError'\"\r\n icon=\"/static/internet-empty.png\"\r\n text=\"未找到模板\"\r\n showAction\r\n actionText=\"重新加载\"\r\n @clickAction=\"onReconnect\"\r\n buttonColor=\"#ff3000\"\r\n />\r\n <s-empty\r\n v-else-if=\"errCode !== ''\"\r\n icon=\"/static/internet-empty.png\"\r\n :text=\"errMsg\"\r\n showAction\r\n actionText=\"重新加载\"\r\n @clickAction=\"onReconnect\"\r\n buttonColor=\"#ff3000\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nimport { onLoad } from '@dcloudio/uni-app'\r\nimport { ref } from 'vue'\r\nimport { ShoproInit } from '@/sheep'\r\n\r\nconst errCode = ref('')\r\nconst errMsg = ref('')\r\n\r\nonLoad((options) => {\r\n errCode.value = options.errCode\r\n errMsg.value = options.errMsg\r\n})\r\n\r\n// 重新连接\r\nasync function onReconnect() {\r\n uni.reLaunch({\r\n url: '/modules/mall/index/index',\r\n })\r\n await ShoproInit()\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.error-page {\r\n width: 100%;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/App/Work/addr/acdr-ui/src/modules/mall/public/error.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref","onLoad","uni","ShoproInit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,UAAA,UAAAA,cAAA,IAAA,EAAA;AACA,UAAA,SAAAA,cAAA,IAAA,EAAA;AAEAC,kBAAA,OAAA,CAAA,YAAA;AACA,cAAA,QAAA,QAAA;AACA,aAAA,QAAA,QAAA;AAAA,IACA,CAAA;AAGA,aAAA,cAAA;AAAA;AACAC,sBAAAA,MAAA,SAAA;AAAA,UACA,KAAA;AAAA,QACA,CAAA;AACA,cAAAC,uBAAA;AAAA,MACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnDA,GAAG,WAAW,eAAe;"} |