service.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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" @click="toChat">
  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. toChat(){
  36. uni.navigateTo({
  37. url:"/pages/service/chat"
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .content{
  45. position: fixed;
  46. z-index: 1;
  47. top: 0;
  48. left: 0;
  49. bottom: 0;
  50. right: 0;
  51. background-color: #ededed;
  52. display: flex;
  53. flex-direction: column;
  54. }
  55. .service-header{
  56. background-color: $main-color;
  57. padding: 20rpx;
  58. .tips{
  59. color: $main-sub-color;
  60. font-size: 28rpx;line-height: 48rpx;
  61. }
  62. .title{
  63. font-size: 46rpx;
  64. color: #fff;
  65. font-weight: 900;
  66. margin: 10rpx 0;
  67. }
  68. }
  69. .service-body{
  70. height: 0;
  71. flex: 1;
  72. .body-list{
  73. width: 95%;
  74. margin: 20rpx auto;
  75. .title {
  76. .title-tips{
  77. color: $main-color;
  78. font-weight: 700;
  79. font-size: 24rpx;
  80. text-transform: uppercase;
  81. }
  82. .name {
  83. font-size: 38rpx;
  84. color: #333;
  85. font-weight: 900;
  86. }
  87. }
  88. .list-service {
  89. .service-item{
  90. display: flex;
  91. align-items: center;
  92. background-color: #fff;
  93. border-radius: 20rpx;
  94. margin-top: 20rpx;
  95. padding: 20rpx;
  96. gap: 20rpx;
  97. image {
  98. width: 100rpx;
  99. height: 100rpx;
  100. border-radius: 10rpx;
  101. border: 2rpx solid #f8f8f8;
  102. }
  103. .name {
  104. font-size: 32rpx;
  105. font-weight: 600;
  106. color: #333;
  107. }
  108. .desc {
  109. color: $main-text-color;
  110. font-size: 26rpx;
  111. margin-top: 10rpx;
  112. }
  113. .time {
  114. margin-left: auto;
  115. margin-right: 0;
  116. color: $main-text-color;
  117. font-size: 26rpx;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. </style>