You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
3.9 KiB

  1. <!-- 消息通知 -->
  2. <template>
  3. <view class="message">
  4. <mNavbar title="消息通知" :leftClick="leftClick"></mNavbar>
  5. <!-- 新人礼包 -->
  6. <view class="message-top content">
  7. <image src="/static/message/message-icon.png" mode="widthFix"></image>
  8. <view class="pack-descript">
  9. <view class="new-person">
  10. <view class="title">新人注册礼包</view>
  11. <view class="tag">活动</view>
  12. </view>
  13. <view class="desc">新人领券至高可领40元</view>
  14. </view>
  15. <view class="time-icon">
  16. <view class="time">刚刚</view>
  17. <view class="icon">
  18. <image src="/static/message/arrow.png" mode="aspectFill"></image>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 聊天列表 -->
  23. <view class="recover-list content">
  24. <view v-for="item in 10" class="recover-item">
  25. <view class="img-box">
  26. <image src="/favicon.ico" mode="aspectFill"></image>
  27. <view class="available-ervice">
  28. <image src="/static/message/lightning-icon.png" mode="aspectFill"></image>
  29. <text>可服务</text>
  30. </view>
  31. </view>
  32. <view class="recover-content">
  33. <view class="name">刘莓莓</view>
  34. <view class="msg">好的亲亲</view>
  35. </view>
  36. <view class="time">刚刚</view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import mNavbar from '@/components/base/m-navbar.vue'
  43. export default {
  44. components: {
  45. mNavbar
  46. },
  47. data() {
  48. return {
  49. }
  50. },
  51. methods: {
  52. //返回个人中心
  53. leftClick() {
  54. uni.switchTab({
  55. url: '/pages/index/center'
  56. })
  57. },
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .message {
  63. background: #f5f5f5;
  64. min-height: 100vh;
  65. .message-top {
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: center;
  69. image {
  70. width: 130rpx;
  71. height: 130rpx;
  72. }
  73. .pack-descript {
  74. width: calc(100% - 210rpx);
  75. height: 130rpx;
  76. display: flex;
  77. flex-direction: column;
  78. justify-content: center;
  79. .new-person {
  80. display: flex;
  81. .title{
  82. color: black;
  83. font-size: 28rpx;
  84. font-weight: bold;
  85. margin-right: 10rpx;
  86. }
  87. .tag{
  88. display: flex;
  89. align-items: center;
  90. background: #FBAB32;
  91. color: white;
  92. font-size: 20rpx;
  93. padding: 0rpx 10rpx;
  94. border-radius: 10rpx;
  95. }
  96. }
  97. .desc {
  98. font-size: 24rpx;
  99. color: #999999;
  100. margin-top: 10rpx;
  101. }
  102. }
  103. .time-icon {
  104. text-align: center;
  105. width: 60rpx;
  106. .time {
  107. font-size: 24rpx;
  108. color: #999999;
  109. }
  110. .icon {
  111. image {
  112. width: 25rpx;
  113. height: 25rpx;
  114. margin-top: 20rpx;
  115. }
  116. }
  117. }
  118. }
  119. .recover-list{
  120. .recover-item{
  121. display: flex;
  122. justify-content: space-between;
  123. align-items: center;
  124. padding-bottom: 20rpx;
  125. border-bottom: 2px dashed #D3D1D1;
  126. margin-top: 20rpx;
  127. .img-box{
  128. position: relative;
  129. width: 120rpx;
  130. height: 120rpx;
  131. box-sizing: border-box;
  132. border: 2px solid #F6BEC3;
  133. border-radius: 10rpx;
  134. image{
  135. width: 100%;
  136. height: 100%;
  137. border-radius: 10rpx;
  138. }
  139. .available-ervice{
  140. display: flex;
  141. align-items: center;
  142. justify-content: center;
  143. width: 120rpx;
  144. position: absolute;
  145. bottom: 0;
  146. left: 0;
  147. color: white;
  148. font-size: 20rpx;
  149. background: #F6BEC3;
  150. image{
  151. width: 15rpx;
  152. height: 15rpx;
  153. }
  154. }
  155. }
  156. .recover-content{
  157. display: flex;
  158. flex-direction: column;
  159. justify-content: center;
  160. width: calc(100% - 170rpx);
  161. box-sizing: border-box;
  162. padding-left: 15rpx;
  163. .name{
  164. color: #333333;
  165. font-size: 30rpx;
  166. font-weight: bold;
  167. }
  168. .msg{
  169. color: #999999;
  170. font-size: 20rpx;
  171. margin-top: 5rpx;
  172. }
  173. }
  174. .time{
  175. width: 50rpx;
  176. color: #999999;
  177. font-size: 24rpx;
  178. }
  179. }
  180. }
  181. .content {
  182. width: 96%;
  183. margin: 0rpx auto;
  184. }
  185. }
  186. </style>