user_credit_item.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <div id="order_detailbox">
  3. <div class="order-infos">
  4. <div class="pays-info">
  5. <p>
  6. <span class="pays-title">当前状态:</span>
  7. <span>{{info.status_name}}</span>
  8. </p>
  9. <p>
  10. <span class="pays-title">购买时间:</span>
  11. <span>{{info.pay_time}}</span>
  12. </p>
  13. <p style="max-width: 400px">
  14. <span class="pays-title">技术信用报告项:</span>
  15. <span >{{info.items_name}}</span>
  16. </p>
  17. <p>
  18. <span class="pays-title">技术信用报告:</span>
  19. <span v-if="info.status==2"><a :href="info.report_url" style="color: #3c95ff">查看技术信用报告</a></span>
  20. <span v-else>暂未授权</span>
  21. </p>
  22. <p>
  23. <span class="pays-title">实际支付费用:</span>
  24. <span>{{(info.real_price/100).toFixed(2)}}元</span>
  25. </p>
  26. <p>
  27. <span class="pays-title">退款时间:</span>
  28. <span v-if="info.status==3">{{info.updated_at}}</span>
  29. <span v-else>--</span>
  30. </p>
  31. </div>
  32. </div>
  33. <a :href="info.user_url" target="blank" class="person-img">
  34. <img :src="info.icon_url" alt/>
  35. <p class="textc">{{info.nickname}}</p>
  36. </a>
  37. <div class="person-text">查看</div>
  38. <a :href="info.user_url" target="blank" class="person-img visited_user_avatar">
  39. <img :src="info.visited_icon_url" alt/>
  40. <p class="textc">{{info.visited_nickname}}</p>
  41. <el-button v-if="info.status==1" style="margin-top: 15px" @click="remind">提醒授权</el-button>
  42. </a>
  43. <!-- </section> -->
  44. </div>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. id: 0,
  51. info: []
  52. };
  53. },
  54. computed: {},
  55. mounted() {
  56. this.getFinanceList();
  57. },
  58. methods: {
  59. remind() {
  60. let body = {
  61. visited_uid: this.info.visited_uid
  62. };
  63. this.$post("/api/admin/user_credit/remind", body).then((res)=>{
  64. if (res.status==1){
  65. this.$message({
  66. message: '提醒成功',
  67. type: 'success'
  68. })
  69. }
  70. });
  71. },
  72. getUrlParam(name) {
  73. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  74. var r = window.location.search.substr(1).match(reg); //匹配目标参数
  75. if (r != null) return decodeURI(r[2]);
  76. return null; //返回参数值
  77. },
  78. changePageSize(pageSize) {
  79. this.currentPageSize = pageSize;
  80. },
  81. async getFinanceList() {
  82. let body = {
  83. id: this.id
  84. };
  85. const res = await this.$post("/api/admin/user_credit/getOrderDetail", body);
  86. this.info = res.data;
  87. }
  88. },
  89. created() {
  90. this.id = this.getUrlParam("id");
  91. }
  92. };
  93. </script>
  94. <style scoped>
  95. #order_detailbox {
  96. padding: 30px;
  97. font-size: 14px;
  98. }
  99. #order_detailbox h3 {
  100. /* font-size: 24px; */
  101. }
  102. #order_detailbox .lines {
  103. padding-top: 30px;
  104. display: block;
  105. border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  106. }
  107. #order_detailbox .icons-s {
  108. color: #5dc945;
  109. font-size: 34px;
  110. padding: 25px 0;
  111. vertical-align: middle;
  112. }
  113. #order_detailbox .icons-f {
  114. color: red;
  115. font-size: 34px;
  116. padding: 30px 0;
  117. vertical-align: middle;
  118. }
  119. .pays-info .pays-title {
  120. color: #1d2a3a;
  121. font-weight: bold;
  122. font-size: 15px;
  123. }
  124. .orange {
  125. color: rgba(255, 152, 0, 1);
  126. }
  127. .green {
  128. color: rgba(37, 155, 36, 1);
  129. }
  130. .font20 {
  131. font-size: 20px;
  132. }
  133. .pays-info > p,
  134. .pays-others > p {
  135. padding-bottom: 6px;
  136. }
  137. .pays-others h3 {
  138. padding-top: 20px;
  139. color: black;
  140. font-size: 16px;
  141. }
  142. .person-img {
  143. padding: 20px 30px;
  144. border: 1px solid rgba(0, 0, 0, 0.06);
  145. position: absolute;
  146. top: 50px;
  147. left: 600px;
  148. }
  149. .person-text {
  150. position: absolute;
  151. top: 120px;
  152. left: 746px;
  153. }
  154. .visited_user_avatar {
  155. left: 780px;
  156. }
  157. .person-img p {
  158. padding-top: 10px;
  159. }
  160. .person-img > img {
  161. width: 80px;
  162. border-radius: 50%;
  163. }
  164. </style>