acdr-ui/dist/dev/mp-weixin/modules/mall/public/richtext.js.map

1 line
2.2 KiB
Plaintext

{"version":3,"file":"richtext.js","sources":["../../../../../../src/modules/mall/public/richtext.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHB1YmxpY1xyaWNodGV4dC52dWU"],"sourcesContent":["<!-- 文章展示 -->\r\n<template>\r\n <s-layout class=\"set-wrap\" :title=\"state.title\" :bgStyle=\"{ color: '#FFF' }\">\r\n <view class=\"ss-p-30\">\r\n <mp-html class=\"richtext\" :content=\"state.content\" />\r\n </view>\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 ArticleApi from '@/sheep/api/promotion/article'\r\n\r\nconst state = reactive({\r\n title: '',\r\n content: '',\r\n})\r\n\r\nasync function getRichTextContent(id, title) {\r\n const { code, data } = await ArticleApi.getArticle(id, title)\r\n if (code !== 0) {\r\n return\r\n }\r\n state.content = data.content\r\n // 标题不一致时,修改标题\r\n if (state.title !== data.title) {\r\n state.title = data.title\r\n uni.setNavigationBarTitle({\r\n title: state.title,\r\n })\r\n }\r\n}\r\n\r\nonLoad((options) => {\r\n if (options.title) {\r\n state.title = options.title\r\n uni.setNavigationBarTitle({\r\n title: state.title,\r\n })\r\n }\r\n getRichTextContent(options.id, options.title)\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.set-title {\r\n margin: 0 30rpx;\r\n}\r\n\r\n.richtext {\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/App/Work/addr/acdr-ui/src/modules/mall/public/richtext.vue'\nwx.createPage(MiniProgramPage)"],"names":["reactive","ArticleApi","uni","onLoad"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,UAAA,QAAAA,cAAAA,SAAA;AAAA,MACA,OAAA;AAAA,MACA,SAAA;AAAA,IACA,CAAA;AAEA,aAAA,mBAAA,IAAA,OAAA;AAAA;AACA,cAAA,EAAA,MAAA,KAAA,IAAA,MAAAC,4BAAAA,WAAA,WAAA,IAAA,KAAA;AACA,YAAA,SAAA,GAAA;AACA;AAAA,QACA;AACA,cAAA,UAAA,KAAA;AAEA,YAAA,MAAA,UAAA,KAAA,OAAA;AACA,gBAAA,QAAA,KAAA;AACAC,wBAAAA,MAAA,sBAAA;AAAA,YACA,OAAA,MAAA;AAAA,UACA,CAAA;AAAA,QACA;AAAA,MACA;AAAA;AAEAC,kBAAA,OAAA,CAAA,YAAA;AACA,UAAA,QAAA,OAAA;AACA,cAAA,QAAA,QAAA;AACAD,sBAAAA,MAAA,sBAAA;AAAA,UACA,OAAA,MAAA;AAAA,QACA,CAAA;AAAA,MACA;AACA,yBAAA,QAAA,IAAA,QAAA,KAAA;AAAA,IACA,CAAA;;;;;;;;;;;;;;;;;ACzCA,GAAG,WAAW,eAAe;"}