specialistsList.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. methods: {
  33. openAddRemarkPopup(e){
  34. this.$refs.addRemarkPopup.openPopup(e)
  35. },
  36. back() {
  37. let pages = getCurrentPages()
  38. if (pages.length > 1){
  39. uni.navigateBack({
  40. delta: 1,
  41. fail:err=>{
  42. console.log(err)
  43. }
  44. })
  45. }else {
  46. uni.switchTab({
  47. url: '/pages/index/index'
  48. });
  49. }
  50. },
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. @import './index.rpx.css';
  56. </style>