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