rightcont.vue 6.7 KB

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