uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改

This commit is contained in:
2025-10-21 10:44:31 +08:00
parent 5d98b7efc2
commit 5f3a307fec
395 changed files with 31264 additions and 2477 deletions

View File

@@ -12,7 +12,7 @@
<script>
/**
* mp-html v2.4.1
* mp-html v2.5.1
* @description 富文本组件
* @tutorial https://github.com/jin-yufeng/mp-html
* @property {String} container-style 容器的样式
@@ -32,8 +32,8 @@
* @property {Boolean | Number} use-anchor 是否使用锚点链接
* @event {Function} load dom 结构加载完毕时触发
* @event {Function} ready 所有图片加载完毕时触发
* @event {Function} imgTap 图片被点击时触发
* @event {Function} linkTap 链接被点击时触发
* @event {Function} imgtap 图片被点击时触发
* @event {Function} linktap 链接被点击时触发
* @event {Function} play 音视频播放时触发
* @event {Function} error 媒体加载出错时触发
*/
@@ -46,7 +46,7 @@ const plugins = []
const dom = weex.requireModule('dom')
// #endif
export default {
name: 'u-parse',
name: 'up-parse',
data() {
return {
nodes: [],
@@ -103,7 +103,7 @@ export default {
useAnchor: [Boolean, Number]
},
// #ifdef VUE3
emits: ['load', 'ready', 'imgTap', 'linkTap', 'play', 'error'],
emits: ['load', 'ready', 'imgtap', 'linktap', 'play', 'error'],
// #endif
// #ifndef APP-PLUS-NVUE
components: {
@@ -410,7 +410,7 @@ export default {
break
// 图片点击
case 'onImgTap':
this.$emit('imgTap', message.attrs)
this.$emit('imgtap', message.attrs)
if (this.previewImg) {
uni.previewImage({
current: parseInt(message.attrs.i),
@@ -421,7 +421,7 @@ export default {
// 链接点击
case 'onLinkTap': {
const href = message.attrs.href
this.$emit('linkTap', message.attrs)
this.$emit('linktap', message.attrs)
if (href) {
// 锚点跳转
if (href[0] === '#') {
@@ -433,7 +433,12 @@ export default {
} else if (href.includes('://')) {
// 打开外链
if (this.copyLink) {
plus.runtime.openWeb(href)
// #ifdef APP-PLUS
plus.runtime.openWeb(href)
// #endif
// #ifdef APP-HARMONY
plus.runtime.openURL(href)
// #endif
}
} else {
uni.navigateTo({