test1.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="safe-area-inset-bottom">
  3. <view class="card" v-for="(item,index) in 8" :key="index">
  4. <view class="item">
  5. <view class="left">
  6. <view class="tag bg-red">
  7. <text>麦</text>
  8. </view>
  9. <view class="content">
  10. <text class="text-cut-1">麦草方格(宁夏)文化传媒有限公司</text>
  11. <text class="text-cut-1">德锐斯园区A区</text>
  12. </view>
  13. </view>
  14. <view class="right">
  15. <image src="../../static/index/call.png" mode=""></image>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. }
  26. },
  27. methods: {
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. .card{
  33. position: relative;
  34. background-color: #FFFFFF;
  35. padding: 35rpx;
  36. margin: 20rpx;
  37. .item{
  38. display: flex;
  39. justify-content: space-between;
  40. }
  41. .left{
  42. display: flex;
  43. width: 88%;
  44. .tag{
  45. border-radius: 50%;
  46. display: flex;
  47. justify-content: center;
  48. align-items: center;
  49. height: 80rpx;
  50. width: 80rpx;
  51. font-size: 32rpx;
  52. }
  53. .content{
  54. padding-left: 30rpx;
  55. display: flex;
  56. flex-direction: column;
  57. text:first-child{
  58. font-size: 32rpx;
  59. }
  60. text:last-child{
  61. font-size: 28rpx;
  62. color: #9f9f9f;
  63. padding-top: 15rpx;
  64. }
  65. }
  66. }
  67. .right{
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. image{
  72. width: 50rpx;
  73. height: 50rpx;
  74. }
  75. }
  76. }
  77. </style>