兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.4 KiB

  1. <template>
  2. <view class="new-card flex justify-between">
  3. <view style="margin: 10rpx 24rpx; display: flex;">
  4. <image :showLoading="true" :src="item.headImage" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
  5. <view style="padding: 28rpx;">
  6. <view style="font-size: 28rpx;font-weight: 500;color: crimson;" v-if="item.type === '0'">{{item.name}} - {{item.integerVal}}</view>
  7. <view style="font-size: 28rpx;font-weight: 500;color: crimson;" v-if="item.type === '1'">{{item.name}} + {{item.integerVal}}</view>
  8. <view style="font-size: 24rpx;margin-top: 20rpx;">{{item.createTime}}</view>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default{
  15. props:{
  16. item:{
  17. type:Object,
  18. }
  19. },
  20. data(){
  21. return{
  22. }
  23. },
  24. methods:{
  25. getName(str){
  26. if(str.length > 10) {
  27. return str.substr(0,10) + "..."
  28. }
  29. return str
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .new-card {
  36. margin-bottom: 12rpx;
  37. background-color: #FFFFFF;
  38. .new-card-l {
  39. font-size: 28rpx;
  40. color: #C8C8C8;
  41. padding: 16rpx 16rpx;
  42. .title {
  43. font-size: 32rpx;
  44. color: #000000;
  45. line-height: 40rpx;
  46. font-weight: 600;
  47. overflow: hidden;
  48. display: -webkit-box;
  49. -webkit-box-orient: vertical;
  50. -webkit-line-clamp: 2;
  51. }
  52. }
  53. .new-card-r{
  54. uni-image>img {
  55. border-radius: 50%;
  56. }
  57. }
  58. }
  59. </style>