infoSalary.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="content">
  3. <view class="main">
  4. <view class="main-item flex" v-for="(item,index) in 10">
  5. <view class="main-left">
  6. <view class="main-title">
  7. 标题
  8. </view>
  9. <view class="main-time">
  10. 2019-06-09 13:00:00
  11. </view>
  12. </view>
  13. <view class="main-right">
  14. ¥200
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. type: ''
  25. };
  26. },
  27. onLoad(option) {
  28. this.type = option.type;
  29. if (option.type == 1) {
  30. uni.setNavigationBarTitle({
  31. title: '扣款记录'
  32. });
  33. } else if (option.type == 2) {
  34. uni.setNavigationBarTitle({
  35. title: '奖励记录'
  36. });
  37. } else {
  38. uni.setNavigationBarTitle({
  39. title: '其他记录'
  40. });
  41. }
  42. },
  43. onShow() {},
  44. onReachBottom() {},
  45. onReady() {},
  46. methods: {}
  47. };
  48. </script>
  49. <style lang="scss">
  50. page,
  51. .content {
  52. min-height: 100%;
  53. height: auto;
  54. }
  55. .main {
  56. margin-top: 20rpx;
  57. background: #ffffff;
  58. padding: 0 32rpx;
  59. .main-item {
  60. padding: 28rpx 0 22rpx;
  61. border-bottom: 1px solid #F0F0F0;
  62. .main-left {
  63. line-height: 1;
  64. .main-title {
  65. font-size: 30rpx;
  66. font-family: PingFang SC;
  67. font-weight: bold;
  68. color: #333333;
  69. }
  70. .main-time {
  71. margin-top: 20rpx;
  72. font-size: 22rpx;
  73. font-family: PingFang SC;
  74. font-weight: 500;
  75. color: #999999;
  76. }
  77. }
  78. .main-right {
  79. font-size: 34rpx;
  80. font-family: PingFang SC;
  81. font-weight: bold;
  82. color: #FF0000;
  83. }
  84. }
  85. }
  86. </style>