specialistsList.vue 1.5 KB

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