fireBase.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="fireBashWrapper">
  3. <block>
  4. <view class="" style="margin-top:0">
  5. <view class="cu-list menu-avatar ">
  6. <view class="cu-item" v-for="(item,index) in this.getData" :key="index" @tap="goDetail(item)">
  7. <view class="cu-avatar">
  8. <image class="image-bg" src="/static/fire-base1.png" />
  9. </view>
  10. <view class="content">
  11. <view class="pro-title">
  12. <view class="cut">{{item.title}}</view>
  13. </view>
  14. <view class="pro-des ">
  15. <view class="text-cut">
  16. {{item.author}}
  17. </view>
  18. </view>
  19. <view class="pro-date">{{item.release_time}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </block>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. getData:[]
  32. };
  33. },
  34. onLoad:function(option){
  35. this.getFireBaseList({'company_code':uni.getStorageSync('selectedCode')})
  36. },
  37. methods: {
  38. // 列表数据请求
  39. async getFireBaseList(params = {}) {
  40. const res = await this.$myRequest({
  41. url: 'KnowledgeBase/getKnowledgeBaseList',
  42. data:params,
  43. showLoading: true
  44. })
  45. this.getData=res.data.data;
  46. console.log(this.getData)
  47. },
  48. // 页面跳转
  49. goDetail(item){
  50. uni.navigateTo({
  51. url: '/pages/info/fireBashDetail/fireBashDetail?id='+item.id+'&title='+item.title,
  52. success: res => {},
  53. fail: () => {},
  54. complete: () => {}
  55. });
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss">
  61. .processList{
  62. position:static;
  63. }
  64. </style>