From 66ff4f7c731656ffe7354df96e2915cc78fccb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Fri, 9 Jun 2023 11:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=89=8B=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customer/detail/index.js | 14 ++++++++++++++ pages/customer/detail/index.wxml | 18 ++++++++++-------- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/pages/customer/detail/index.js b/pages/customer/detail/index.js index 3001986..f355af8 100644 --- a/pages/customer/detail/index.js +++ b/pages/customer/detail/index.js @@ -1237,6 +1237,20 @@ Page({ }) }, + //复制 + copyWord(){ + if(this.data.detailinfo.mobile){ + wx.setClipboardData({ + data: this.data.detailinfo.mobile, + success (res) { + _.utils.$toast('复制成功') + } + }) + }else{ + _.utils.$toast('无手机号') + } + }, + //页面相关事件处理函数--监听用户下拉动作 onPullDownRefresh(){ this.setData({ diff --git a/pages/customer/detail/index.wxml b/pages/customer/detail/index.wxml index 3df1618..4932946 100644 --- a/pages/customer/detail/index.wxml +++ b/pages/customer/detail/index.wxml @@ -7,8 +7,7 @@ - {{detailinfo.name}} - 编号 {{detailinfo.id}} + {{detailinfo.name}}编号 {{detailinfo.id}} @@ -25,13 +24,16 @@ ... --> - - - - - - + + + + + + + + + 复制