From 1cb27fea3a0616a5b97e5710611bc8e833455bd3 Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Wed, 23 Jul 2025 15:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E8=BD=A6=E6=BA=90?= =?UTF-8?q?=E4=BF=A1=E6=81=AF--=E6=B1=82=E8=B4=AD=E9=A1=B5=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=BD=A6=E6=BA=90id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 4 ++-- src/views/secondHandCar/wantBuySale.vue | 26 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/utils/http.js b/src/utils/http.js index 67136d96..eaf24a6b 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -24,8 +24,8 @@ service.interceptors.request.use( config.data = qs.stringify(config.data, {arrayFormat: 'indices', allowDots: true}) } config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded' - // let token = localStorage.getItem('token'); - let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBTkNIQU5HIiwidXNlcklkIjo0NTY3MSwibmFtZSI6IuWuieeVhSIsInVzZXJOYW1lIjoiQU5DSEFORyIsInN1cHBsaWVySWQiOjExMjgsImlzWmQiOjAsImV4cCI6MTc1NTIzOTMyNH0.Zn1NaVKRIho6ncATghr74PDoMir6xaftK9b7RHg70Z8' + let token = localStorage.getItem('token'); + // let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBTkNIQU5HIiwidXNlcklkIjo0NTY3MSwibmFtZSI6IuWuieeVhSIsInVzZXJOYW1lIjoiQU5DSEFORyIsInN1cHBsaWVySWQiOjExMjgsImlzWmQiOjAsImV4cCI6MTc1NTQyMjUyNX0.xzDZhaANJFnbeViIHJA0SEtOyTv7Ja3rKmXqRKRuFkc' // let token='eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJTSEhQWEIiLCJ1c2VySWQiOjU0NzI2LCJuYW1lIjoiI-a1i-ivleWwj-eZveeZvSIsInVzZXJOYW1lIjoiU0hIUFhCIiwic3VwcGxpZXJJZCI6MTAwMDE2NSwiZXhwIjoxNzQ0NTEwNzkwfQ.JPk0OA7slYJN3FIi_uhW4Y0CiWRvl6R1dK8MRTbyhD8' if(!(reqUrl=='/supplier/supplierTraining/trainingTask' || reqUrl=='/supplier/supplierTraining/normalList' || reqUrl=='/supplier/supplierTraining/trainingList')){ if(token) { diff --git a/src/views/secondHandCar/wantBuySale.vue b/src/views/secondHandCar/wantBuySale.vue index b94341ea..894336f2 100644 --- a/src/views/secondHandCar/wantBuySale.vue +++ b/src/views/secondHandCar/wantBuySale.vue @@ -23,6 +23,12 @@
{{detailInfo.attentionCount}}人想卖{{detailInfo.browseCount}}人浏览
+
+
+ 车源ID:     {{ detailInfo.code }} + +
+
@@ -101,6 +107,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('复制成功') + }, getDuration(type){ const endTime = new Date(); const duration = (endTime - this.startTime) / 1000; // 计算时长(秒) @@ -290,4 +306,14 @@ export default { cursor: pointer; } } +.commonColor { + color: #999999 !important; + display: flex; + align-items: center; +} +.copyIcon { + width: 35px; + height: 15px; + margin-left: 10px +}