index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="container">
  3. <view class="list-cell b-b m-t" hover-class="cell-hover" :hover-stay-time="50">
  4. <u-row gutter="12" justify="start">
  5. <u-col span="2">
  6. <img
  7. class="list_img"
  8. src="https://web-assets.fancynode.com.cn/web_v1/images/pxcook/features/icon-cloud.png"
  9. alt
  10. />
  11. </u-col>
  12. <u-col span="7">
  13. <p class="tit_title">
  14. <img
  15. src="https://web-assets.fancynode.com.cn/web_v1/images/pxcook/features/icon-cloud.png"
  16. alt
  17. />
  18. 在线客服
  19. </p>
  20. <p class="tit_tips">查看回复客服的消息</p>
  21. </u-col>
  22. <u-col span="3">
  23. <text class="cell-more">
  24. <p class="msgTime">2020-12-12</p>
  25. <span class="redBox">55</span>
  26. </text>
  27. </u-col>
  28. </u-row>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import { mapMutations } from "vuex";
  34. export default {
  35. data() {
  36. return {};
  37. },
  38. methods: {
  39. ...mapMutations(["logout"]),
  40. }
  41. };
  42. </script>
  43. <style scoped lang='scss'>
  44. .msgTime {
  45. font-size: 13px;
  46. }
  47. page {
  48. background: $page-color-base;
  49. }
  50. .list_img {
  51. width: 100%;
  52. height: 100%;
  53. vertical-align: middle;
  54. border-radius: 0.4em;
  55. }
  56. .qicon {
  57. text-align: center;
  58. display: block;
  59. font-size: 20px;
  60. }
  61. .redBox {
  62. padding: 10rpx 12rpx;
  63. display: inline-block;
  64. text-align: center;
  65. font-size: 12px;
  66. line-height: 1em;
  67. width: 1em;
  68. height: 1em;
  69. background: #ed6533;
  70. border-radius: 50%;
  71. color: #fff;
  72. }
  73. .tit_title,
  74. .tit_tips {
  75. margin-left: 8rpx;
  76. }
  77. .tit_title {
  78. color: $u-main-color;
  79. > img {
  80. vertical-align: middle;
  81. margin-right: 10rpx;
  82. width: 40rpx;
  83. height: 40rpx;
  84. }
  85. }
  86. .tit_tips {
  87. color: $u-tips-color;
  88. }
  89. .list-cell {
  90. align-items: baseline;
  91. padding: 20rpx 30rpx;
  92. line-height: 60rpx;
  93. position: relative;
  94. background: #fff;
  95. justify-content: center;
  96. &.log-out-btn {
  97. margin-top: 40rpx;
  98. .cell-tit {
  99. color: $uni-color-primary;
  100. text-align: center;
  101. margin-right: 0;
  102. }
  103. }
  104. &.cell-hover {
  105. background: #fafafa;
  106. }
  107. &.b-b:after {
  108. left: 30rpx;
  109. }
  110. &.m-t {
  111. margin-top: 16rpx;
  112. }
  113. .cell-more {
  114. text-align: right;
  115. margin-top: 10rpx;
  116. height: 60rpx;
  117. display: flex;
  118. justify-content: center; //这个是X轴居中
  119. align-items: center; //这个是 Y轴居中
  120. align-self: baseline;
  121. font-size: $font-lg;
  122. color: $font-color-light;
  123. margin-left: 10rpx;
  124. }
  125. .cell-tit {
  126. flex: 1;
  127. font-size: $font-base + 2rpx;
  128. color: $font-color-dark;
  129. margin-right: 10rpx;
  130. }
  131. .cell-tip {
  132. font-size: $font-base;
  133. color: $font-color-light;
  134. }
  135. }
  136. </style>