diff --git a/pages/component/rich-text/rich-text-complex.uvue b/pages/component/rich-text/rich-text-complex.uvue index 5df1bafb9fa09283d2cb8c4da9df80bc63cdb236..73b1518c2047afab18c1918f40b8e2ae52c2d257 100644 --- a/pages/component/rich-text/rich-text-complex.uvue +++ b/pages/component/rich-text/rich-text-complex.uvue @@ -18,12 +18,21 @@ data() { return { title: 'rich-text-complex', - htmlString: '

HBuilderX

HBuilderX,轻巧、极速,极客编辑器

HBuilderX,轻巧、极速,极客编辑器 HBuilderX,轻巧、极速,极客编辑器HBuilderX,轻巧、极速,极客编辑器 HBuilderX,轻巧、极速,极客编辑器 HBuilderX,轻巧、极速,极客编辑器HBuilderX,轻巧、极速,极客编辑器

uni-app x,终极跨平台方案

uni-app x,终极跨平台方案 uni-app x,终极跨平台方案 uni-appx,终极跨平台方案 uni-app x,终极跨平台方案 uni-app x,终极跨平台方案 uni-app x,终极跨平台方案

uniCloud,js serverless云服务

uniCloud,js serverless云服务 uniCloud,js serverless云服务uniCloud,js serverless云服务 uniCloud,js serverless云服务 uniCloud,js serverless云服务uniCloud,js serverless云服务

uts,大一统语言

uts,大一统语言 uts,大一统语言 uts,大一统语言 uts,大一统语言uts,大一统语言 uts,大一统语言

uniMPSdk,让你的App具备小程序能力
uni-admin,开源、现成的全端管理后台
uni-app

' + htmlString: '

HBuilderX

HBuilderX,轻巧、极速,极客编辑器

HBuilderX,轻巧、极速,极客编辑器 HBuilderX,轻巧、极速,极客编辑器HBuilderX,轻巧、极速,极客编辑器HBuilderX,轻巧、极速,极客编辑器 HBuilderX,轻巧、极速,极客编辑器HBuilderX,轻巧、极速,极客编辑器

uni-app x,终极跨平台方案

uni-app x,终极跨平台方案 uni-app x,终极跨平台方案uni-appx,终极跨平台方案 uni-app x,终极跨平台方案 uni-app x,终极跨平台方案 uni-appx,终极跨平台方案

uniCloud,js serverless云服务

uniCloud,js serverless云服务 uniCloud,jsserverless云服务uniCloud,js serverless云服务 uniCloud,js serverless云服务 uniCloud,jsserverless云服务uniCloud,js serverless云服务

uts,大一统语言

uts,大一统语言 uts,大一统语言 uts,大一统语言uts,大一统语言uts,大一统语言 uts,大一统语言

uniMPSdk,让你的App具备小程序能力
uni-admin,开源、现成的全端管理后台
uni-app

' } }, methods: { itemClick(e : RichTextItemClickEvent) { console.log(JSON.stringify(e.detail)); + let title = ''; + if (e.detail.src != null) { + title = '点击了图片,src = ' + e.detail.src; + } else if (e.detail.href != null) { + title = '点击了链接,href = ' + e.detail.href; + } + uni.showModal({ + title: title + }); } } } diff --git a/pages/component/rich-text/rich-text-tags.uvue b/pages/component/rich-text/rich-text-tags.uvue index e7569796e8e00602b69136882ebd2a8946615abb..71221c394bcd291ba9713ca4556b425325ea4024 100644 --- a/pages/component/rich-text/rich-text-tags.uvue +++ b/pages/component/rich-text/rich-text-tags.uvue @@ -301,6 +301,15 @@ methods: { itemClick(e : RichTextItemClickEvent) { console.log(JSON.stringify(e.detail)); + let title = ''; + if (e.detail.src != null) { + title = '点击了图片,src = ' + e.detail.src; + } else if (e.detail.href != null) { + title = '点击了链接,href = ' + e.detail.href; + } + uni.showModal({ + title: title + }); } } }