This commit is contained in:
xiaozhiyong
2023-03-27 16:59:37 +08:00
parent 6a9e006874
commit 21a3701c47
5 changed files with 325 additions and 129 deletions

View File

@@ -35,7 +35,10 @@
inactive-color="#BBBBBB" size='35' v-model="switchOpen"
@change="change"></u-switch>
</view>
<view>{{dirverDetails.customerInfoVo.phone}}</view>
<view>
{{dirverDetails.customerInfoVo.phone}}
<view class="copy" v-if="dirverDetails.customerInfoVo.phone" @tap.stop="copy(dirverDetails.customerInfoVo.phone)"></view>
</view>
<view style="font-size: 22rpx;color: #999999;">
{{dirverDetails.customerInfoVo.createTime}}
</view>
@@ -328,6 +331,11 @@
// }
},
methods: {
copy(text) {
uni.setClipboardData({
data: text,
});
},
dirverIndexFn(e){
if(e){
this.dirverIndex = 1;this.current=1
@@ -852,4 +860,13 @@
position: relative;
font-size: 28rpx;
}
.copy {
position: relative;
top: 7rpx;
display: inline-block;
margin-left: 15rpx;
width: 32rpx;
height: 32rpx;
background: url('../../static/copy.png') 100%/ 100%;
}
</style>

View File

@@ -39,6 +39,7 @@
<view :style="{color:item.userName?'':'#999999'}">{{item.userName?item.userName:' 无设置'}}</view>
<view>
{{item.phone?item.phone:'无设置'}}
<view class="copy" v-if="item.phone" @tap.stop="copy(item.phone)"></view>
</view>
<view class="form-item_body_left_bottom_text" style="">{{item.companyName?item.companyName :'无直属公司'}}</view>
</view>
@@ -130,6 +131,11 @@
this.getList();
},
methods: {
copy(text) {
uni.setClipboardData({
data: text,
});
},
scrolltolower() {
this.getData.currentPage+=1
console.log('触底了')
@@ -379,4 +385,13 @@
.top {
height: var(--status-bar-height);
}
.copy {
position: relative;
top: 7rpx;
display: inline-block;
margin-left: 15rpx;
width: 32rpx;
height: 32rpx;
background: url('../../static/copy.png') 100%/ 100%;
}
</style>