vue-cli init
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="nameCard">
|
||||
<view>
|
||||
<image class="bgImg" :src="bjImg" mode="aspectFill"></image>
|
||||
<view class="cardInfo">
|
||||
<view class="clientName">暂未填写公司</view>
|
||||
<view class="nameZhiwei">
|
||||
<text>暂未填写姓名</text>
|
||||
<text>暂未填写职位</text>
|
||||
</view>
|
||||
<view class="cardText">暂未填写联系方式</view>
|
||||
<view class="cardText">暂未填写邮箱</view>
|
||||
<view class="cardText">暂未填写地址</view>
|
||||
</view>
|
||||
<view class="cardShadow"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
bjImg: {
|
||||
type: String,
|
||||
default: 'https://7863-xcx-684a14-1302189669.tcb.qcloud.la/image/nameCard/bj/20210521007.jpg'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
AppLogo: '/static/img/logo.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.nameCard {
|
||||
width: 100%;
|
||||
height: 390rpx;
|
||||
background-color: #DDDDDD;
|
||||
border-radius: 16rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.cardInfo {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
left: 40rpx;
|
||||
color: #FFFFFF;
|
||||
z-index: 10;
|
||||
}
|
||||
.clientName {
|
||||
font-size: 15px;
|
||||
}
|
||||
.nameZhiwei {
|
||||
margin: 36rpx 0;
|
||||
}
|
||||
.nameZhiwei>text:first-child {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
padding-right: 16rpx;
|
||||
}
|
||||
.cardText {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.cardShadow {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, rgba(0,0,0, 0.2), rgba(0,0,0, 0.06));
|
||||
z-index: 8;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="nameCard">
|
||||
<view class="flexRow">
|
||||
<view class="leftImg">
|
||||
<image
|
||||
:src="item.avatar || AppLogo"
|
||||
mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="cardInfo">
|
||||
<view class="nameZhiwei">
|
||||
<text>{{item.name || '姓名'}}</text>
|
||||
<text>{{item.zhiWei || '暂未填写职位'}}</text>
|
||||
</view>
|
||||
<view class="clientName">{{item.clientName || '暂未填写公司'}}</view>
|
||||
<view class="cardText">{{item.phone || '暂未填写联系方式'}}</view>
|
||||
<view class="cardText">{{item.email || '暂未填写邮箱'}}</view>
|
||||
<view class="cardText">{{item.address || '暂未填写地址'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cardShadow"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
bjImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
AppLogo: '/static/img/logo.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.nameCard {
|
||||
width: 100%;
|
||||
height: 390rpx;
|
||||
background-color: #515151;
|
||||
border-radius: 16rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.cardInfo {
|
||||
/* position: absolute;
|
||||
top: 50rpx;
|
||||
left: 50rpx; */
|
||||
width: 406rpx;
|
||||
margin-top: 40rpx;
|
||||
color: #FFFFFF;
|
||||
z-index: 10;
|
||||
padding-left: 16rpx;
|
||||
}
|
||||
|
||||
.clientName {
|
||||
font-size: 14px;
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
|
||||
.nameZhiwei {
|
||||
margin-bottom: 26rpx;
|
||||
}
|
||||
|
||||
.nameZhiwei>text:first-child {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
padding-right: 16rpx;
|
||||
}
|
||||
|
||||
.cardText {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
.cardShadow {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.06));
|
||||
z-index: 8;
|
||||
}
|
||||
|
||||
.leftImg {
|
||||
width: 280rpx;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.flexRow {
|
||||
display: flex;
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.leftImg>image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,123 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="nameCard">
|
||||
<image class="bgImg" :src="bjImg" mode="aspectFill"></image>
|
||||
<view class="cardInfo">
|
||||
<view class="leftRightView">
|
||||
<view class="leftView">
|
||||
<image :src="item.avatar || AppLogo" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="rightView">
|
||||
<view class="nameZhiwei">
|
||||
<text>{{item.name || '姓名'}}</text>
|
||||
<text>{{item.zhiWei || '暂未填写职位'}}</text>
|
||||
</view>
|
||||
<view class="clientName">{{item.clientName || '暂未填写公司'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cardText">{{item.phone || '暂未填写联系方式'}}</view>
|
||||
<view class="cardText">{{item.email || '暂未填写邮箱'}}</view>
|
||||
<view class="cardText">{{item.address || '暂未填写地址'}}</view>
|
||||
<!-- <image class="codeImg" :src="item.xcxImg" mode="aspectFill"></image> -->
|
||||
</view>
|
||||
<view class="cardShadow"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
bjImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
xcxImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
AppLogo: '/static/img/logo.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.nameCard {
|
||||
width: 100%;
|
||||
height: 390rpx;
|
||||
background-color: #DDDDDD;
|
||||
border-radius: 16rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.cardInfo {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
left: 40rpx;
|
||||
color: #FFFFFF;
|
||||
z-index: 10;
|
||||
}
|
||||
.clientName {
|
||||
font-size: 14px;
|
||||
}
|
||||
.nameZhiwei {
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
.nameZhiwei>text:first-child {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
padding-right: 16rpx;
|
||||
}
|
||||
.cardText {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.cardShadow {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, rgba(0,0,0, 0.2), rgba(0,0,0, 0.06));
|
||||
z-index: 8;
|
||||
}
|
||||
.leftRightView {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.leftView {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
background-color: #D8D8D8;
|
||||
border-radius: 50%;
|
||||
margin-right: 26rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.leftView>image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.rightView {
|
||||
width: 440rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="nameCard">
|
||||
<image class="bgImg" :src="bjImg" mode="aspectFill"></image>
|
||||
<view class="cardInfo">
|
||||
<view class="leftRightView">
|
||||
<view class="leftView">
|
||||
<image :src="item.avatar || AppLogo" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="rightView">
|
||||
<view class="nameZhiwei">
|
||||
<text>{{item.name || '姓名'}}</text>
|
||||
<text>{{item.zhiWei || '暂未填写职位'}}</text>
|
||||
</view>
|
||||
<view class="clientName">{{item.clientName || '暂未填写公司'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cardText">{{item.phone || '暂未填写联系方式'}}</view>
|
||||
<view class="cardText">{{item.email || '暂未填写邮箱'}}</view>
|
||||
<view class="cardText">{{item.address || '暂未填写地址'}}</view>
|
||||
<!-- <image class="codeImg" :src="item.xcxImg" mode="aspectFill"></image> -->
|
||||
</view>
|
||||
<view class="cardShadow"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
bjImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
xcxImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
AppLogo: '/static/img/logo.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.nameCard {
|
||||
width: 100%;
|
||||
height: 390rpx;
|
||||
background-color: #DDDDDD;
|
||||
border-radius: 16rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.cardInfo {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
left: 40rpx;
|
||||
color: #FFFFFF;
|
||||
z-index: 10;
|
||||
}
|
||||
.clientName {
|
||||
font-size: 14px;
|
||||
}
|
||||
.nameZhiwei {
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
.nameZhiwei>text:first-child {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
padding-right: 16rpx;
|
||||
}
|
||||
.cardText {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.cardShadow {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, rgba(0,0,0, 0.2), rgba(0,0,0, 0.06));
|
||||
z-index: 8;
|
||||
}
|
||||
.leftRightView {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.leftView {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
background-color: #D8D8D8;
|
||||
border-radius: 26rpx;
|
||||
margin-right: 26rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.leftView>image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.rightView {
|
||||
width: 440rpx;
|
||||
}
|
||||
.codeImg {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
bottom: 6rpx;
|
||||
right: -20rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="nameCard">
|
||||
<image class="bgImg" :src="bjImg" mode="aspectFill"></image>
|
||||
<view class="cardInfo">
|
||||
<view class="leftRightView">
|
||||
<view class="leftView">
|
||||
<view class="nameZhiwei">
|
||||
<text>{{item.name || '姓名'}}</text>
|
||||
<text>{{item.zhiWei || '暂未填写职位'}}</text>
|
||||
</view>
|
||||
<view class="clientName">{{item.clientName || '暂未填写公司'}}</view>
|
||||
</view>
|
||||
<view class="rightView">
|
||||
<image :src="item.avatar || AppLogo" mode="aspectFill"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cardText">{{item.phone || '暂未填写联系方式'}}</view>
|
||||
<view class="cardText">{{item.email || '暂未填写邮箱'}}</view>
|
||||
<view class="cardText">{{item.address || '暂未填写地址'}}</view>
|
||||
<!-- <image class="codeImg" :src="item.xcxImg" mode="aspectFill"></image> -->
|
||||
</view>
|
||||
<view class="cardShadow"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
bjImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
xcxImg: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
AppLogo: '/static/img/logo.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.nameCard {
|
||||
width: 100%;
|
||||
height: 390rpx;
|
||||
background-color: #DDDDDD;
|
||||
border-radius: 16rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.cardInfo {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
left: 40rpx;
|
||||
color: #FFFFFF;
|
||||
z-index: 10;
|
||||
}
|
||||
.clientName {
|
||||
font-size: 14px;
|
||||
}
|
||||
.nameZhiwei {
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
.nameZhiwei>text:first-child {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
padding-right: 16rpx;
|
||||
}
|
||||
.cardText {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.cardShadow {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, rgba(0,0,0, 0.2), rgba(0,0,0, 0.06));
|
||||
z-index: 8;
|
||||
}
|
||||
.leftRightView {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.rightView {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
background-color: #D8D8D8;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.rightView>image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.leftView {
|
||||
width: 440rpx;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user