negotiation.vue 3.4 KB

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