feat:设备使用记录

This commit is contained in:
houjunxiang
2026-03-05 16:54:47 +08:00
parent 749ac7f507
commit 9c88c45d66
357 changed files with 21486 additions and 5845 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,
});