main.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view>
  3. <uni-nav-bar id="nav-bar" status-bar="true" @clickLeft="onBack()" @clickRight="onNavSearchFriend()" title="我的好友" color="#000000" fixed="true"
  4. :border="false">
  5. <view slot="left">
  6. <view class=" flex align-center margin-left">
  7. <image class="p-left-arrow" src="../../../static/p-left-arrow.png"></image>
  8. </view>
  9. </view>
  10. <view slot="right">
  11. <view class=" flex align-center margin-left">
  12. <image class="p-left-arrow" src="../../../static/friend/add.png"></image>
  13. </view>
  14. </view>
  15. </uni-nav-bar>
  16. <view class="cu-list menu-avatar margin-top">
  17. <view class="cu-item card-view" style="height: 180rpx;" v-for="(item, index) in 10" :key="index">
  18. <view class="cu-avatar round lg"
  19. style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);">
  20. <view class="cu-tag badge">99+</view>
  21. </view>
  22. <view class="content" style="width: 360rpx;">
  23. <view class="text-grey">凯尔</view>
  24. <view class="text-gray text-sm flex">
  25. <view class="text-cut">
  26. <text class="cuIcon-infofill text-red margin-right-xs"></text>
  27. 我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。
  28. </view>
  29. </view>
  30. <view class="text-gray text-sm flex">
  31. <view class="text-cut">
  32. <text class="cuIcon-infofill text-red margin-right-xs"></text>
  33. 我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。
  34. </view>
  35. </view>
  36. </view>
  37. <view class="action" style="width: 160rpx; ">
  38. <button class="cu-btn round make-lines-bPurple" style="width: 146rpx; right: 30rpx;">
  39. 添加</button>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. }
  50. },
  51. methods: {
  52. onBack() {
  53. uni.navigateBack({
  54. delta: 1
  55. })
  56. },
  57. onNavSearchFriend(){
  58. uni.navigateTo({
  59. url:"../search/search"
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style>
  66. </style>