serviceNotice.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <template>
  2. <view class="supply-hall">
  3. <z-paging ref="paging" v-model="dataList" @query="queryList">
  4. <!-- <template slot="top">
  5. <view style="width: 100%; height: 50px; border-bottom: 1px solid #f1f1f1">
  6. <u-navbar
  7. @leftClick="leftClick"
  8. title="服务通知"
  9. bgColor="transparent"
  10. :autoBack="true"
  11. leftIconSize="20px"
  12. ></u-navbar>
  13. </view>
  14. </template> -->
  15. <view class="main" v-for="(item, index) in dataList" :key="index">
  16. <view class="item">
  17. <view class="right">
  18. <view>
  19. <view
  20. style="display: flex; flex-direction: row; justify-content: space-between"
  21. >
  22. <text class="title">
  23. {{ item.refTitle }}
  24. </text>
  25. <text>
  26. {{
  27. item.createTime ? $moment(item.createTime).format("YYYY-MM-DD") : ""
  28. }}
  29. </text>
  30. </view>
  31. <view class="contont">
  32. {{ item.content }}
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </z-paging>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. show: false,
  46. dataList: [],
  47. queryParams: {
  48. type: "3",
  49. toUserId: "",
  50. page: "1",
  51. size: "10",
  52. },
  53. };
  54. },
  55. mounted() {
  56. // #ifndef H5 || APP-PLUS || MP-ALIPAY
  57. const { windowHeight, screenHeight, safeArea, statusBarHeight } = uni.$u.sys(); // 获取页面高度
  58. let menuButtonObject = uni.getMenuButtonBoundingClientRect();
  59. let navHeight =
  60. menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2;
  61. this.statusBarHeight = navHeight + statusBarHeight + 4;
  62. let tabBarHeight = windowHeight - safeArea.bottom;
  63. this.bottomStatusHeight = screenHeight - this.statusBarHeight - tabBarHeight;
  64. // #endif
  65. },
  66. onLoad(option) {
  67. console.log("option", option);
  68. },
  69. onReady() {},
  70. methods: {
  71. leftClick() {
  72. uni.reLaunch({
  73. url: "/TUIKit/components/TUIConversation/index",
  74. });
  75. },
  76. queryList(pageNumber, pageSize) {
  77. this.queryParams.page = pageNumber;
  78. this.queryParams.size = pageSize;
  79. let dataList = [];
  80. this.$refs.paging.complete(dataList);
  81. this.api
  82. .noticeList(this.queryParams)
  83. .then((res) => {
  84. if (res.code === 200) {
  85. console.log("123213", res);
  86. this.$refs.paging.complete(res.data.content);
  87. this.api.readAll();
  88. }
  89. })
  90. .catch((res) => {
  91. this.$refs.paging.complete(false);
  92. });
  93. },
  94. },
  95. };
  96. </script>
  97. <style lang="scss" scoped>
  98. .popup ::v-deep .u-button {
  99. width: 100% !important;
  100. height: 38px !important;
  101. background: linear-gradient(87deg, #28d141 0%, #28ef8c 100%) !important;
  102. border: none !important;
  103. border-radius: 29rpx !important;
  104. font-size: 28rpx !important;
  105. font-weight: bold !important;
  106. margin-top: 30px;
  107. color: white;
  108. }
  109. .main {
  110. .item {
  111. display: flex;
  112. flex-direction: row;
  113. align-items: center;
  114. padding: 10px 20px;
  115. background: white;
  116. border-bottom: 1px solid #f1f1f1;
  117. .right {
  118. width: 100%;
  119. line-height: 25px;
  120. .contont {
  121. font-size: 26rpx;
  122. color: #333333;
  123. }
  124. .title {
  125. font-weight: 600;
  126. font-size: 36rpx;
  127. color: #333333;
  128. }
  129. }
  130. }
  131. }
  132. .supply-hall {
  133. width: 750rpx;
  134. height: 100vh;
  135. background-color: white;
  136. overflow: hidden;
  137. &-tabs {
  138. height: 70rpx;
  139. background-color: #ffffff;
  140. border-radius: 0rpx 0rpx 28rpx 28rpx;
  141. display: flex;
  142. justify-content: space-between;
  143. align-items: center;
  144. padding: 0rpx 24rpx;
  145. &-item {
  146. display: flex;
  147. align-items: center;
  148. }
  149. }
  150. &-screen {
  151. height: 70rpx;
  152. background-color: #ffffff;
  153. // border-radius: 0rpx 0rpx 28rpx 28rpx;
  154. display: flex;
  155. align-items: center;
  156. justify-content: space-around;
  157. position: relative;
  158. &-item {
  159. display: flex;
  160. align-items: center;
  161. }
  162. }
  163. }
  164. .ml6 {
  165. margin-left: 6rpx;
  166. }
  167. ::v-deep .supply-hall-search .u-input.data-v-113bc24f {
  168. background-color: #fff !important;
  169. box-sizing: border-box !important;
  170. border-radius: 33rpx !important;
  171. height: 64rpx !important;
  172. padding-right: 2rpx !important;
  173. }
  174. ::v-deep .popup-item .u-input.data-v-113bc24f {
  175. background-color: #fff !important;
  176. box-sizing: border-box !important;
  177. border-radius: 33rpx !important;
  178. height: 64rpx !important;
  179. padding-right: 2rpx !important;
  180. width: 200rpx !important;
  181. }
  182. ::v-deep .u-button--primary.data-v-2bf0e569 {
  183. width: 110rpx !important;
  184. height: 56rpx !important;
  185. background: linear-gradient(87deg, #28d141 0%, #28ef8c 100%) !important;
  186. border: none !important;
  187. border-radius: 29rpx !important;
  188. font-size: 28rpx !important;
  189. font-weight: bold !important;
  190. }
  191. </style>