template.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <!-- #ifdef H5 -->
  3. <zj-page-layout
  4. :hasFooter="true"
  5. :isScroll="true"
  6. :refresherTriggered="refresherTriggered"
  7. @refresherrefresh="refresherrefresh"
  8. @scrolltolower="scrolltolower">
  9. <template slot="header">
  10. </template>
  11. <template slot="footer">
  12. </template>
  13. </zj-page-layout>
  14. <!-- #endif -->
  15. <!-- #ifndef H5 -->
  16. <web-view :src="webViewHref(`/pages/template`, pam, crossPagePam)" @message="crossPage.$listener"></web-view>
  17. <!-- #endif -->
  18. </template>
  19. <script>
  20. // #ifdef H5
  21. export default {
  22. data() {
  23. return {
  24. refresherTriggered: false,
  25. }
  26. },
  27. onLoad() {
  28. this.getDetail();
  29. },
  30. methods: {
  31. getDetail() {
  32. this.$api.get('xxxxx', {
  33. a: 1
  34. }).then(res => {
  35. })
  36. },
  37. // 下拉刷新
  38. refresherrefresh() {
  39. },
  40. // 触底加载
  41. scrolltolower() {
  42. }
  43. },
  44. }
  45. // #endif
  46. // #ifndef H5
  47. export default {
  48. data() {
  49. return {
  50. pam: {},
  51. }
  52. },
  53. onLoad(pam) {
  54. this.pam = pam;
  55. }
  56. }
  57. // #endif
  58. </script>
  59. <style lang="scss" scoped>
  60. </style>