service.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="content">
  3. <view class="service-header">
  4. <view class="tips">欢迎来到奥莱优品</view>
  5. <view class="title">需要一点帮助?</view>
  6. <view class="tips">售前、售后问题,随时为您解答</view>
  7. </view>
  8. <scroll-view class="service-body" scroll-y scroll-with-animation>
  9. <view class="body-list">
  10. <view class="title">
  11. <view class="title-tips">Message center</view>
  12. <view class="name">聊天列表</view>
  13. </view>
  14. <view class="list-service">
  15. <view class="service-item">
  16. <view class="avatar"><image src="/static/logo.jpg"></image></view>
  17. <view class="info">
  18. <view class="name">桃奢妍奥莱城</view>
  19. <view class="desc">[订单消息]</view>
  20. </view>
  21. <view class="time">今天</view>
  22. </view>
  23. </view>
  24. </view>
  25. </scroll-view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .content{
  40. position: fixed;
  41. z-index: 1;
  42. top: 0;
  43. left: 0;
  44. bottom: 0;
  45. right: 0;
  46. background-color: #ededed;
  47. display: flex;
  48. flex-direction: column;
  49. }
  50. .service-header{
  51. background-color: $main-color;
  52. padding: 20rpx;
  53. .tips{
  54. color: $main-sub-color;
  55. font-size: 28rpx;line-height: 48rpx;
  56. }
  57. .title{
  58. font-size: 46rpx;
  59. color: #fff;
  60. font-weight: 900;
  61. margin: 10rpx 0;
  62. }
  63. }
  64. .service-body{
  65. height: 0;
  66. flex: 1;
  67. .body-list{
  68. width: 95%;
  69. margin: 20rpx auto;
  70. .title {
  71. .title-tips{
  72. color: $main-color;
  73. font-weight: 700;
  74. font-size: 24rpx;
  75. text-transform: uppercase;
  76. }
  77. .name {
  78. font-size: 38rpx;
  79. color: #333;
  80. font-weight: 900;
  81. }
  82. }
  83. .list-service {
  84. .service-item{
  85. display: flex;
  86. align-items: center;
  87. background-color: #fff;
  88. border-radius: 20rpx;
  89. margin-top: 20rpx;
  90. padding: 20rpx;
  91. gap: 20rpx;
  92. image {
  93. width: 100rpx;
  94. height: 100rpx;
  95. border-radius: 10rpx;
  96. border: 2rpx solid #f8f8f8;
  97. }
  98. .name {
  99. font-size: 32rpx;
  100. font-weight: 600;
  101. color: #333;
  102. }
  103. .desc {
  104. color: $main-text-color;
  105. font-size: 26rpx;
  106. margin-top: 10rpx;
  107. }
  108. .time {
  109. margin-left: auto;
  110. margin-right: 0;
  111. color: $main-text-color;
  112. font-size: 26rpx;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. </style>