index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view style="padding: 20rpx;">
  3. <view v-for="(item, index) in listData" :key="index" style="padding-bottom: 20rpx;">
  4. <navigator :url="`/pages2/msg/detail?id=${item.id}`" class="item" :style="item.receiptStatus === 1 ? 'opacity: 0.7' : ''">
  5. <view style="display: flex;justify-content: space-between;align-items: center;height: 60rpx;">
  6. <view style="color: #333333;font-size: 30rpx;font-weight: bold;display: flex;align-items: center;">
  7. <image :src="item.systemStatus === 1 ? img1 : img2" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;"></image>
  8. 系统通知
  9. </view>
  10. <view style="color: #999999;font-size: 24rpx;">{{ $method.timestampToTime(item.sendTime, false) }}</view>
  11. </view>
  12. <u-line color="#D6D6DB" />
  13. <view style="display: flex;justify-content: space-between;padding: 25rpx;color: #666666;">{{ item.informVo.informName }}</view>
  14. <u-line color="#D6D6DB" />
  15. <view style="display: flex;justify-content: space-between;align-items: center;height: 50rpx;margin-top: 10rpx;padding: 0 25rpx;">
  16. <view class="color: #333333;font-size: 28rpx;">查看详情</view>
  17. <view><u-icon name="arrow-right" color="#999999" size="28"></u-icon></view>
  18. </view>
  19. </navigator>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import { mapGetters } from 'vuex';
  25. export default {
  26. components: {},
  27. data() {
  28. return {
  29. list: [
  30. {
  31. name: '待支付'
  32. },
  33. {
  34. name: '已支付'
  35. },
  36. {
  37. name: '已取消'
  38. }
  39. ],
  40. list1: [1, 2, 3, 4, 5, 6, 7],
  41. current: 0,
  42. img1: '/static/icon/msg_icon1.png',
  43. img2: '/static/icon/msg_icon2.png',
  44. listData: []
  45. };
  46. },
  47. onPullDownRefresh() {
  48. this.$api.getappinformUserlist().then(res => {
  49. if (res.data.code === 200) {
  50. this.listData = res.data.rows;
  51. }
  52. }).finally(()=>{
  53. uni.stopPullDownRefresh()
  54. })
  55. },
  56. onLoad(option) {},
  57. onShow() {
  58. this.getInfo();
  59. },
  60. onShareAppMessage(res) {
  61. var self = this;
  62. return {
  63. title: '中正',
  64. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  65. };
  66. },
  67. methods: {
  68. getInfo() {
  69. this.$api.getappinformUserlist().then(res => {
  70. if (res.data.code === 200) {
  71. this.listData = res.data.rows;
  72. }
  73. });
  74. }
  75. },
  76. onReachBottom() {},
  77. computed: { ...mapGetters(['userInfo']) }
  78. };
  79. </script>
  80. <style>
  81. page {
  82. background: #eaeef1;
  83. }
  84. </style>
  85. <style scoped>
  86. .btn2 {
  87. width: 144rpx;
  88. height: 48rpx;
  89. background: #ffffff;
  90. border: 2rpx solid #007aff;
  91. border-radius: 16rpx;
  92. text-align: center;
  93. line-height: 48rpx;
  94. color: #007aff;
  95. margin: 0 8rpx;
  96. }
  97. .btn1 {
  98. width: 144rpx;
  99. height: 48rpx;
  100. background: #ffffff;
  101. border: 2rpx solid #999999;
  102. border-radius: 16rpx;
  103. text-align: center;
  104. line-height: 48rpx;
  105. color: #999999;
  106. margin: 0 8rpx;
  107. }
  108. .item {
  109. background: #ffffff;
  110. border-radius: 16rpx;
  111. padding: 15rpx;
  112. }
  113. .priceTag {
  114. font-size: 30rpx;
  115. font-family: PingFang SC;
  116. font-weight: bold;
  117. color: #ff2d55;
  118. display: flex;
  119. flex-direction: row-reverse;
  120. }
  121. .bottomBox {
  122. position: fixed;
  123. bottom: 0;
  124. width: 100%;
  125. left: 0;
  126. height: 98rpx;
  127. background-color: #ffffff;
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. padding: 0 30rpx;
  132. }
  133. </style>