|
|
@@ -38,8 +38,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { CellGroup, Cell, Divider, showFailToast, showToast, Icon } from 'vant'
|
|
|
-import { formatDate, getFileUrl, getNewsShareUrl, formatHtmlString } from '@/filters'
|
|
|
+import { CellGroup, Cell, Divider } from 'vant'
|
|
|
+import { formatDate, getFileUrl, formatHtmlString } from '@/filters'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryNewTitles, queryNewContents } from '@/services/api/news'
|
|
|
@@ -82,29 +82,29 @@ const openUrl = (url?: string) => {
|
|
|
}
|
|
|
|
|
|
// 分享消息
|
|
|
-const sendShareMessage = () => {
|
|
|
- if (data.value) {
|
|
|
- plus.systemShare({
|
|
|
- title: data.value.title,
|
|
|
- href: getNewsShareUrl(newsId),
|
|
|
- }).catch((err) => {
|
|
|
- showFailToast(err)
|
|
|
- })
|
|
|
- } else {
|
|
|
- showFailToast('文章不存在,分享失败')
|
|
|
- }
|
|
|
-}
|
|
|
+// const sendShareMessage = () => {
|
|
|
+// if (data.value) {
|
|
|
+// plus.systemShare({
|
|
|
+// title: data.value.title,
|
|
|
+// href: getNewsShareUrl(newsId),
|
|
|
+// }).catch((err) => {
|
|
|
+// showFailToast(err)
|
|
|
+// })
|
|
|
+// } else {
|
|
|
+// showFailToast('文章不存在,分享失败')
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
-const onCopy = (status: boolean) => {
|
|
|
- if (status) {
|
|
|
- showToast({
|
|
|
- message: '已复制,快去粘贴吧~',
|
|
|
- position: 'bottom',
|
|
|
- })
|
|
|
- } else {
|
|
|
- showFailToast('复制失败')
|
|
|
- }
|
|
|
-}
|
|
|
+// const onCopy = (status: boolean) => {
|
|
|
+// if (status) {
|
|
|
+// showToast({
|
|
|
+// message: '已复制,快去粘贴吧~',
|
|
|
+// position: 'bottom',
|
|
|
+// })
|
|
|
+// } else {
|
|
|
+// showFailToast('复制失败')
|
|
|
+// }
|
|
|
+// }
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|