todaySpecialistsList.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. onShow(){
  34. },
  35. methods: {
  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/my/my'
  48. });
  49. }
  50. },
  51. openAddRemarkPopup(e){
  52. console.log('this.$refs.addRemarkPopup',this.$refs.addRemarkPopup)
  53. this.$refs.addRemarkPopup.openPopup()
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. @import './index.rpx.css';
  60. </style>