From 9a9ac9f76eb8ddbbc2ee9db5e77b756e6a5d8111 Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Wed, 9 Jul 2025 14:12:40 +0800 Subject: [PATCH] =?UTF-8?q?task#6796=20=E4=BA=8C=E6=89=8B=E6=8B=96?= =?UTF-8?q?=E8=BD=A6=E7=B3=BB=E7=BB=9F=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=9A=84=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/forSale.vue | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/views/secondHandCar/forSale.vue b/src/views/secondHandCar/forSale.vue index 0297e5cf..45ec0753 100644 --- a/src/views/secondHandCar/forSale.vue +++ b/src/views/secondHandCar/forSale.vue @@ -48,6 +48,10 @@
{{detailInfo.attentionCount}}人想要{{detailInfo.browseCount}}人浏览
+
+ 车源ID:     {{ detailInfo.code }} + +
@@ -178,6 +182,16 @@ export default { this.getDuration(1) }, methods:{ + copyHandler(copyText){ + let inputNode = document.createElement('input') // 创建input + inputNode.value = copyText // 赋值给 input 值 + document.body.appendChild(inputNode) // 插入进去 + inputNode.select() // 选择对象 + document.execCommand('Copy') // 原生调用执行浏览器复制命令 + inputNode.className = 'oInput' + inputNode.style.display = 'none' // 隐藏 + this.$toast('复制成功') + }, showImagePreview(index) { ImagePreview({ images: this.imgSrcList.map(item => item), @@ -274,7 +288,7 @@ export default { margin-bottom: 12px; } .titleWrap{ - height: 108px; + height: 120px; padding: 18px 0 15px 21px; display: flex; flex-direction: column; @@ -437,4 +451,14 @@ export default { object-fit: cover; object-position: center; } +.copyIcon { + width: 35px; + height: 15px; + margin-left: 10px +} + .commonColor { + color: #999999 !important; + display: flex; + align-items: center; + }