index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="my">
  3. <view class="news">
  4. <view class="private">
  5. <view class="avatar"><image></image></view>
  6. <view class="info">
  7. <text>天天天</text>
  8. <text>156*****7654</text>
  9. </view>
  10. </view>
  11. <pv-image imgSrc="/playVideo/video/ic_more_white.png" width="32" height="32"></pv-image>
  12. </view>
  13. <view class="menu">
  14. <view class="menu_item">
  15. <view class="name">
  16. <pv-image imgSrc="/playVideo/video/ic-jilu.png" width="48" height="48"></pv-image>
  17. <text>观看历史</text>
  18. </view>
  19. <pv-image imgSrc="/playVideo/video/ic_more_black.png" width="24" height="24"></pv-image>
  20. </view>
  21. <view class="menu_item">
  22. <view class="name">
  23. <pv-image imgSrc="/playVideo/video/ic-kefu.png" width="48" height="48"></pv-image>
  24. <text>联系客服</text>
  25. </view>
  26. <pv-image imgSrc="/playVideo/video/ic_more_black.png" width="24" height="24"></pv-image>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .my{
  37. height: 100%;
  38. background: linear-gradient( 172deg, #216CFF 0%, #C7F0FF 36%, #E1FAFF 100%);
  39. display: flex;
  40. flex-direction: column;
  41. .news{
  42. padding: 32rpx 32rpx 48rpx;
  43. display: flex;
  44. justify-content: space-between;
  45. align-items: center;
  46. .private{
  47. display: flex;
  48. .avatar{
  49. width: 104rpx;
  50. height: 104rpx;
  51. background: #21FFFA;
  52. margin-right: 24rpx;
  53. image{
  54. width: 100%;
  55. height: 100%;
  56. border-radius: 50%;
  57. }
  58. }
  59. .info{
  60. color: #fff;
  61. display: flex;
  62. flex-direction: column;
  63. justify-content: space-around;
  64. }
  65. }
  66. }
  67. .menu{
  68. padding: 24rpx 32rpx;
  69. flex: 1;
  70. background: #fff;
  71. border-radius: 24rpx 24rpx 0 0;
  72. .menu_item{
  73. padding: 32rpx 28rpx 32rpx 24rpx;
  74. display: flex;
  75. justify-content: space-between;
  76. align-items: center;
  77. border-bottom: 2rpx solid #F0F2F4;
  78. .name{
  79. display: flex;
  80. align-items: center;
  81. text{
  82. margin-left: 20rpx;
  83. font-size: 28rpx;
  84. }
  85. }
  86. }
  87. .menu_item:nth-last-child(1){
  88. border: none;
  89. }
  90. }
  91. }
  92. </style>