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

@@ -1,9 +1,10 @@
<template>
<view @click="handleClick">
<slot>复制</slot>
<slot>{{ t("up.common.copy") }}</slot>
</view>
</template>
<script>
import { t } from '../../libs/i18n'
export default {
name: "up-copy",
props: {
@@ -17,16 +18,17 @@ export default {
},
notice: {
type: String,
default: '复制成功'
default: t("up.common.copy") + t("up.common.success")
}
},
emits: ['success'],
methods: {
t,
handleClick() {
let content = this.content;
if (!content) {
uni.showToast({
title: '暂无',
title: t("up.common.none"),
icon: 'none',
duration: 2000,
});
@@ -42,7 +44,7 @@ export default {
success: function() {
if (that.alertStyle == 'modal') {
uni.showModal({
title: '提示',
title: "up.common.tip",
content: that.notice
});
} else {
@@ -55,7 +57,7 @@ export default {
},
fail:function(){
uni.showToast({
title: '复制失败',
title: t("up.common.copy") + t("up.common.fail"),
icon: 'none',
duration:3000,
});