金诚优选前端代码
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.

210 lines
4.5 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="true" :showIcon="true" title="在线咨询"></lf-nav>
  4. <view class="cu-chat">
  5. <view class="cu-info round lf-m-t-30">客服在线时间10:0022:00请在工作时间内喜咨询</view>
  6. <view class="cu-item">
  7. <view class="lf-row-center lf-m-b-30 lf-font-24 lf-color-777">2021-09-01 18:38:24</view>
  8. <view class="self-main">
  9. <view class="cu-avatar radius">
  10. <image class="lf-w-100 lf-h-100 round-radius" src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill" ></image>
  11. </view>
  12. <view class="main">
  13. <view class="content shadow">
  14. 客服在线时间10:0022:00请在工作时间内喜咨询请在工作时间内喜咨询
  15. </view>
  16. </view>
  17. </view>
  18. <!-- <view class="date"> 2021-09-01 18:38:24</view> -->
  19. </view>
  20. <view class="cu-item self">
  21. <view class="lf-row-center lf-m-b-30 lf-font-24 lf-color-777">2021-09-01 18:38:24</view>
  22. <view class="self-main self-main1">
  23. <view class="main">
  24. <view class="content shadow">
  25. 客服在线时间
  26. </view>
  27. </view>
  28. <view class="cu-avatar radius">
  29. <image class="lf-w-100 lf-h-100 round-radius" src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill" ></image>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. }
  41. },
  42. methods: {
  43. apllyBind() {
  44. uni.showModal({
  45. title: '提示',
  46. content: '确认联系对方吗?',
  47. cancelText: '下次一定',
  48. confirmColor: '#E21196',
  49. success: function (res) {
  50. if (res.confirm) {
  51. console.log('用户点击确定');
  52. }
  53. }
  54. });
  55. }
  56. }
  57. }
  58. </script>
  59. <style>
  60. page{
  61. padding-bottom: 100upx;
  62. background-color: #F5F5F5;
  63. }
  64. </style>
  65. <style lang="scss" scoped="scoped">
  66. .self-main1 {
  67. display: flex;
  68. justify-content: flex-end;
  69. }
  70. .self-main {
  71. display: flex;
  72. }
  73. .round-radius {
  74. border-radius: 50%;
  75. }
  76. .cu-chat {
  77. display: flex;
  78. flex-direction: column;
  79. }
  80. .cu-chat .cu-item {
  81. display: flex;
  82. padding: 30upx;
  83. position: relative;
  84. flex-direction: column;
  85. }
  86. .cu-chat .cu-item>.self-main .cu-avatar {
  87. width: 80upx;
  88. height: 80upx;
  89. border-radius: 50%;
  90. }
  91. .cu-chat .cu-item>.self-main .main {
  92. max-width: calc(100% - 200rpx);
  93. margin: 0 40upx;
  94. display: flex;
  95. align-items: center;
  96. }
  97. .cu-chat .cu-item>image {
  98. height: 320upx;
  99. }
  100. .cu-chat .cu-item>.self-main .main .content {
  101. padding: 20upx;
  102. border-radius: 0 20rpx 20rpx 20rpx;
  103. display: inline-flex;
  104. max-width: 800rpx;
  105. align-items: center;
  106. font-size: 28upx;
  107. position: relative;
  108. min-height: 80upx;
  109. line-height: 40upx;
  110. text-align: left;
  111. display: flex;
  112. flex-direction: column;
  113. }
  114. .cu-chat .cu-item>.self-main .main .content:not([class*="bg-"]) {
  115. background-color: #15716E;
  116. color: white;
  117. }
  118. .cu-chat .cu-item .date {
  119. position: absolute;
  120. font-size: 24upx;
  121. color: #777;
  122. width: calc(100% - 320upx);
  123. bottom: 20upx;
  124. left: 160upx;
  125. }
  126. .cu-chat .cu-item .action {
  127. padding: 0 30upx;
  128. display: flex;
  129. align-items: center;
  130. }
  131. .cu-chat .cu-item>.self-main .main .content::after {
  132. content: "";
  133. top: 27upx;
  134. transform: rotate(45deg);
  135. position: absolute;
  136. z-index: 100;
  137. display: inline-block;
  138. overflow: hidden;
  139. width: 24upx;
  140. height: 24upx;
  141. left: -12upx;
  142. right: initial;
  143. background-color: inherit;
  144. }
  145. .cu-chat .cu-item.self>.self-main .main .content::after {
  146. left: auto;
  147. right: -12upx;
  148. }
  149. .cu-chat .cu-item>.self-main .main .content::before {
  150. content: "";
  151. top: 30upx;
  152. transform: rotate(45deg);
  153. position: absolute;
  154. z-index: -1;
  155. display: inline-block;
  156. overflow: hidden;
  157. width: 24upx;
  158. height: 24upx;
  159. left: -12upx;
  160. right: initial;
  161. background-color: inherit;
  162. filter: blur(5upx);
  163. opacity: 0.3;
  164. }
  165. .cu-chat .cu-item>.self-main .main .content:not([class*="bg-"])::before {
  166. background-color: #333333;
  167. opacity: 0.1;
  168. }
  169. .cu-chat .cu-item.self>.self-main .main .content::before {
  170. left: auto;
  171. right: -12upx;
  172. }
  173. .cu-chat .cu-item.self {
  174. justify-content: flex-end;
  175. text-align: right;
  176. }
  177. .cu-chat .cu-item.self .content {
  178. background-color: #E8F1F1!important;
  179. color: #222!important;
  180. }
  181. .cu-chat .cu-info {
  182. display: inline-block;
  183. margin: 20upx auto;
  184. font-size: 24rpx;
  185. padding: 20upx 80rpx;
  186. background-color: #15716E;
  187. border-radius: 6upx;
  188. color: #ffffff;
  189. max-width: 100%;
  190. line-height: 1.4;
  191. }
  192. </style>