origanization.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="">
  3. <!-- 组织架构 -->
  4. <!-- 枣泉 -->
  5. <!-- <view v-if="mine_code == 'zaoquan'">
  6. <t-o-zaoquan></t-o-zaoquan>
  7. </view> -->
  8. <view v-if="mine_code != 'ningmeijituan' && mine_code != 'ningdongyunying'">
  9. <t-o-origanization></t-o-origanization>
  10. </view>
  11. <view v-if="mine_code == 'ningdongyunying' || mine_code == 'ningmeijituan'">
  12. <t-o-news ref="tONews"></t-o-news>
  13. <!-- <t-o-origanization></t-o-origanization> -->
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. // 当前煤矿编码
  22. mine_code: "",
  23. // 事件防抖
  24. flag:true
  25. }
  26. },
  27. onLoad() {
  28. // 初始化当前煤矿编码
  29. this.mine_code = uni.getStorageSync('mine_code')
  30. },
  31. onReachBottom() {
  32. if(this.flag){
  33. this.flag = false
  34. this.$refs.tONews.tab_2_onReachBottom();
  35. setTimeout(()=>{
  36. this.flag = true
  37. },1000)
  38. }
  39. console.log('++')
  40. }
  41. }
  42. </script>
  43. <style lang="scss">
  44. page {
  45. background-color: #F3F8F7;
  46. }
  47. </style>