详情小程序
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.

79 lines
1.7 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view class="content">
  3. <view class="list" v-for="(item, index) in list" :key="index" @click="$url(item.path)" hover-class="lf-opacity">
  4. <view class="icon" :style="{'background': item.bg_color}">
  5. <text class="lf-iconfont lf-font-50" :class="item.icon"></text>
  6. </view>
  7. <view class="lf-row-between" style="width: 556rpx;">
  8. <view>
  9. <view class="lf-font-32 lf-color-222">{{ item.title }}</view>
  10. <view class="lf-m-t-10 lf-font-28 lf-color-777">{{ item.desc }}</view>
  11. </view>
  12. <view>
  13. <text class="lf-iconfont icon-xiangyou lf-color-999"></text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data(){
  22. return {
  23. list: [{
  24. title: '消息订阅',
  25. desc: '关闭后将错过不少缘分',
  26. icon: 'icon-pinglun',
  27. bg_color: '#409EEC',
  28. path: '',
  29. unread_count: 0
  30. },{
  31. title: '联系过的人',
  32. desc: '去看看哪些人联系过了',
  33. icon: 'icon-contact-person',
  34. bg_color: '#FE3EA5',
  35. path: '',
  36. unread_count: 0
  37. },{
  38. title: '系统消息',
  39. desc: '查看官方消息',
  40. icon: 'icon-tongzhi',
  41. bg_color: '#FE7B43',
  42. path: '/pages/messageCenter/system',
  43. unread_count: 0
  44. }]
  45. }
  46. },
  47. onLoad(){
  48. },
  49. methods: {
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped="scoped">
  54. .content{
  55. padding: 0 32rpx;
  56. width: 750rpx;
  57. height: max-content;
  58. box-sizing: border-box;
  59. .list{
  60. padding: 30rpx 0;
  61. border-bottom: 1rpx solid #e5e5e5;
  62. display: flex;
  63. .icon{
  64. width: 120rpx;
  65. height: 120rpx;
  66. border-radius: 50%;
  67. margin-right: 15rpx;
  68. color: #FFFFFF;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. }
  74. }
  75. </style>