enterprise-list.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view>
  3. <view v-for="(item, index) in dataList" :key="item.id" class="mx3 mb-2 p3 bg-color-white border-radius-1 wrap "
  4. :class="isBox?'box':''" @click='goEnterprise(item)'>
  5. <view class="top d-flex">
  6. <image src="https://www.xingzhits.cn/xzts/static/images/icon4.png" class="top-img mr-3"></image>
  7. <view class="flex1">
  8. <view class="one-ellipsis f-size-32 f-weight-6">名称</view>
  9. <view class="d-flex a-center mt-1">
  10. <text class="text-color-9 f-size-22">22</text>
  11. <text class="mx2 text-color-9 f-size-22">|</text>
  12. <text class="text-color-9 f-size-22">2个待接订单</text>
  13. <text class="main-linear ml-auto f-size-26 text-color-white top-state">接单</text>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="bottom two-ellipsis f-size-22 mt-3" style="color: #A2AAB3;">待企业完善介绍信息</view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. };
  26. },
  27. props:{
  28. isBox:{
  29. type:Boolean,
  30. default:false
  31. },
  32. dataList: {
  33. type: Array,
  34. default: ()=>[]
  35. }
  36. },
  37. filters: {
  38. },
  39. created() {
  40. },
  41. methods:{
  42. goEnterprise(item){
  43. },
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .box {
  49. border-radius: 10rpx;
  50. box-shadow: 0px 2px 10px rgba(202, 202, 222, 0.5);
  51. }
  52. .wrap {
  53. .top {
  54. &-img {
  55. width: 100rpx;
  56. height: 100rpx;
  57. border-radius: 15rpx;
  58. }
  59. &-state {
  60. border-radius: 10rpx;
  61. padding: 5rpx 25rpx;
  62. }
  63. }
  64. }
  65. </style>