expenses.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!--
  2. * @Description:
  3. * @Author: 欧阳承珺
  4. * @LastEditors: 欧阳承珺
  5. * @Date: 2022-11-01 19:27:42
  6. * @LastEditTime: 2022-11-11 17:41:37
  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-show="userInfo?.memberInfo.subscriberType === 1">会员尊享5G容量,</span>请在24小时内下载文件至本地永久保存
  15. </span>
  16. <span v-show="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. <client-only>
  32. <el-table :data="tableData">
  33. <el-table-column type="selection" width="40"></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. <el-table-column label="状态" ></el-table-column>
  39. <!-- 表格无数据显示 -->
  40. <div slot="empty">
  41. <div class="table-empty"></div>
  42. <p class="text-14px" style="color:rgba(0,0,0,0.54)">没有任何消费记录</p>
  43. <p class="leading-20px mt-8px mb-100px text-14px" style="color:rgba(0,0,0,0.38)">每一分钱都花在了刀刃上</p>
  44. </div>
  45. </el-table>
  46. </client-only>
  47. </div>
  48. </template>
  49. <script>
  50. import { mapState } from 'vuex'
  51. export default {
  52. layout: 'userCenter',
  53. middleware: ['auth','user'],
  54. data() {
  55. return {
  56. tableData:[]
  57. }
  58. },
  59. computed: {
  60. ...mapState([
  61. 'userInfo',
  62. ]),
  63. },
  64. }
  65. </script>
  66. <style lang="scss">
  67. .expenses-date-tips {
  68. display: flex;
  69. align-items: center;
  70. padding: 12px;
  71. 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%);
  72. border: 1px solid rgba(255, 79, 79, 0.2);
  73. border-radius: 12px;
  74. .text-container {
  75. display: flex;
  76. align-items: center;
  77. margin-left: 16px;
  78. img {
  79. margin-left: 8px;
  80. }
  81. }
  82. span {
  83. font-size: 14px;
  84. line-height: 24px;
  85. vertical-align: middle;
  86. }
  87. .text {
  88. display: inline-flex;
  89. align-items: center;
  90. }
  91. .tip {
  92. position: relative;
  93. font-size: 0;
  94. .tip-text {
  95. display: none;
  96. position: absolute;
  97. left: -3px;
  98. width: 258px;
  99. padding: 15px 14px 10px 10px;
  100. background: url('http://cn-file.17pdf.com/website/members/ic_tip.svg') left top no-repeat;
  101. background-size: auto 100%;
  102. font-size: 12px;
  103. line-height: 18px;
  104. color: #fff;
  105. border-radius: 4px;
  106. }
  107. &:hover .tip-text {
  108. display: block;
  109. }
  110. }
  111. }
  112. .btn {
  113. height: 30px;
  114. line-height: 28px;
  115. font-size: 12px;
  116. border-radius: 2px;
  117. display: inline-block;
  118. padding: 0px 9px 0px 33px;
  119. &-download {
  120. color: #fff;
  121. background: #FF4F4F url(http://cn-file.17pdf.com/website/members/ic_download.svg) no-repeat 8px center;
  122. margin-right: 7px;
  123. &_disabled {
  124. background-color: #FFA7A7;
  125. }
  126. }
  127. &-delete {
  128. border: 1px solid #d8d8d9;
  129. color: #666;
  130. background: url(http://cn-file.17pdf.com/website/members/ic_delete_normal.png) no-repeat 8px 5px;
  131. &_disabled {
  132. color: #ccc;
  133. border-color: #ccc;
  134. }
  135. }
  136. }
  137. .el-table {
  138. th {
  139. background-color: #f4f4f4 !important;
  140. font-size: 16px;
  141. color: #666666;
  142. font-weight: normal;
  143. }
  144. }
  145. .table-empty {
  146. margin-top: 50px;
  147. height: 200px;
  148. background: url(http://cn-file.17pdf.com/website/members/pic_noconsumption.png) no-repeat center center;
  149. }
  150. </style>