123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <script>
- import {
- mapMutations
- } from 'vuex'
- import {
- version
- } from './package.json'
- import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
- export default {
- onLaunch: function() {
-
- console.log(
- `%c hello uniapp %c v${version} `,
- 'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
- 'background:#007aff ;padding: 1px; border-radius: 0 3px 3px 0; color: #fff; font-weight: bold;'
- )
-
-
-
- console.log('App Launch');
-
-
- if (plus.runtime.appid !== 'HBuilder') {
- checkUpdate()
- }
-
- uni.preLogin({
- provider: 'univerify',
- success: (res) => {
-
- this.setUniverifyErrorMsg();
- console.log("preLogin success: ", res);
- },
- fail: (res) => {
- this.setUniverifyLogin(false);
- this.setUniverifyErrorMsg(res.errMsg);
-
- console.log("preLogin fail res: ", res);
- }
- })
-
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- },
- globalData: {
- test: ''
- },
- methods: {
- ...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin'])
- }
- }
- </script>
- <style>
-
-
- @import './common/uni.css';
- @import '@/static/customicons.css';
-
-
- @media screen and (min-width: 768px) {
- body {
- overflow-y: scroll;
- }
- }
-
-
- uni-page-body {
- background-color: #F5F5F5 !important;
- min-height: 100% !important;
- height: auto !important;
- }
- .uni-top-window uni-tabbar .uni-tabbar {
- background-color: #fff !important;
- }
- .uni-app--showleftwindow .hideOnPc {
- display: none !important;
- }
-
-
- page {
- background-color: #efeff4;
- height: 100%;
- font-size: 28rpx;
-
- }
- .fix-pc-padding {
- padding: 0 50px;
- }
- .uni-header-logo {
- padding: 30rpx;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- margin-top: 10rpx;
- }
- .uni-header-image {
- width: 100px;
- height: 100px;
- }
- .uni-hello-text {
- color: #7A7E83;
- }
- .uni-hello-addfile {
- text-align: center;
- line-height: 300rpx;
- background: #FFF;
- padding: 50rpx;
- margin-top: 10px;
- font-size: 38rpx;
- color: #808080;
- }
-
- </style>
|