App.vue 765 B

1234567891011121314151617181920212223242526272829303132333435
  1. <script>
  2. import plv from "./pages3/static/polyv-sdk/index";
  3. export default {
  4. onLaunch: function (option) {
  5. uni.hideTabBar()
  6. let inviteCode = option.inviteCode;
  7. if (inviteCode && inviteCode != "") {
  8. uni.setStorageSync("inviteCode", inviteCode);
  9. }
  10. plv.setApp({
  11. apiId: "ezl5uy4zei",
  12. apiSecret: "2bf5bb3c31d34531943df10284edd50b",
  13. });
  14. this.$store.dispatch('getConfig')
  15. },
  16. methods: {},
  17. onShow: function (option) {
  18. this.$store.commit("setScene", option.scene || 0);
  19. },
  20. onHide: function () {
  21. uni.$emit("playPause");
  22. },
  23. };
  24. </script>
  25. <style lang="scss">
  26. /*每个页面公共css */
  27. @import "/iconfont/iconfont.css";
  28. @import "uview-ui/index.scss";
  29. button {
  30. background: none;
  31. overflow: auto;
  32. }
  33. </style>