myRelease.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <template>
  2. <div id="myRelease">
  3. <el-row>
  4. <el-col :span="24" class="myRelease">
  5. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  6. <el-tab-pane label="我的需求" name="first">
  7. <el-col :span="24" class="myxuqiu">
  8. <el-tabs v-model="activeNames" @tab-click="handleClicks">
  9. <el-tab-pane label="已审核信息" name="first">
  10. <el-col :span="24" class="info">
  11. <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in xuqiuYishenList" :key="index">
  12. <el-col :span="20" class="num"> 信息号:{{ item.num }} </el-col>
  13. <el-col :span="4" class="date">{{ item.date }} </el-col>
  14. <el-col :span="10" class="left">
  15. <el-col :span="12" class="image">
  16. <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
  17. </el-col>
  18. <el-col :span="12" class="center">
  19. <el-col :span="24" class="name">
  20. {{ item.name }}
  21. </el-col>
  22. <el-col :span="24" class="name"> 类别:{{ item.type }} </el-col>
  23. <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
  24. </el-col>
  25. </el-col>
  26. <el-col :span="10" class="shenqing">
  27. 最新申请:
  28. <p>{{ item.content }}</p>
  29. </el-col>
  30. <el-col :span="4" class="btn">
  31. <el-link :underline="false">编辑</el-link><br />
  32. <el-link :underline="false">彻底删除</el-link><br />
  33. <el-link :underline="false">查看详情</el-link>
  34. </el-col>
  35. </el-col>
  36. </el-col>
  37. <el-col :span="24" class="page">
  38. <el-pagination
  39. @size-change="handleSizeChange"
  40. @current-change="handleCurrentChange"
  41. :current-page="currentPage"
  42. layout="total, prev, pager, next, jumper"
  43. :total="1"
  44. >
  45. </el-pagination>
  46. </el-col>
  47. </el-tab-pane>
  48. <el-tab-pane label="审核中信息" name="second">
  49. <el-col :span="24" class="info">
  50. <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in xuqiuYishenList" :key="index">
  51. <el-col :span="20" class="num"> 信息号:{{ item.num }} </el-col>
  52. <el-col :span="4" class="date">{{ item.date }} </el-col>
  53. <el-col :span="10" class="left">
  54. <el-col :span="12" class="image">
  55. <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
  56. </el-col>
  57. <el-col :span="12" class="center">
  58. <el-col :span="24" class="name">
  59. {{ item.name }}
  60. </el-col>
  61. <el-col :span="24" class="name"> 类别:{{ item.type }} </el-col>
  62. <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
  63. </el-col>
  64. </el-col>
  65. <el-col :span="10" class="shenqing">
  66. 最新申请:
  67. <p>{{ item.content }}</p>
  68. </el-col>
  69. <el-col :span="4" class="btn">
  70. <el-link :underline="false">审核</el-link><br />
  71. <el-link :underline="false">彻底删除</el-link>
  72. </el-col>
  73. </el-col>
  74. </el-col>
  75. <el-col :span="24" class="page">
  76. <el-pagination
  77. @size-change="handleSizeChange"
  78. @current-change="handleCurrentChange"
  79. :current-page="currentPage"
  80. layout="total, prev, pager, next, jumper"
  81. :total="1"
  82. >
  83. </el-pagination>
  84. </el-col>
  85. </el-tab-pane>
  86. <el-tab-pane label="交易完成信息" name="third">
  87. <el-col :span="24" class="info">
  88. <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in xuqiuYishenList" :key="index">
  89. <el-col :span="20" class="num"> 信息号:{{ item.num }} </el-col>
  90. <el-col :span="4" class="date">{{ item.date }} </el-col>
  91. <el-col :span="10" class="left">
  92. <el-col :span="12" class="image">
  93. <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
  94. </el-col>
  95. <el-col :span="12" class="center">
  96. <el-col :span="24" class="name">
  97. {{ item.name }}
  98. </el-col>
  99. <el-col :span="24" class="name"> 类别:{{ item.type }} </el-col>
  100. <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
  101. </el-col>
  102. </el-col>
  103. <el-col :span="10" class="shenqing">
  104. 最新申请:
  105. <p>{{ item.content }}</p>
  106. </el-col>
  107. <el-col :span="4" class="btn">
  108. <el-link :underline="false">编辑</el-link><br />
  109. <el-link :underline="false">彻底删除</el-link><br />
  110. <el-link :underline="false">查看详情</el-link>
  111. </el-col>
  112. </el-col>
  113. </el-col>
  114. <el-col :span="24" class="page">
  115. <el-pagination
  116. @size-change="handleSizeChange"
  117. @current-change="handleCurrentChange"
  118. :current-page="currentPage"
  119. layout="total, prev, pager, next, jumper"
  120. :total="1"
  121. >
  122. </el-pagination>
  123. </el-col>
  124. </el-tab-pane>
  125. </el-tabs>
  126. </el-col>
  127. </el-tab-pane>
  128. <el-tab-pane label="我的供给" name="second">
  129. <el-col :span="24" class="myxuqiu">
  130. <el-tabs v-model="activeNames" @tab-click="handleClicks">
  131. <el-tab-pane label="已审核信息" name="first">
  132. <el-col :span="24" class="info">
  133. <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in xuqiuYishenList" :key="index">
  134. <el-col :span="20" class="num"> 信息号:{{ item.num }} </el-col>
  135. <el-col :span="4" class="date">{{ item.date }} </el-col>
  136. <el-col :span="10" class="left">
  137. <el-col :span="12" class="image">
  138. <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
  139. </el-col>
  140. <el-col :span="12" class="center">
  141. <el-col :span="24" class="name">
  142. {{ item.name }}
  143. </el-col>
  144. <el-col :span="24" class="name"> 类别:{{ item.type }} </el-col>
  145. <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
  146. </el-col>
  147. </el-col>
  148. <el-col :span="10" class="shenqing">
  149. 最新申请:
  150. <p>{{ item.content }}</p>
  151. </el-col>
  152. <el-col :span="4" class="btn">
  153. <el-link :underline="false">编辑</el-link><br />
  154. <el-link :underline="false">彻底删除</el-link><br />
  155. <el-link :underline="false">查看详情</el-link>
  156. </el-col>
  157. </el-col>
  158. </el-col>
  159. <el-col :span="24" class="page">
  160. <el-pagination
  161. @size-change="handleSizeChange"
  162. @current-change="handleCurrentChange"
  163. :current-page="currentPage"
  164. layout="total, prev, pager, next, jumper"
  165. :total="1"
  166. >
  167. </el-pagination>
  168. </el-col>
  169. </el-tab-pane>
  170. <el-tab-pane label="审核中信息" name="second">
  171. <el-col :span="24" class="info">
  172. <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in xuqiuYishenList" :key="index">
  173. <el-col :span="20" class="num"> 信息号:{{ item.num }} </el-col>
  174. <el-col :span="4" class="date">{{ item.date }} </el-col>
  175. <el-col :span="10" class="left">
  176. <el-col :span="12" class="image">
  177. <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
  178. </el-col>
  179. <el-col :span="12" class="center">
  180. <el-col :span="24" class="name">
  181. {{ item.name }}
  182. </el-col>
  183. <el-col :span="24" class="name"> 类别:{{ item.type }} </el-col>
  184. <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
  185. </el-col>
  186. </el-col>
  187. <el-col :span="10" class="shenqing">
  188. 最新申请:
  189. <p>{{ item.content }}</p>
  190. </el-col>
  191. <el-col :span="4" class="btn">
  192. <el-link :underline="false">审核</el-link><br />
  193. <el-link :underline="false">彻底删除</el-link>
  194. </el-col>
  195. </el-col>
  196. </el-col>
  197. <el-col :span="24" class="page">
  198. <el-pagination
  199. @size-change="handleSizeChange"
  200. @current-change="handleCurrentChange"
  201. :current-page="currentPage"
  202. layout="total, prev, pager, next, jumper"
  203. :total="1"
  204. >
  205. </el-pagination>
  206. </el-col>
  207. </el-tab-pane>
  208. <el-tab-pane label="交易完成信息" name="third">
  209. <el-col :span="24" class="info">
  210. <el-col :span="24" class="xuqiuYishenList" v-for="(item, index) in xuqiuYishenList" :key="index">
  211. <el-col :span="20" class="num"> 信息号:{{ item.num }} </el-col>
  212. <el-col :span="4" class="date">{{ item.date }} </el-col>
  213. <el-col :span="10" class="left">
  214. <el-col :span="12" class="image">
  215. <el-image style="width:100px;height:100px;" :src="item.pic"></el-image>
  216. </el-col>
  217. <el-col :span="12" class="center">
  218. <el-col :span="24" class="name">
  219. {{ item.name }}
  220. </el-col>
  221. <el-col :span="24" class="name"> 类别:{{ item.type }} </el-col>
  222. <el-col :span="24" class="name yen"> &yen;{{ item.yen }} </el-col>
  223. </el-col>
  224. </el-col>
  225. <el-col :span="10" class="shenqing">
  226. 最新申请:
  227. <p>{{ item.content }}</p>
  228. </el-col>
  229. <el-col :span="4" class="btn">
  230. <el-link :underline="false">编辑</el-link><br />
  231. <el-link :underline="false">彻底删除</el-link><br />
  232. <el-link :underline="false">查看详情</el-link>
  233. </el-col>
  234. </el-col>
  235. </el-col>
  236. <el-col :span="24" class="page">
  237. <el-pagination
  238. @size-change="handleSizeChange"
  239. @current-change="handleCurrentChange"
  240. :current-page="currentPage"
  241. layout="total, prev, pager, next, jumper"
  242. :total="1"
  243. >
  244. </el-pagination>
  245. </el-col>
  246. </el-tab-pane>
  247. </el-tabs>
  248. </el-col>
  249. </el-tab-pane>
  250. </el-tabs>
  251. </el-col>
  252. </el-row>
  253. </div>
  254. </template>
  255. <script>
  256. export default {
  257. name: 'myRelease',
  258. props: {
  259. xuqiuYishenList: null,
  260. },
  261. components: {},
  262. data: () => ({
  263. activeName: 'first',
  264. activeNames: 'first',
  265. currentPage: 1,
  266. }),
  267. created() {},
  268. computed: {},
  269. methods: {
  270. handleClick(tab, event) {
  271. console.log(tab, event);
  272. },
  273. handleClicks(tab, event) {
  274. console.log(tab, event);
  275. },
  276. handleSizeChange(val) {
  277. console.log(`每页 ${val} 条`);
  278. },
  279. handleCurrentChange(val) {
  280. console.log(`当前页: ${val}`);
  281. },
  282. },
  283. };
  284. </script>
  285. <style lang="less" scoped>
  286. p {
  287. padding: 0;
  288. margin: 0;
  289. }
  290. /deep/.el-tabs__item {
  291. padding: 0 53px;
  292. font-size: 18px;
  293. color: #888;
  294. height: 60px;
  295. line-height: 60px;
  296. }
  297. /deep/.el-tabs__header {
  298. margin: 0;
  299. }
  300. /deep/.el-tabs--card > .el-tabs__header {
  301. border-bottom: 1px solid #215299;
  302. }
  303. /deep/.el-tabs--card > .el-tabs__header .el-tabs__nav {
  304. border: none;
  305. }
  306. /deep/.el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2) {
  307. padding-left: 53px;
  308. }
  309. /deep/.el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:last-child {
  310. padding-right: 53px;
  311. }
  312. /deep/.el-tabs__item.is-active {
  313. background-color: #215299;
  314. color: #fff;
  315. }
  316. .myxuqiu {
  317. padding: 20px;
  318. }
  319. /deep/.myxuqiu .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  320. padding-left: 0;
  321. }
  322. /deep/.myxuqiu .el-tabs--top .el-tabs__item.is-top:last-child {
  323. padding-right: 20px;
  324. }
  325. /deep/.myxuqiu .el-tabs__item {
  326. padding: 0 20px;
  327. font-size: 18px;
  328. color: #888;
  329. height: 40px;
  330. line-height: 40px;
  331. }
  332. /deep/.myxuqiu .el-tabs__item.is-active {
  333. background-color: transparent;
  334. color: #215299;
  335. }
  336. /deep/.myxuqiu .el-tabs__active-bar {
  337. background-color: #215299;
  338. height: 0;
  339. }
  340. .info {
  341. margin: 20px 0 0 0;
  342. height: 860px;
  343. overflow: hidden;
  344. }
  345. .xuqiuYishenList {
  346. border: 1px solid #ccc;
  347. margin: 0 0 10px 0;
  348. }
  349. .xuqiuYishenList .num {
  350. height: 40px;
  351. line-height: 40px;
  352. background-color: #fafafa;
  353. padding: 0 10px;
  354. font-size: 14px;
  355. color: #888;
  356. }
  357. .xuqiuYishenList .date {
  358. height: 40px;
  359. line-height: 40px;
  360. background-color: #fafafa;
  361. font-size: 14px;
  362. color: #888;
  363. text-align: center;
  364. }
  365. .xuqiuYishenList .left {
  366. height: 100px;
  367. margin: 10px 0;
  368. border-right: 1px solid #ccc;
  369. padding: 0 0 0 10px;
  370. }
  371. .xuqiuYishenList .left .image {
  372. width: 100px;
  373. height: 100px;
  374. }
  375. .xuqiuYishenList .center {
  376. height: 100px;
  377. padding: 0 0 0 10px;
  378. }
  379. .xuqiuYishenList .center .name {
  380. font-size: 16px;
  381. color: #555;
  382. height: 30px;
  383. line-height: 30px;
  384. }
  385. .xuqiuYishenList .center .yen {
  386. color: #ff0000;
  387. }
  388. .xuqiuYishenList .shenqing {
  389. height: 100px;
  390. margin: 10px 0;
  391. border-right: 1px solid #ccc;
  392. padding: 0 10px;
  393. font-size: 14px;
  394. color: #215299;
  395. }
  396. .xuqiuYishenList .shenqing p {
  397. color: #555;
  398. font-size: 14px;
  399. text-indent: 1rem;
  400. line-height: 25px;
  401. }
  402. .xuqiuYishenList .btn {
  403. text-align: center;
  404. height: 100px;
  405. margin: 10px 0;
  406. line-height: 30px;
  407. }
  408. .xuqiuYishenList .btn .el-link {
  409. color: #215299;
  410. margin: 0 10px;
  411. }
  412. .page {
  413. height: 30px;
  414. line-height: 30px;
  415. margin: 40px 0;
  416. text-align: center;
  417. }
  418. </style>