index.vue 3.2 KB

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