<template>
|
<view class="link-box">
|
<view class="link-bottom">
|
<view class="userinfo-box">
|
<view class="userinfo-img" style="width: 20%;">
|
<image src="../static/user.png" style="width:50px;height:50px;"></image>
|
</view>
|
<view class="userinfo-value-box" style="width: 40%;">
|
<view class="user-nickname">{{perlist.pname}}</view>
|
<view class="user-company">{{perlist.pdepartment}} |卡号: {{perlist.ptagid}} </view>
|
</view>
|
<view style="width: 40%;">
|
<image src="../static/close.png" style="width:20px;height:20px;float: right" @click="closeinfo">
|
</image>
|
</view>
|
</view>
|
<view class="content-box">
|
<span style="margin-left: 3%;">
|
经度:{{perlist.baoliu2}}
|
</span>
|
<span style="width: 37%; float: right;margin-right: 3%;">
|
纬度:{{perlist.baoliu3}}
|
</span>
|
<view style="margin-top: 3%;">
|
<span style="margin-left: 3%;">
|
版本:未知
|
</span>
|
<span style="width: 37%; float: right;margin-right: 3%;">
|
高程:{{perlist.baoliu4}}
|
</span>
|
</view>
|
<view style="margin-top: 3%;">
|
<span style="margin-left: 3%;">
|
电量:{{perlist.ppower}}%
|
</span>
|
<span style="width: 37%; float: right;margin-right: 3%;">
|
状态:{{ perlist.baoliu13 }}
|
|
</span>
|
</view>
|
</view>
|
<view class="bu-box">
|
<button plain @click="refresh">
|
<image src="../static/refresh.png" class="icon-image"></image>
|
</button>
|
<button style="width: 80%;left: 5px;" type="primary" @click="copyInfo">复制</button>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import {
|
minLogin
|
} from '@/js/minLogin.js'
|
export default {
|
mixins: [minLogin],
|
data() {
|
return {
|
|
}
|
},
|
props: {
|
perlist: {
|
type: Object,
|
default: () => {
|
return []
|
}
|
}
|
},
|
methods: {
|
closeinfo() {
|
this.$emit('closePerson')
|
},
|
copyInfo() {
|
//编号,经度纬度,高程
|
uni.setClipboardData({
|
data: this.perlist.ptagid + ';' + this.perlist.baoliu2 + ';' + this.perlist.baoliu3 + ";" +
|
this.perlist.baoliu4,
|
success: function() {
|
uni.showToast({
|
title: '复制成功',
|
icon: 'success',
|
duration: 2000
|
});
|
}
|
});
|
},
|
refresh() {
|
this.$emit('refreshPerson');
|
},
|
toPage(url) {
|
if (url) {
|
let isLogin = this.checkLogin()
|
if (isLogin) {
|
return false;
|
}
|
uni.navigateTo({
|
url: url
|
});
|
}
|
|
}
|
}
|
}
|
</script>
|
|
<style scoped lang="scss">
|
.icon-image {
|
top: 5px;
|
width: 25px;
|
/* 或者你需要的尺寸 */
|
height: 25px;
|
/* 或者你需要的尺寸 */
|
}
|
|
.link-box {
|
width: 100%;
|
background-color: #fff;
|
border-radius: 8px;
|
padding: 10px 0;
|
}
|
|
.content-box {
|
margin-top: 10px;
|
width: 100%;
|
background-color: #e6e6e6;
|
border-radius: 8px;
|
padding: 10px 0;
|
}
|
|
.info-box {
|
width: 100%;
|
background-color: #ffffff;
|
border-radius: 8px;
|
padding: 10px 0;
|
}
|
|
.bu-box {
|
display: flex;
|
width: 100%;
|
background-color: #ffffff;
|
border-radius: 8px;
|
padding: 10px 0;
|
}
|
|
.link-left {
|
display: flex;
|
align-items: center;
|
}
|
|
.link-bottom {
|
min-height: 42px;
|
padding: 0 10px;
|
// display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
|
.link-bottom-border {
|
border-top: 1px solid rgba(35, 35, 35, 0.1);
|
}
|
|
.userinfo-box {
|
// padding: 0 15px;
|
// margin-top: 20px;
|
display: flex;
|
|
.userinfo-img {
|
// padding-left: 15px;
|
height: 50px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
.userinfo-value-box {
|
padding-left: 5px;
|
|
.user-nickname {
|
height: 28px;
|
font-size: 15px;
|
font-weight: bold;
|
color: #000000;
|
}
|
|
.user-company {
|
height: 22px;
|
font-size: 12px;
|
color: rgba(35, 35, 35, 0.7);
|
}
|
}
|
}
|
</style>
|