index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="content">
  3. <view class="input-box">
  4. <image src="/static/policy/u377.png" alt="" />
  5. <input type="text" placeholder="请输入关键词搜索" />
  6. </view>
  7. <view class="companys">
  8. <view
  9. class="company"
  10. v-for="(company, index) in companyList"
  11. :key="index"
  12. @tap="toDetail(index)"
  13. >
  14. <view class="title">
  15. <view class="logo">
  16. <img :src="company.logo" alt="" />
  17. </view>
  18. <view class="name">
  19. {{ company.name }}
  20. </view>
  21. </view>
  22. <view class="info">
  23. <view class="view">
  24. <view class="info_t">法定代表人</view>
  25. <view class="name">
  26. {{ company.info.person }}
  27. </view>
  28. </view>
  29. <view class="line"></view>
  30. <view class="view">
  31. <view class="info_t">注册资本</view>
  32. {{ company.info.money }}
  33. </view>
  34. <view class="line"></view>
  35. <view class="view">
  36. <view class="info_t">成立日期</view>
  37. {{ company.info.time }}
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. companyList: new Array(5).fill({
  49. logo: "/static/enterprise/logo.png",
  50. name: "康拓科技有限责任公司",
  51. info: {
  52. person: "马须伦",
  53. money: "1,776,759.3万(元)",
  54. time: "1995-03-25",
  55. },
  56. }),
  57. };
  58. },
  59. onLoad() {},
  60. methods: {
  61. toDetail(index) {
  62. uni.navigateTo({
  63. url: "/pages/enterprise/enterprise_detail?id=" + index,
  64. });
  65. },
  66. },
  67. };
  68. </script>
  69. <style lang="scss">
  70. .content {
  71. font-size: 30rpx;
  72. .input-box {
  73. width: 100%;
  74. height: 100rpx;
  75. background-color: #02a7f0;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. position: relative;
  80. image {
  81. position: absolute;
  82. left: 72rpx;
  83. width: 40rpx;
  84. height: 40rpx;
  85. }
  86. input {
  87. background-color: #ffffff;
  88. width: 90%;
  89. height: 70%;
  90. border-radius: 50rpx;
  91. padding: 3rpx;
  92. font-size: 26rpx;
  93. padding-left: 80rpx;
  94. box-sizing: border-box;
  95. }
  96. }
  97. .companys {
  98. margin-top: 3%;
  99. padding: 0 4%;
  100. .company {
  101. border-radius: 20rpx;
  102. box-shadow: rgba(0, 0, 0, 0.35) 0rpx 5rpx 15rpx;
  103. padding: 2%;
  104. margin: 2% 0;
  105. .title {
  106. display: flex;
  107. align-items: center;
  108. .logo {
  109. image {
  110. width: 100rpx;
  111. height: 70rpx;
  112. margin-right: 30rpx;
  113. }
  114. }
  115. }
  116. .line {
  117. width: 3rpx;
  118. height: 70rpx;
  119. background: rgb(175, 186, 197);
  120. }
  121. .info {
  122. font-size: 19rpx;
  123. font-weight: 100;
  124. display: flex;
  125. text-align: center;
  126. justify-content: space-between;
  127. align-items: center;
  128. padding: 0 2%;
  129. margin-top: 2%;
  130. .view {
  131. margin-top: 2%;
  132. .name {
  133. color: #02a7f0;
  134. }
  135. .info_t {
  136. margin-bottom: 10rpx;
  137. font-size: 25rpx;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }
  144. </style>