wdjh.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="ayuu">
  3. <view class="">
  4. <view class="fsxto jhkanuy" hover-class="none" v-for="(item,index) in list"
  5. :key="index" @click="gopl(item.id)">
  6. <view class="fzctob">
  7. <view class="jhuuimg">
  8. <image :src="item.avatarUrl"
  9. style="width: 88rpx;height: 88rpx;min-width: 88rpx;border-radius: 200rpx;" mode=""></image>
  10. </view>
  11. <view class="fsxto" style="width: 100%;margin-left: 12rpx;">
  12. <view class="flztoa">
  13. <text class="jhtxty">{{item.nickName}}</text>
  14. <text class="jhtxtya">{{$u.timeFormat(item.create_time, 'yyyy:mm:dd hh:MM:ss')}}</text>
  15. </view>
  16. <view class="jhtxtyb">
  17. <text>{{item.note}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="jhtxtyc">
  22. <text>{{item.content}}</text>
  23. </view>
  24. <view class="flztoa" style="margin-top: 30rpx;">
  25. <view class="fzctob">
  26. <image :src="item.is_like == 1?'/static/index/w1.png':'/static/index/w2.png'" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
  27. <text class="shitxty">{{item.like_num}}</text>
  28. <view style="margin-left: 40rpx;">
  29. <image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;"
  30. mode=""></image>
  31. </view>
  32. </view>
  33. <!-- <view class="">
  34. <text class="shitxtya">2021.06.15</text>
  35. </view> -->
  36. </view>
  37. </view>
  38. </view>
  39. <view style="height: 120rpx;"></view>
  40. <view class="dibuboot">
  41. <navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
  42. <image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
  43. <text>首页</text>
  44. </navigator>
  45. <!-- <navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
  46. <image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
  47. <text>咨询</text>
  48. </navigator>
  49. <navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
  50. <image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
  51. <text>解惑</text>
  52. </navigator> -->
  53. <navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
  54. <image src="/static/dibu/bob4.png" style="width: 48rpx;height: 48rpx;"></image>
  55. <text style="color: #374B6E">我的</text>
  56. </navigator>
  57. </view>
  58. </view>
  59. </template>
  60. <style>
  61. page {
  62. background: #FAFAFA;
  63. }
  64. </style>
  65. <script>
  66. export default {
  67. data() {
  68. return {
  69. xqaxuye: false,
  70. list:[]
  71. }
  72. },
  73. onLoad() {
  74. this.user_id = uni.getStorageSync('id');
  75. this.getlist();
  76. },
  77. methods:{
  78. //获取解惑列表
  79. getlist() {
  80. let user_id = uni.getStorageSync('id');
  81. this.$post({
  82. data: {
  83. do: 'AskQuestionList',
  84. data: {
  85. user_id:user_id
  86. }
  87. }
  88. }).then(res => {
  89. this.list = res.message
  90. })
  91. },
  92. gopl(id){
  93. uni.navigateTo({
  94. url:'./jiehuo-pl?id=' + id + '&user_id=' + this.user_id
  95. })
  96. }
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. </style>