index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view style="padding: 20rpx;">
  3. <view v-for="(item, index) in list1" style="padding-bottom: 20rpx;">
  4. <navigator url="/pages2/msg/detail" class="item">
  5. <view style="display: flex;justify-content: space-between;align-items: center;height: 60rpx;" @click="openPopup(index)">
  6. <view style="color: #333333;font-size: 30rpx;font-weight: bold;display: flex;align-items: center;">
  7. <image :src="index==0?img1:img2" style="width: 40rpx;height: 40rpx;margin-right: 10rpx;"></image>系统通知
  8. </view>
  9. <view style="color: #999999;font-size: 24rpx;">2021/10/26 10:30:26</view>
  10. </view>
  11. <u-line color="#D6D6DB" />
  12. <view style="display: flex;justify-content: space-between;padding: 25rpx;color: #666666;">
  13. 这是一个通知标题这是一个通知标题这是一个通知
  14. 标题过长换行
  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. },
  30. data() {
  31. return {
  32. list: [
  33. {
  34. name: '待支付'
  35. },
  36. {
  37. name: '已支付'
  38. },
  39. {
  40. name: '已取消'
  41. }
  42. ],
  43. list1:[1,2,3,4,5,6,7],
  44. current: 0,
  45. img1:'/static/icon/msg_icon1.png',
  46. img2:'/static/icon/msg_icon2.png'
  47. };
  48. },
  49. onPullDownRefresh(){
  50. },
  51. onLoad(option) {
  52. },
  53. onShow() {
  54. /* if(this.current === 2 && this.$method.isLogin()){
  55. this.$refs.refMy.init();
  56. } */
  57. },
  58. onShareAppMessage(res) {
  59. var self = this;
  60. return {
  61. title: '中正',
  62. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  63. };
  64. },
  65. methods: {
  66. change(index){
  67. this.current = index;
  68. }
  69. },
  70. onReachBottom() {},
  71. computed: { ...mapGetters(['userInfo']) }
  72. };
  73. </script>
  74. <style >
  75. page {
  76. background: #EAEEF1;
  77. }
  78. </style>
  79. <style scoped>
  80. .btn2{
  81. width: 144rpx;
  82. height: 48rpx;
  83. background: #FFFFFF;
  84. border: 2rpx solid #007AFF;
  85. border-radius: 16rpx;
  86. text-align: center;
  87. line-height: 48rpx;
  88. color: #007AFF;
  89. margin: 0 8rpx;
  90. }
  91. .btn1{
  92. width: 144rpx;
  93. height: 48rpx;
  94. background: #FFFFFF;
  95. border: 2rpx solid #999999;
  96. border-radius: 16rpx;
  97. text-align: center;
  98. line-height: 48rpx;
  99. color: #999999;
  100. margin: 0 8rpx;
  101. }
  102. .item{
  103. background: #FFFFFF;
  104. border-radius: 16rpx;
  105. padding: 15rpx;
  106. }
  107. .priceTag{
  108. font-size: 30rpx;
  109. font-family: PingFang SC;
  110. font-weight: bold;
  111. color: #FF2D55;
  112. display: flex;
  113. flex-direction: row-reverse;
  114. }
  115. .bottomBox{
  116. position: fixed;
  117. bottom: 0;
  118. width: 100%;
  119. left: 0;
  120. height:98rpx ;
  121. background-color: #FFFFFF;
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. padding: 0 30rpx;
  126. }
  127. </style>