index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <image class="logo" :src="logoUrl" mode=""></image>
  6. </view>
  7. </view>
  8. </mobile-frame>
  9. </template>
  10. <script>
  11. export default {
  12. components: {},
  13. data() {
  14. return {
  15. logoUrl: ''
  16. };
  17. },
  18. onLoad: function() {},
  19. onShow: function() {
  20. const that = this;
  21. that.search();
  22. },
  23. methods: {
  24. search() {
  25. const that = this;
  26. that.$set(that, `logoUrl`, that.$config.logoUrl);
  27. // 查询当前所在平台
  28. uni.getSystemInfo({
  29. success: async function(res) {
  30. uni.setStorage({
  31. key: 'system',
  32. data: res,
  33. success: function() {
  34. uni.redirectTo({
  35. url: `/pagesHome/group/index`
  36. })
  37. }
  38. });
  39. }
  40. });
  41. },
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. .main {
  47. display: flex;
  48. flex-direction: column;
  49. width: 100vw;
  50. height: 100vh;
  51. .one {
  52. text-align: center;
  53. margin: 40vw 0 0 0;
  54. .logo {
  55. width: 50vw;
  56. height: 50vw;
  57. border-radius: 90px;
  58. box-shadow: 0 0 5px #f1f1f1;
  59. }
  60. }
  61. }
  62. </style>