rightcont.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <template>
  2. <div id="rightcont">
  3. <el-col :span="24" class="search">
  4. <el-col :span="12" class="left">
  5. <el-col :span="19" class="input"><el-input v-model="input" placeholder="输入产品关键字"></el-input></el-col>
  6. <el-col :span="5" class="btn">
  7. <i class="el-icon-search"></i>
  8. <span>产品</span>
  9. </el-col>
  10. </el-col>
  11. <el-col :span="12" class="left">
  12. <el-col :span="19" class="input"><el-input v-model="inputs" placeholder="输入供求关键字"></el-input></el-col>
  13. <el-col :span="5" class="btn">
  14. <i class="el-icon-search"></i>
  15. <span>供求</span>
  16. </el-col>
  17. </el-col>
  18. </el-col>
  19. <el-col :span="24" class="info">
  20. <el-tabs type="border-card">
  21. <el-tab-pane>
  22. <span slot="label">技术供求</span>
  23. <el-col :span="12" class="jishuList" v-for="(item, index) in jishuList" :key="index">
  24. <el-link :underline="false">
  25. <el-col :span="24" class="title">
  26. <span class="textOver">{{ item.title }}</span>
  27. </el-col>
  28. <el-col :span="15" class="type">
  29. <span>技术类型:{{ item.type }}</span>
  30. </el-col>
  31. <el-col :span="9" class="date">日期:{{ item.date }}</el-col>
  32. <el-col :span="24" class="yen">价格:¥{{ item.yen }}元/公斤</el-col>
  33. </el-link>
  34. </el-col>
  35. </el-tab-pane>
  36. <el-tab-pane>
  37. <span slot="label">产品供求</span>
  38. <el-col :span="6" class="chanpinList" v-for="(item, index) in chanpinList" :key="index">
  39. <el-link :underline="false">
  40. <el-col :span="24" class="images">
  41. <el-image style="width:220px;height:160px;" :src="item.pic"></el-image>
  42. </el-col>
  43. <el-col :span="24" class="title">
  44. <span class="textOver">{{ item.title }}</span>
  45. </el-col>
  46. <el-col :span="15" class="yen"> ¥{{ item.yen }} </el-col>
  47. <el-col :span="9" class="type">
  48. {{ item.type }}
  49. </el-col>
  50. </el-link>
  51. </el-col>
  52. </el-tab-pane>
  53. <el-tab-pane>
  54. <span slot="label">服务供求</span>
  55. <el-col :span="24" class="serviceList" v-for="(item, index) in serviceList" :key="index">
  56. <el-col :span="10" class="title">
  57. <span class="textOver">{{ item.title }}</span>
  58. </el-col>
  59. <el-col :span="6" class="type"> 服务类型:{{ item.type }} </el-col>
  60. <el-col :span="5" class="yen"> ¥{{ item.yen }} </el-col>
  61. <el-col :span="3" class="date">
  62. {{ item.date }}
  63. </el-col>
  64. </el-col>
  65. </el-tab-pane>
  66. <el-tab-pane>
  67. <span slot="label">人才供求</span>
  68. 人才供求
  69. </el-tab-pane>
  70. </el-tabs>
  71. <el-link class="more" :underline="false">
  72. <el-image :src="more"></el-image>
  73. </el-link>
  74. </el-col>
  75. </div>
  76. </template>
  77. <script>
  78. export default {
  79. name: 'rightcont',
  80. props: {
  81. jishuList: null,
  82. chanpinList: null,
  83. serviceList: null,
  84. },
  85. components: {},
  86. data: () => ({
  87. input: '',
  88. inputs: '',
  89. more: require('@/assets/更多.png'),
  90. }),
  91. created() {},
  92. computed: {},
  93. methods: {
  94. handleOpen(key, keyPath) {
  95. console.log(key, keyPath);
  96. },
  97. handleClose(key, keyPath) {
  98. console.log(key, keyPath);
  99. },
  100. },
  101. };
  102. </script>
  103. <style lang="less" scoped>
  104. .search {
  105. height: 60px;
  106. margin: 0 0 10px 0;
  107. }
  108. .search .left {
  109. background: #fff;
  110. height: 60px;
  111. padding: 10px;
  112. width: 470px;
  113. margin: 0 10px 0 0;
  114. border-radius: 0px;
  115. }
  116. .search .left:last-child {
  117. margin: 0;
  118. }
  119. .search .btn {
  120. height: 40px;
  121. line-height: 40px;
  122. }
  123. /deep/.search .btn .el-icon-search {
  124. font-size: 25px;
  125. font-weight: bold;
  126. color: blue;
  127. padding: 0 10px;
  128. float: left;
  129. margin: 7px 0 0 0;
  130. }
  131. .search .btn span {
  132. font-size: 16px;
  133. color: #215199;
  134. font-weight: bold;
  135. }
  136. /deep/.el-input__inner {
  137. background: #f3f3f3;
  138. border: none;
  139. border-radius: 0;
  140. }
  141. .info {
  142. height: 530px;
  143. background: #fff;
  144. padding: 0 20px;
  145. overflow: hidden;
  146. position: relative;
  147. }
  148. /deep/.el-tabs--border-card > .el-tabs__content {
  149. padding: 0;
  150. }
  151. /deep/.el-tabs--border-card > .el-tabs__header {
  152. background-color: transparent;
  153. border-bottom: none;
  154. }
  155. /deep/.el-tabs--border-card {
  156. border: none;
  157. box-shadow: none;
  158. }
  159. /deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  160. border-right-color: transparent;
  161. border-left-color: transparent;
  162. }
  163. /deep/.el-tabs__item {
  164. font-size: 22px;
  165. font-weight: bold;
  166. height: 60px;
  167. line-height: 60px;
  168. }
  169. /deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  170. color: #22529a;
  171. }
  172. .jishuList {
  173. width: 450px;
  174. height: 110px;
  175. margin: 0 5px 5px 0;
  176. background-color: #f3f3f3;
  177. padding: 20px;
  178. }
  179. .jishuList:nth-child(2n) {
  180. margin: 0 0 5px 0;
  181. }
  182. .jishuList .title span {
  183. display: inline-block;
  184. width: 100%;
  185. font-size: 16px;
  186. color: #6d6d77;
  187. }
  188. .jishuList .type span {
  189. display: inline-block;
  190. width: 100%;
  191. font-size: 16px;
  192. color: #6d6d77;
  193. }
  194. .jishuList .date {
  195. font-size: 16px;
  196. color: #6d6d77;
  197. text-align: right;
  198. }
  199. .jishuList .yen {
  200. color: #e91311;
  201. font-size: 16px;
  202. margin: 2px 0 0 0;
  203. }
  204. .info .more {
  205. position: absolute;
  206. top: 0;
  207. z-index: 999;
  208. right: 25px;
  209. height: 58px;
  210. }
  211. .chanpinList {
  212. margin-right: 10px;
  213. margin-bottom: 10px;
  214. width: 220px;
  215. height: 220px;
  216. background-color: #f3f3f3;
  217. }
  218. .chanpinList:nth-child(4n) {
  219. margin-right: 0;
  220. }
  221. .chanpinList .title span {
  222. display: inline-block;
  223. width: 90%;
  224. font-size: 16px;
  225. color: #556572;
  226. padding: 0 10px;
  227. }
  228. .chanpinList .yen {
  229. padding: 0 0 0 10px;
  230. color: #e91311;
  231. font-size: 16px;
  232. }
  233. .chanpinList .type {
  234. padding: 0 10px 0 0;
  235. color: #556572;
  236. font-size: 16px;
  237. text-align: right;
  238. }
  239. .serviceList {
  240. background-color: #f3f3f3;
  241. height: 55px;
  242. line-height: 55px;
  243. }
  244. .serviceList:nth-child(2n) {
  245. background-color: #fff;
  246. }
  247. .serviceList .title span {
  248. display: inline-block;
  249. padding: 0 10px;
  250. width: 94%;
  251. font-size: 16px;
  252. color: #556572;
  253. }
  254. .serviceList .type {
  255. font-size: 16px;
  256. color: #556572;
  257. }
  258. .serviceList .yen {
  259. font-size: 16px;
  260. color: #556572;
  261. }
  262. .serviceList .date {
  263. font-size: 16px;
  264. color: #556572;
  265. }
  266. </style>