commissionRecord.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!--
  2. * @Author: your name
  3. * @Date: 2021-03-18 14:43:45
  4. * @LastEditTime: 2021-03-18 15:01:03
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \rebatedine-mini\src\pagesSub\commission\commissionRecord.vue
  8. -->
  9. <template>
  10. <view class="main">
  11. <network-error />
  12. <scroll-view class="list">
  13. <view v-for="(item,index) in list"
  14. :key="index"
  15. class="item">
  16. <view class="item-content">
  17. <view class="item-content-left">
  18. <image class="avatar"
  19. :src="item.head_url"></image>
  20. <text class="name">{{item.nick_name}}</text>
  21. </view>
  22. <text class="time">{{item.created_at}}</text>
  23. </view>
  24. <view class="gap"></view>
  25. </view>
  26. </scroll-view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data () {
  32. return {
  33. list: [{
  34. created_at: '2020-11-30 23:11:11',
  35. nick_name: 'Grace'
  36. }, {
  37. created_at: '2020-11-30 23:11:11',
  38. nick_name: 'Grace'
  39. }]
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .list {
  46. width: 100%;
  47. height: 100%;
  48. }
  49. .item {
  50. background-color: white;
  51. &-content {
  52. padding: 32rpx;
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. &-left {
  57. display: flex;
  58. align-items: center;
  59. .avatar {
  60. background-image: url(~@/static/icon/avatar.png);
  61. background-size: 100%;
  62. width: 72rpx;
  63. height: 72rpx;
  64. }
  65. .name {
  66. font-size: 30rpx;
  67. color: #212121;
  68. font-weight: 400;
  69. margin-left: 16rpx;
  70. }
  71. }
  72. .time {
  73. font-size: 22rpx;
  74. color: #767778;
  75. font-weight: 400;
  76. }
  77. }
  78. .gap {
  79. height: 2rpx;
  80. width: 100%;
  81. background-color: #eaebec;
  82. margin-left: 32rpx;
  83. }
  84. }
  85. </style>