more.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="page">
  3. <view class="uni-list my_padding">
  4. <view class="uni-list-cell">
  5. <view class="uni-media-list uni-list-cell-navigate uni-navigate-right">
  6. <view class="uni-media-list-logo phto">
  7. <image :src="my.img" :lazy-load="true" />
  8. </view>
  9. <view class="uni-media-list-body">
  10. <view class="uni-media-list-text-top">{{my.title}}</view>
  11. <view class="uni-media-list-text-bottom uni-ellipsis">{{my.content}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="uni-card" v-for="(v,k) in list" :key="k">
  17. <view class="uni-list">
  18. <view class="uni-list-cell" hover-class="none" v-for="(value,key) in v" :key="key">
  19. <view class="uni-list-cell-navigate uni-navigate-right">
  20. <view style="width:100%">
  21. {{value.title}}
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="uni-card">
  28. <view class="uni-list">
  29. <view class="uni-list-cell" hover-class="none" v-for="(v,k) in chat_tool" :key="k">
  30. <view class="uni-list-cell-navigate">
  31. <view style="width:100%;text-align: center;">
  32. <view class="uni-media-list-logo">
  33. <image :src="v.logo" :lazy-load="true"></image>
  34. </view>
  35. {{v.title}}
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import uniBadge from '../../components/uni-badge/uni-badge.vue';
  45. import _get from '../../common/_get';
  46. import _hook from '../../common/_hook';
  47. export default {
  48. components: {
  49. uniBadge
  50. },
  51. data() {
  52. return {
  53. my: {
  54. title: "幸福",
  55. content: "能和心爱的人一起睡觉,是件幸福的事情;可是,打呼噜怎么办?",
  56. img: "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/shuijiao.jpg?imageView2/3/w/200/h/100/q/90"
  57. },
  58. list: [
  59. [
  60. {
  61. title: "设置备注和标签",
  62. },
  63. ],
  64. [
  65. {
  66. title: "朋友圈",
  67. img: "../../static/theme/default/my/images.png"
  68. },
  69. {
  70. title: "电话号码",
  71. },
  72. ],
  73. [
  74. {
  75. title: "更多消息",
  76. }
  77. ]
  78. ],
  79. chat_tool: [
  80. {
  81. logo: '../../static/theme/default/my/images.png',
  82. title: '发消息'
  83. },
  84. {
  85. logo: '../../static/theme/default/my/images.png',
  86. title: '音视频通话'
  87. },
  88. ]
  89. }
  90. },
  91. onShow(){
  92. _hook.routeSonHook();
  93. },
  94. methods: {
  95. },
  96. onNavigationBarButtonTap(e) {
  97. return;
  98. uni.showToast({
  99. title: 'action',
  100. icon: "none"
  101. })
  102. },
  103. }
  104. </script>
  105. <style>
  106. .uni-media-list-logo {
  107. width: 45upx;
  108. height: 45upx;
  109. margin-right: 10upx;
  110. display: inline-block;
  111. vertical-align:middle;
  112. }
  113. .phto {
  114. width: 130upx;
  115. height: 130upx;
  116. margin-left: 30upx;
  117. margin-right: 30upx;
  118. }
  119. .my_padding {
  120. padding-bottom: 25px;
  121. }
  122. .uni-card {
  123. box-shadow: none;
  124. }
  125. .my_padding:before {
  126. background-color:white;
  127. }
  128. </style>