wdgz.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="">
  3. <view class="inbddwwer">
  4. <view class="fzctob inbddwddre">
  5. <image src="/static/index/ina1.png"
  6. style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
  7. <input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
  8. placeholder="搜索你感兴趣的内容" v-model="search" @confirm="searchList" />
  9. </view>
  10. </view>
  11. <view style="margin-top: 30rpx;">
  12. <view class="fzctob wdlbgt" v-for="(item1,index1) in list" :key="index1">
  13. <image :src="item1.img"
  14. style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
  15. <view class="flztoa wdkkjruy">
  16. <view class="fsxto">
  17. <text class="wdtxtut">{{item1.title}}</text>
  18. <view class="fzctob wdtxtuta">
  19. <text v-for="(item2,index2) in item2.tag" :key="index1">{{item}}</text>
  20. </view>
  21. <view class="fzctob wdtxtutb">
  22. <image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;"
  23. mode=""></image>
  24. <text>{{item1.city}}</text>
  25. </view>
  26. </view>
  27. <view class="fzddrew">
  28. <image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;"
  29. mode=""></image>
  30. <view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
  31. <text class="wdjga">¥</text>
  32. <text class="wdjgb">{{item1.price}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <style>
  41. page {
  42. background: #FAFAFA;
  43. }
  44. </style>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. page: 1,
  50. num: 20,
  51. list:[],
  52. search:''
  53. }
  54. },
  55. onLoad() {
  56. this.getlist();
  57. },
  58. methods: {
  59. //获取关注列表
  60. getlist() {
  61. let that = this;
  62. let user_id = uni.getStorageSync('id');
  63. this.$post({
  64. data: {
  65. do: 'LecturerFollowList',
  66. data: {
  67. page: that.page,
  68. num: that.num,
  69. user_id: user_id,
  70. search:that.search
  71. }
  72. }
  73. }).then(res => {
  74. this.list = res.data
  75. })
  76. },
  77. searchList(){
  78. this.page = 1
  79. this.list = []
  80. this.getlist()
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang="scss" scoped>
  86. </style>