80 lines
1.8 KiB
Vue
80 lines
1.8 KiB
Vue
<template>
|
|
<!-- 小纸条列表 -->
|
|
<view class="paper-item flex items-center p-20 border-b border-gray-100" hover-class="bg-gray" @click="goChat">
|
|
<image class=" rounded-20" style="width: 80rpx; height: 80rpx;margin: 0 20rpx;" :src="item.avatar" mode=""></image>
|
|
<view style="display: flex;align-items: center;">
|
|
<view class="flex flex-content">
|
|
<text class="text1">退役士兵教育培训承训机构申请表</text>
|
|
<text class="text2">退役士兵教育培训承训机构申请表描述信息</text>
|
|
</view>
|
|
<view>
|
|
<image style="width: 50rpx; height: 50rpx;" :src="imageUrl+'retired/icon-retired-download.png'" mode="">
|
|
</image>
|
|
</view>
|
|
<!-- <view class="flex justify-between items-center text-26 text-gray-500">
|
|
<text class="item-content line-1">{{item.content}}</text>
|
|
<u-badge type="error" max="99" :value="item.count"></u-badge>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
item: {
|
|
type: Object,
|
|
default: () => ({})
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
imageUrl: getApp().globalData.imgUrl
|
|
}
|
|
},
|
|
methods: {
|
|
goChat() {
|
|
this.$u.route('/pages/paper/chat')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.paper-item {
|
|
.item-img {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
}
|
|
|
|
.item-content {
|
|
max-width: 500rpx;
|
|
}
|
|
}
|
|
|
|
.flex-content {
|
|
flex-direction: column;
|
|
// border: solid 1px red;
|
|
margin-right: 30rpx;
|
|
|
|
.text1 {
|
|
width: 480rpx;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
word-break: break-all;
|
|
white-space: nowrap;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.text2 {
|
|
width: 480rpx;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
word-break: break-all;
|
|
white-space: nowrap;
|
|
font-size: 24rpx;
|
|
color: #a2a2a2;
|
|
margin-top: 12rpx;
|
|
}
|
|
}
|
|
</style> |