|
|
- <template>
- <view class="boss-item">
- <view class="head">
- <view class="headImage">
- <image :src="headImage" mode=""></image>
- </view>
- <view class="info">
- <view class="name">
- <!-- 李老板 -->
- {{ item.name }}
- <view>
- <!-- 装配电工 -->
- {{ item.typeId_dictText }}
- </view>
- <view>
- <!-- 装配电工 -->
- {{ item.natureId_dictText }}
- </view>
- </view>
- <view class="tips">
- <!-- 男 · 汉族 · 本科 · 应届生 -->
- {{ item.sex }} · {{ item.nation }} · {{ item.qualification }} · 应届生
- </view>
- </view>
- <view class="right">
- <view class="price"
- v-if="item.salaryLow >= 1000">
- <text>
- {{ (item.salaryLow / 1000).toFixed(0) }}
- </text>
- <text
- v-if="item.salaryUp">
- -{{ (item.salaryUp / 1000).toFixed(0) }}
- </text>
- K
- </view>
- <view class="price" v-else>
- <text>{{ item.salaryLow }}</text>
- <text
- v-if="item.salaryUp">-{{ item.salaryUp }}</text>
- </view>
- </view>
- </view>
- <view class="bottom">
- <view class="time">
- <!-- 09月23日 16:20 -->
- {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
- </view>
- <view class="phone">
- <image src="/static/image/home/phone.png" mode=""></image>
- 联系他
- </view>
- </view>
- </view>
- </template>
-
- <script>
- export default {
- props : {
- item : {
- default : {}
- }
- },
- data() {
- return {
-
- }
- },
- computed : {
- headImage(){
- return this.item.headImage || '/static/image/center/headImage.png'
- }
- },
- methods: {
-
- }
- }
- </script>
-
- <style scoped lang="scss">
- .boss-item{
- background-color: #fff;
- border-radius: 20rpx;
- .head {
- display: flex;
- align-items: center;
- position: relative;
- padding: 20rpx;
-
-
- image {
- width: 100%;
- height: 100%;
- }
-
- .headImage {
- width: 80rpx;
- height: 80rpx;
- background-size: 100% 100%;
- overflow: hidden;
- border-radius: 50%;
- margin-right: 40rpx;
- }
-
- .info {
- font-size: 28rpx;
-
- .name {
- font-size: 32rpx;
- display: flex;
- padding-bottom: 10rpx;
-
- view {
- display: flex;
- font-size: 24rpx;
- align-items: center;
- margin-left: 20rpx;
- background: rgba($uni-color, 0.2);
- color: $uni-color;
- padding: 10rpx;
- border-radius: 10rpx;
- }
- }
-
- .tips {
- font-size: 24rpx;
- }
- }
- .right{
- margin-left: auto;
- font-size: 24rpx;
- .price{
- color: $uni-color;
- }
- }
- }
- .bottom{
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- font-size: 24rpx;
- padding: 20rpx;
- padding-top: 0;
- .time{
- color: #999999;
- }
- .phone{
- background-color: rgba($uni-color, 0.2);
- color: $uni-color;
- padding: 8rpx 16rpx;
- border-radius: 10rpx;
- image{
- width: 20rpx;
- height: 20rpx;
- }
- }
- }
- }
- </style>
|