expenses.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!--
  2. * @Description:
  3. * @Author: 欧阳承珺
  4. * @LastEditors: 欧阳承珺
  5. * @Date: 2022-11-01 19:27:42
  6. * @LastEditTime: 2022-11-16 13:38:06
  7. -->
  8. <template>
  9. <div>
  10. <div class="expenses-date-tips flex content-center py-6px ">
  11. <img src="http://cn-file.17pdf.com/website/common/ic_notice.svg" class="align-middle">
  12. <div class="text-container">
  13. <span class="text">
  14. 转档后的文件支持在云端保留24小时,<span v-if="userInfo?.memberInfo?.subscriberType === 1">会员尊享5G容量,</span>请在24小时内下载文件至本地永久保存
  15. </span>
  16. <span v-if="userInfo?.memberInfo?.subscriberType === 1" class="vip tip">
  17. <img src="http://cn-file.17pdf.com/website/common/ic_info.svg" alt="">
  18. <div class="tip-text">
  19. 若已有文件大小超出5G,将按转档时间计算(从最近一次转档往过去推算),即保留最近的5G容量文件,超出部分文件将不再保留
  20. </div>
  21. </span>
  22. </div>
  23. </div>
  24. <div class="py-15px">
  25. <p class="text-[20px] leading-28px text-[#333]">我的转档</p>
  26. <div class="mt-10px mb-16px">
  27. <button class="btn btn-download">下载</button>
  28. <button class="btn btn-delete">删除</button>
  29. </div>
  30. </div>
  31. <el-table :data="tableData">
  32. <el-table-column type="selection" width="40"></el-table-column>
  33. <el-table-column label="格式转换" ></el-table-column>
  34. <el-table-column label="目标文件" ></el-table-column>
  35. <el-table-column label="文件大小" ></el-table-column>
  36. <el-table-column label="消耗券数" ></el-table-column>
  37. <el-table-column label="状态" ></el-table-column>
  38. <!-- 表格无数据显示 -->
  39. <div slot="empty">
  40. <div class="table-empty"></div>
  41. <p class="text-14px" style="color:rgba(0,0,0,0.54)">没有任何消费记录</p>
  42. <p class="leading-20px mt-8px mb-100px text-14px" style="color:rgba(0,0,0,0.38)">每一分钱都花在了刀刃上</p>
  43. </div>
  44. </el-table>
  45. </div>
  46. </template>
  47. <script>
  48. import { mapState } from 'vuex'
  49. export default {
  50. layout: 'userCenter',
  51. middleware: ['auth','user'],
  52. data() {
  53. return {
  54. tableData:[]
  55. }
  56. },
  57. computed: {
  58. ...mapState([
  59. 'userInfo',
  60. ]),
  61. },
  62. }
  63. </script>
  64. <style lang="scss">
  65. .expenses-date-tips {
  66. display: flex;
  67. align-items: center;
  68. padding: 12px;
  69. background: linear-gradient(90deg, #FFFAFA 10.37%, rgba(255, 243, 243, 0) 91.75%), linear-gradient(90deg, #FFF2F6 2.26%, rgba(255, 242, 246, 0.21) 101.41%);
  70. border: 1px solid rgba(255, 79, 79, 0.2);
  71. border-radius: 12px;
  72. .text-container {
  73. display: flex;
  74. align-items: center;
  75. margin-left: 16px;
  76. img {
  77. margin-left: 8px;
  78. }
  79. }
  80. span {
  81. font-size: 14px;
  82. line-height: 24px;
  83. vertical-align: middle;
  84. }
  85. .text {
  86. display: inline-flex;
  87. align-items: center;
  88. }
  89. .tip {
  90. position: relative;
  91. font-size: 0;
  92. .tip-text {
  93. display: none;
  94. position: absolute;
  95. left: -3px;
  96. width: 258px;
  97. padding: 15px 14px 10px 10px;
  98. background: url('http://cn-file.17pdf.com/website/members/ic_tip.svg') left top no-repeat;
  99. background-size: auto 100%;
  100. font-size: 12px;
  101. line-height: 18px;
  102. color: #fff;
  103. border-radius: 4px;
  104. }
  105. &:hover .tip-text {
  106. display: block;
  107. }
  108. }
  109. }
  110. .btn {
  111. height: 30px;
  112. line-height: 28px;
  113. font-size: 12px;
  114. border-radius: 2px;
  115. display: inline-block;
  116. padding: 0px 9px 0px 33px;
  117. &-download {
  118. color: #fff;
  119. background: #FF4F4F url(http://cn-file.17pdf.com/website/members/ic_download.svg) no-repeat 8px center;
  120. margin-right: 7px;
  121. &_disabled {
  122. background-color: #FFA7A7;
  123. }
  124. }
  125. &-delete {
  126. border: 1px solid #d8d8d9;
  127. color: #666;
  128. background: url(http://cn-file.17pdf.com/website/members/ic_delete_normal.png) no-repeat 8px 5px;
  129. &_disabled {
  130. color: #ccc;
  131. border-color: #ccc;
  132. }
  133. }
  134. }
  135. .el-table {
  136. th {
  137. background-color: #f4f4f4 !important;
  138. font-size: 16px;
  139. color: #666666;
  140. font-weight: normal;
  141. }
  142. }
  143. .table-empty {
  144. margin-top: 50px;
  145. height: 200px;
  146. background: url(http://cn-file.17pdf.com/website/members/pic_noconsumption.png) no-repeat center center;
  147. }
  148. </style>