specialistsList.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="page">
  3. <!-- #ifdef H5-->
  4. <uni-nav-bar v-if="!$isWxBrowser()" :fixed="true" background-color="#FFE05C" :border="false" :statusBar="false" left-icon="left" title="累计交友圈专员记录" @clickLeft="back" />
  5. <!-- #endif -->
  6. <view :style="{height:height}" class="list">
  7. <mescroll-item ref="MescrollItem" :i="0" :index="0" :height="height" @openAddRemarkPopup="openAddRemarkPopup">
  8. </mescroll-item>
  9. </view>
  10. <add-remark-popup ref="addRemarkPopup"></add-remark-popup>
  11. <!--#ifdef H5-->
  12. <liu-drag-button v-if="$isWxBrowser()" @clickBtn="back">返回</liu-drag-button>
  13. <!--#endif-->
  14. </view>
  15. </template>
  16. <script>
  17. import addRemarkPopup from "../../components/addRemarkPopup/addRemarkPopup";
  18. import MescrollItem from "./module/mescrollUni-item.vue";
  19. export default {
  20. components: {
  21. MescrollItem,addRemarkPopup
  22. },
  23. data() {
  24. return {
  25. height:'',
  26. }
  27. },
  28. onLoad(e) {
  29. let sysInfo = uni.getSystemInfoSync()
  30. this.height = sysInfo.windowHeight - 70 + 'px' //除标题栏栏外的屏幕可用高度
  31. },
  32. onShow(){
  33. this.$refs.MescrollItem.downCallback()
  34. },
  35. methods: {
  36. openAddRemarkPopup(e){
  37. this.$refs.addRemarkPopup.openPopup(e)
  38. },
  39. back() {
  40. let pages = getCurrentPages()
  41. if (pages.length > 1){
  42. uni.navigateBack({
  43. delta: 1,
  44. fail:err=>{
  45. console.log(err)
  46. }
  47. })
  48. }else {
  49. uni.switchTab({
  50. url: '/pages/index/index'
  51. });
  52. }
  53. },
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. @import './index.rpx.css';
  59. </style>