1 line
3.6 KiB
Plaintext
1 line
3.6 KiB
Plaintext
{"version":3,"file":"faq.js","sources":["../../../../../../src/modules/mall/public/faq.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHB1YmxpY1xmYXEudnVl"],"sourcesContent":["<!-- FAQ 常见问题 -->\r\n<template>\r\n <s-layout class=\"set-wrap\" title=\"常见问题\" :bgStyle=\"{ color: '#FFF' }\">\r\n <uni-collapse>\r\n <uni-collapse-item v-for=\"(item, index) in state.list\" :key=\"item\">\r\n <template v-slot:title>\r\n <view class=\"ss-flex ss-col-center header\">\r\n <view class=\"ss-m-l-20 ss-m-r-20 icon\">\r\n <view class=\"rectangle\">\r\n <view class=\"num ss-flex ss-row-center ss-col-center\">\r\n {{ index + 1 < 10 ? '0' + (index + 1) : index + 1 }}\r\n </view>\r\n </view>\r\n <view class=\"triangle\"></view>\r\n </view>\r\n <view class=\"title ss-m-t-36 ss-m-b-36\">\r\n {{ item.title }}\r\n </view>\r\n </view>\r\n </template>\r\n <view class=\"content ss-p-l-78 ss-p-r-40 ss-p-b-50 ss-p-t-20\">\r\n <text class=\"text\">{{ item.content }}</text>\r\n </view>\r\n </uni-collapse-item>\r\n </uni-collapse>\r\n <s-empty\r\n v-if=\"state.list.length === 0 && !state.loading\"\r\n text=\"暂无常见问题\"\r\n icon=\"/static/collect-empty.png\"\r\n />\r\n </s-layout>\r\n</template>\r\n\r\n<script setup>\r\nimport { onLoad } from '@dcloudio/uni-app'\r\nimport { reactive } from 'vue'\r\nimport sheep from '@/sheep'\r\n\r\nconst state = reactive({\r\n list: [],\r\n loading: true,\r\n})\r\n\r\nasync function getFaqList() {\r\n const { error, data } = await sheep.$api.data.faq()\r\n if (error === 0) {\r\n state.list = data\r\n state.loading = false\r\n }\r\n}\r\nonLoad(() => {\r\n // TODO 芋艿:目前简单做,使用营销文章,作为 faq\r\n if (true) {\r\n sheep.$router.go('/modules/mall/public/richtext', {\r\n title: '常见问题',\r\n })\r\n return\r\n }\r\n getFaqList()\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.header {\r\n .title {\r\n max-width: 688rpx;\r\n font-size: 28rpx;\r\n font-weight: 500;\r\n line-height: 30rpx;\r\n color: #333333;\r\n }\r\n\r\n .icon {\r\n position: relative;\r\n width: 40rpx;\r\n height: 40rpx;\r\n\r\n .rectangle {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 40rpx;\r\n height: 36rpx;\r\n background: var(--ui-BG-Main);\r\n border-radius: 4px;\r\n\r\n .num {\r\n width: 100%;\r\n height: 100%;\r\n font-size: 24rpx;\r\n font-weight: 500;\r\n line-height: 32rpx;\r\n color: var(--ui-BG);\r\n }\r\n }\r\n\r\n .triangle {\r\n position: absolute;\r\n bottom: -4rpx;\r\n left: 16rpx;\r\n width: 0;\r\n height: 0;\r\n border-top: 8rpx solid var(--ui-BG-Main);\r\n border-right: 4rpx solid transparent;\r\n border-left: 4rpx solid transparent;\r\n }\r\n }\r\n}\r\n\r\n.content {\r\n border-bottom: 1rpx solid #dfdfdf;\r\n\r\n .text {\r\n font-size: 26rpx;\r\n color: #666666;\r\n }\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/App/Work/addr/acdr-ui/src/modules/mall/public/faq.vue'\nwx.createPage(MiniProgramPage)"],"names":["reactive","onLoad","sheep"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsCA,UAAA,QAAAA,cAAAA,SAAA;AAAA,MACA,MAAA,CAAA;AAAA,MACA,SAAA;AAAA,IACA,CAAA;AASAC,kBAAAA,OAAA,MAAA;AAEA;AACAC,0BAAA,QAAA,GAAA,iCAAA;AAAA,UACA,OAAA;AAAA,QACA,CAAA;AACA;AAAA,MACA;AAAA,IAEA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1DA,GAAG,WAAW,eAAe;"} |