如果管理后台没有启用会员充值菜单,移动端也不显示充值套餐功能

This commit is contained in:
GeekMaster
2025-05-27 16:49:31 +08:00
parent a7063bf30a
commit 6b6fe1bebd
7 changed files with 353 additions and 304 deletions

View File

@@ -6,35 +6,41 @@
</div>
<div class="chat-icon">
<van-image :src="icon"/>
<van-image :src="icon" />
</div>
</div>
</template>
<script setup>
import {onMounted, ref} from "vue";
import Clipboard from "clipboard";
import {showNotify} from "vant";
import Clipboard from 'clipboard'
import { showNotify } from 'vant'
import { onMounted, ref } from 'vue'
// eslint-disable-next-line no-unused-vars,no-undef
const props = defineProps({
content: {
type: String,
default: '',
type: Object,
default: {
text: '',
files: [],
},
},
icon: {
type: String,
default: '/images/user-icon.png',
}
});
},
})
const contentRef = ref(null)
const content = computed(() => {
return props.content.text
})
onMounted(() => {
const clipboard = new Clipboard(contentRef.value);
const clipboard = new Clipboard(contentRef.value)
clipboard.on('success', () => {
showNotify({type: 'success', message: '复制成功', duration: 1000})
showNotify({ type: 'success', message: '复制成功', duration: 1000 })
})
clipboard.on('error', () => {
showNotify({type: 'danger', message: '复制失败', duration: 2000})
showNotify({ type: 'danger', message: '复制失败', duration: 2000 })
})
})
</script>
@@ -100,4 +106,4 @@ onMounted(() => {
}
}
}
</style>
</style>