notice-users.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <view>
  3. <tui-skeleton v-if="isRequest" :loadingType="3" :isLoading="true" />
  4. <view class="container-main" v-else>
  5. <view class="clearfix">
  6. <!-- 空白页 -->
  7. <view class="empty-container" v-if="isEmpty">
  8. <image mode="aspectFill" class="empty_notice" src="@/static/tabBar/emtry_notice.png"></image>
  9. <text class="error-text">暂无任何消息~</text>
  10. </view>
  11. <!-- 列表 -->
  12. <view
  13. class="tui-notice"
  14. v-else
  15. v-for="(cell, index) in list"
  16. :key="index"
  17. @click.stop="handleOrderClick(cell)"
  18. >
  19. <tui-swipe-action :operateWidth="80" :backgroundColor="'#F7F7F7'">
  20. <template v-slot:content>
  21. <notice-cell :cellType="1" :cell="cell"></notice-cell>
  22. </template>
  23. <template v-slot:button>
  24. <view class="tui-custom-btn_box">
  25. <view class="tui-custom-btn" @click.stop="deleteBtn(cell.id, index)">
  26. <image src="@/static/tabBar/delete_notice.png" class="deleteImage" mode="aspectFill"></image>
  27. </view>
  28. </view>
  29. </template>
  30. </tui-swipe-action>
  31. </view>
  32. <!--加载loadding-->
  33. <!-- <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  34. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#F7F7F7'" :text="nomoreText"></tui-nomore> -->
  35. <!--加载loadding-->
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. isRequest: false,
  45. isEmpty: true
  46. };
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. page {
  52. background-color: #f7f7f7;
  53. }
  54. .container-main {
  55. width: 100%;
  56. box-sizing: border-box;
  57. padding: 24rpx 0;
  58. .empty-container {
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. justify-content: center;
  63. height: 60vh;
  64. }
  65. .empty_notice {
  66. width: 290rpx;
  67. height: 230rpx;
  68. }
  69. .error-text{
  70. color: #999999;
  71. font-size: 26rpx;
  72. }
  73. }
  74. .tui-notice {
  75. margin-bottom: 24rpx;
  76. }
  77. .tui-notice-cell {
  78. width: 702rpx;
  79. height: auto;
  80. background-color: #ffffff;
  81. border-radius: 16rpx;
  82. box-sizing: border-box;
  83. padding: 16rpx 24rpx;
  84. margin: 0 auto;
  85. .tui-cell-top {
  86. width: 100%;
  87. height: 88rpx;
  88. line-height: 88rpx;
  89. .cell-title {
  90. font-size: 32rpx;
  91. color: #333333;
  92. float: left;
  93. font-weight: bold;
  94. }
  95. .cell-time {
  96. font-size: 24rpx;
  97. color: #999999;
  98. float: right;
  99. }
  100. }
  101. .tui-cell-content {
  102. width: 100%;
  103. height: 160rpx;
  104. box-sizing: border-box;
  105. padding: 16rpx;
  106. border-radius: 8rpx;
  107. background-color: #f7f7f7;
  108. .cell-image {
  109. width: 128rpx;
  110. height: 128rpx;
  111. border-radius: 8rpx;
  112. float: left;
  113. image {
  114. width: 128rpx;
  115. height: 128rpx;
  116. display: block;
  117. border-radius: 8rpx;
  118. }
  119. }
  120. .cell-content {
  121. width: 490rpx;
  122. height: 100%;
  123. box-sizing: border-box;
  124. padding: 0 20rpx;
  125. line-height: 40rpx;
  126. font-size: 28rpx;
  127. color: #666666;
  128. text-align: justify;
  129. float: left;
  130. }
  131. }
  132. .tui-cell-bot {
  133. width: 100%;
  134. height: 80rpx;
  135. box-sizing: border-box;
  136. padding: 16rpx 0 0 0;
  137. .tui-cell-btn {
  138. width: 160rpx;
  139. height: 64rpx;
  140. border-radius: 35rpx;
  141. box-sizing: border-box;
  142. border: 1px solid #999999;
  143. text-align: center;
  144. line-height: 64rpx;
  145. font-size: 26rpx;
  146. color: #333333;
  147. float: right;
  148. margin-left: 24rpx;
  149. }
  150. }
  151. }
  152. .tui-custom-btn_box {
  153. width: 80px;
  154. height: 100%;
  155. box-sizing: border-box;
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. background-color: #f7f7f7;
  160. }
  161. .tui-custom-btn {
  162. width: 56rpx;
  163. height: 56rpx;
  164. border-radius: 50%;
  165. background-color: #f94b4b;
  166. color: #ffffff;
  167. display: flex;
  168. align-items: center;
  169. justify-content: center;
  170. flex-shrink: 0;
  171. .deleteImage{
  172. width: 56rpx;
  173. height: 56rpx;
  174. }
  175. }
  176. </style>