info.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <u-navbar :autoBack="false" :placeholder="true" :safeAreaInsetTop="true" :bgColor="proxy.$settingStore.themeColor.color" @rightClick="rightButtonClick()">
  3. <template #left>
  4. <view class="u-nav-slot">
  5. <!-- <u-icon name="arrow-left" size="19" color="#fff" style="display: none"></u-icon> -->
  6. <view class="u-navbar__content__title" style="color: #fff">消息</view>
  7. </view>
  8. </template>
  9. <template #center>
  10. <view class="u-nav-slot"> </view>
  11. </template>
  12. <template #right>
  13. <view class="u-nav-slot">
  14. <u-icon name="plus" size="19" color="#fff" style="display: none"></u-icon>
  15. </view>
  16. </template>
  17. </u-navbar>
  18. <u-sticky style="top: 0px">
  19. <view class="padding-lr ptb10" :class="'bg-' + proxy.$settingStore.themeColor.name">
  20. <u--input placeholder="搜索" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" customStyle="height:35px;background-color:#f5f6fa;"></u--input>
  21. </view>
  22. </u-sticky>
  23. <scroll-view class="bg-white info-wrapper" scroll-y :style="`height: calc(100vh - (105px + ${proxy.$settingStore.barHightTop} + ${proxy.$settingStore.tabBarHeight}))`">
  24. <view class="uni-content-body">
  25. <view class="uni-list padding" @tap="goApplicationInfo()">
  26. <view class="uni-avatar">
  27. <image class="image-bg" src="@/static/images/common/applicationInfo.png" />
  28. </view>
  29. <view class="uni-content">
  30. <view class="uni-item">
  31. <view class="uni-item-cont text-dfl" style="color: #000000">应用消息</view>
  32. <!-- <view class="uni-item-right text-sm" style="color: #909399">5月15日</view> -->
  33. </view>
  34. <view class="flex uni-item">
  35. <view class="uni-item-cont text-df" style="color: #909399">您收到一条最新消息,请及时查看</view>
  36. <!-- <view class="uni-item-right text-df" style="margin: auto 0">
  37. <u-badge numberType="overflow" max="99" :value="1"></u-badge>
  38. </view> -->
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <!-- <view class="uni-content-body">
  44. <view class="uni-list padding" @tap="goFireBase()">
  45. <view class="uni-avatar">
  46. <image class="image-bg" src="@/static/images/info/fireBase.png" />
  47. </view>
  48. <view class="uni-content">
  49. <view class="uni-item">
  50. <view class="uni-item-cont text-dfl" style="color: #000000">消防知识库</view>
  51. <view class="uni-item-right text-sm" style="color: #909399">5月15日</view>
  52. </view>
  53. <view class="flex uni-item">
  54. <view class="uni-item-cont text-df" style="color: #909399">您收到一条最新消息,请及时查看</view>
  55. <view class="uni-item-right text-df" style="margin: auto 0">
  56. <u-badge numberType="overflow" max="99" :value="1"></u-badge>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view> -->
  62. </scroll-view>
  63. <oa-tabbar :tabbarValue="1"></oa-tabbar>
  64. </template>
  65. <script setup>
  66. import fireBase from "@/static/images/info/fireBase.png";
  67. import { onLoad, onShow, onHide, onLaunch } from "@dcloudio/uni-app";
  68. import { ref, onMounted, inject, shallowRef, reactive, getCurrentInstance, toRefs } from "vue";
  69. import {} from "@/api/mine/info.js";
  70. const { proxy } = getCurrentInstance();
  71. const data = reactive({
  72. indexBackgroundImage: fireBase,
  73. });
  74. const { indexBackgroundImage } = toRefs(data);
  75. function goApplicationInfo() {
  76. proxy.$tab.navigateTo("/pages/common/applicationInfo/index");
  77. }
  78. function goFireBase() {
  79. proxy.$tab.navigateTo("/pages/info/fireBase/fireBase");
  80. }
  81. function goPushList() {
  82. proxy.$tab.navigateTo("/pages/info/pushList/pushList");
  83. }
  84. onShow(() => {});
  85. onLoad((options) => {
  86. uni.hideTabBar(); //隐藏自带tabbar
  87. });
  88. </script>
  89. <style lang="scss" scoped>
  90. :deep(.u-navbar__content__left) {
  91. padding: 30upx;
  92. }
  93. .uni-list {
  94. display: flex;
  95. .uni-avatar {
  96. margin: auto 20upx auto 0;
  97. .image-bg {
  98. width: 32px;
  99. height: 32px;
  100. }
  101. }
  102. .uni-content {
  103. width: calc(100% - (32px + 0.625rem));
  104. .uni-item {
  105. display: flex;
  106. line-height: 25px;
  107. white-space: nowrap;
  108. .uni-item-cont {
  109. margin-right: auto;
  110. overflow: hidden;
  111. text-overflow: ellipsis;
  112. }
  113. .uni-item-right {
  114. width: auto;
  115. text-align: right;
  116. }
  117. }
  118. }
  119. }
  120. </style>