123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <template>
- <mobile-frame>
- <view class="main">
- <view class="one">
- <image class="logo" :src="logoUrl" mode=""></image>
- </view>
- </view>
- </mobile-frame>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- logoUrl: ''
- };
- },
- onLoad: function() {},
- onShow: function() {
- const that = this;
- that.search();
- },
- methods: {
- search() {
- const that = this;
- that.$set(that, `logoUrl`, that.$config.logoUrl);
- // 查询当前所在平台
- uni.getSystemInfo({
- success: async function(res) {
- uni.setStorage({
- key: 'system',
- data: res,
- success: function() {
- uni.redirectTo({
- url: `/pagesHome/group/index`
- })
- }
- });
- }
- });
- },
- }
- }
- </script>
- <style lang="scss">
- .main {
- display: flex;
- flex-direction: column;
- width: 100vw;
- height: 100vh;
- .one {
- text-align: center;
- margin: 40vw 0 0 0;
- .logo {
- width: 50vw;
- height: 50vw;
- border-radius: 90px;
- box-shadow: 0 0 5px #f1f1f1;
- }
- }
- }
- </style>
|