search.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view>
  3. <view class="cu-bar search bg-white">
  4. <view class=" flex align-center margin-left" @click="onBack()">
  5. <image class="p-left-arrow" src="/static/p-left-arrow.png"></image>
  6. </view>
  7. <view class="search-form round">
  8. <text class="cuIcon-search"></text>
  9. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" type="text"
  10. placeholder="搜索图片、文章、视频" confirm-type="search"></input>
  11. </view>
  12. <view class="action">
  13. <view class="text-16px make-text-bPurple" style="line-height: 32rpx;">搜索</view>
  14. </view>
  15. </view>
  16. <view class="cu-list menu-avatar margin-top">
  17. <view class="cu-item card-view" style="height: 180rpx;" v-for="(item, index) in 5" :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 v-if="index%2==0" class="cu-btn round make-lines-bPurple"
  39. style="width: 146rpx; right: 30rpx;">
  40. 添加</button>
  41. <button v-else class="cu-btn round bg-grey" style="width: 146rpx; right: 30rpx;">
  42. 已关注</button>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. }
  53. },
  54. methods: {
  55. onBack() {
  56. uni.navigateBack({
  57. delta: 1
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style>
  64. </style>