specialistsList.vue 1.5 KB

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