123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <!-- <template>
- <div id="app">
- <view style="height:44px;background-color: #000000;color:#fff;justify-content: center;text-align: center;padding-top:15px;font-weight: 900;font-size:15px;position: fixed;">移动工程</view>
- <router-view />
- </div>
- </template> -->
- <script>
- import {
- getToken
- } from "@/common/auth.js";
-
- //应用生命周期仅可在App.vue中监听,在其它页面监听无效
- export default {
- name: 'App',
- onLaunch: function() {
- console.log('App Launch');
- },
- onShow: function() {
- console.log('App Show');
- //console.info(globalData.isLogin);
- },
- onHide: function() {
- console.log('App Hide');
- },
- methods: {
- onClickFanhui:function(){
- this.$router.push('/index')
- }
- },
- //js中操作globalData的方式如下: getApp().globalData.text = 'test'
- globalData: {
- //isLogin: getLogin() //api接口统一配置
- },
-
- };
- </script>
- <style lang="scss">
- /*全局样式*/
- /* #ifndef APP-PLUS-NVUE */
- @import './common/uni.css';
-
- /* #endif*/
- /* 解决头条小程序组件内引入字体不生效的问题 */
- /* #ifdef MP-TOUTIAO */
- @font-face {
- font-family: uniicons;
- src: url('/static/uni.ttf');
- }
- /* #endif */
- #app{
- height: 100%;
- }
- /* 以下样式用于 hello uni-app 演示所需 */
- page {
- background-color: #fff;
- height: 100%;
- font-size: 13px;
- line-height: 1.8;
- }
- .pointer {
- cursor: pointer;
- }
- .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;
- }
- .font13{
- font-size:13rpx;
- }
- .font15{
- font-size:15rpx;
- }
-
- .slot-box {
- width: 100%;
- padding: 5px;
- }
-
- .row {
- width: 100%;
- clear:both;
- }
-
- .column-left {
- float: left;
- font-size: 13px;
- width: 30%;
- line-height: 30px;
- color: #979797;
- font-weight: 600;
- text-align: left;
-
- }
-
- .column-right {
- float: left;
- font-size: 13px;
- width: 70%;
- line-height: 30px;
- color: #979797;
- font-weight: 600;
- text-align: left;
-
- }
- .section-title{
- font-size: 15px;
- font-weight: 900;
- color: #666666;
- }
- /* button */
- /deep/ uni-button[type=primary]
- {
- color:#ffffff;
- border:1px solid $uni-bg-color-red;
- background-color:$uni-bg-color-red;
- }
- /deep/ uni-page-head .uni-page-head {
- width:100%;
- }
- </style>
|