intentionList.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <div id="auditList">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="list" @click.native="$router.push({ path: '/userCenter/matter/detailinfo' })" v-for="(item, index) in list" :key="index">
  6. <p class="textOver">{{ item.product_name }}</p>
  7. <p>
  8. <span class="ptwo"><span>营销人名称:</span>{{ item.market_username || '暂无phase' }}</span>
  9. <span class="ptwo"><span>购买人名称:</span>{{ item.username || '暂无' }}</span>
  10. </p>
  11. <p class="textOver"><span>说明:</span>{{ item.description || '暂无' }}</p>
  12. </el-col>
  13. </el-col>
  14. </el-row>
  15. </div>
  16. </template>
  17. <script>
  18. import { mapState, createNamespacedHelpers } from 'vuex';
  19. const { mapActions: product } = createNamespacedHelpers('marketproduct');
  20. export default {
  21. name: 'auditList',
  22. props: {},
  23. components: {},
  24. data: function() {
  25. return {
  26. list: [
  27. {
  28. product_name: '最最新新技术',
  29. market_username: '卖家1',
  30. username: '买家1',
  31. description: '222222222222222222222222222222',
  32. },
  33. {
  34. product_name: '最最新新技术',
  35. market_username: '卖家1',
  36. username: '买家1',
  37. description: '222222222222222222222222222222',
  38. },
  39. {
  40. product_name: '最最新新技术',
  41. market_username: '卖家1',
  42. username: '买家1',
  43. description: '222222222222222222222222222222',
  44. },
  45. {
  46. product_name: '最最新新技术',
  47. market_username: '卖家1',
  48. username: '买家1',
  49. description: '222222222222222222222222222222',
  50. },
  51. {
  52. product_name: '最最新新技术',
  53. market_username: '卖家1',
  54. username: '买家1',
  55. description: '222222222222222222222222222222',
  56. },
  57. {
  58. product_name: '最最新新技术',
  59. market_username: '卖家1',
  60. username: '买家1',
  61. description: '222222222222222222222222222222',
  62. },
  63. {
  64. product_name: '最最新新技术',
  65. market_username: '卖家1',
  66. username: '买家1',
  67. description: '222222222222222222222222222222',
  68. },
  69. ],
  70. };
  71. },
  72. created() {
  73. this.searchInfo();
  74. },
  75. methods: {
  76. ...product(['newquery']),
  77. async searchInfo() {
  78. // let res = await this.newquery({ skip: 0, limit: 6, totaltype: '0', status: '1' });
  79. // if (this.$checkRes(res)) {
  80. // this.$set(this, `list`, res.data);
  81. // }
  82. },
  83. },
  84. computed: {
  85. ...mapState(['user']),
  86. pageTitle() {
  87. return `${this.$route.meta.title}`;
  88. },
  89. },
  90. metaInfo() {
  91. return { title: this.$route.meta.title };
  92. },
  93. };
  94. </script>
  95. <style lang="less" scoped>
  96. .info {
  97. border-top: 1px solid #f5f5f5;
  98. .list {
  99. background: #fff;
  100. padding: 0 10px;
  101. border-bottom: 1px solid #ccc;
  102. p {
  103. font-size: 14px;
  104. color: #000;
  105. padding: 5px 0;
  106. }
  107. p:first-child {
  108. font-size: 16px;
  109. }
  110. p:nth-child(2) .ptwo {
  111. display: inline-block;
  112. width: 50%;
  113. }
  114. p:nth-child(2) .ptwo span:first-child {
  115. color: #ccc;
  116. }
  117. p:last-child span {
  118. color: #ccc;
  119. }
  120. }
  121. }
  122. </style>