playClose.vue 774 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view>
  3. <!-- <view class="es-h-88"></view>
  4. <button @tap="close">关闭</button> -->
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. }
  12. },
  13. onLoad(options) {
  14. this.close();
  15. setTimeout(e => {
  16. //#ifdef APP-PLUS
  17. plus.navigator.setFullscreen(false);
  18. //#endif
  19. },100)
  20. setTimeout(e => {
  21. //#ifdef APP-PLUS
  22. plus.screen.lockOrientation("portrait-primary");
  23. //#endif
  24. },50)
  25. },
  26. onShow() {
  27. },
  28. onReady(){
  29. },
  30. methods: {
  31. close:function(){
  32. uni.navigateBack({
  33. animationType: 'fade-out',
  34. animationDuration: 0
  35. });
  36. },
  37. resetScreen(){
  38. plus.screen.lockOrientation("portrait-primary");
  39. },
  40. }
  41. }
  42. </script>
  43. <style>
  44. </style>