LiveApplyDetail.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template><page-meta :root-font-size="fontSize+'px'"></page-meta>
  2. <seller-base :show="false">
  3. <main-content v-if="live_apply_id" :live_apply_id="live_apply_id"></main-content>
  4. </seller-base>
  5. </template>
  6. <script>
  7. import {getFontSize} from '@/util/common'
  8. import SellerBase from '../SellerBase'
  9. import mainContent from './child/main-content'
  10. export default {
  11. computed:{
  12. fontSize(){
  13. return getFontSize()
  14. },
  15. },
  16. data(){
  17. return {
  18. live_apply_id: 0,
  19. }
  20. },
  21. components: {
  22. SellerBase,
  23. mainContent
  24. },
  25. onLoad: function(option) {
  26. this.live_apply_id = option.live_apply_id?option.live_apply_id:option.scene
  27. if (!this.live_apply_id) {
  28. uni.showToast({
  29. icon: 'none',
  30. title: '参数错误'
  31. })
  32. }
  33. },
  34. /**
  35. * 生命周期函数--监听页面显示
  36. */
  37. onShow: function() {
  38. uni.setKeepScreenOn({
  39. keepScreenOn: true,
  40. })
  41. },
  42. /**
  43. * 生命周期函数--监听页面卸载
  44. */
  45. onUnload: function() {
  46. uni.setKeepScreenOn({
  47. keepScreenOn: false,
  48. })
  49. },
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. </style>