| | |
| | | <script> |
| | | import { wxAuthorize, refreshToken } from '@/api' |
| | | import { wxAuthorize, refreshToken, app_url } from '@/api' |
| | | export default { |
| | | onLaunch: function () { |
| | | |
| | | window.addEventListener("popstate", (event) => { |
| | | const path = this.$route.fullPath |
| | | if(path == '/pages/login/login' || path == '/'){ |
| | | window.location.href = app_url |
| | | } |
| | | }) |
| | | }, |
| | | onShow: function () { |
| | | console.log('App Show') |
| | |
| | | <style lang="scss"> |
| | | /*每个页面公共css */ |
| | | @import "uview-ui/index.scss"; |
| | | |
| | | html, body { |
| | | height: auto; |
| | | min-height: 100%; |
| | | overflow: visible; |
| | | } |
| | | .flex-cb { |
| | | display: flex; |
| | | justify-content: space-between; |
| | |
| | | max-width: 800rpx; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .empty_wrap{ |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | color: #666666; |
| | | min-height: 600rpx; |
| | | image{ |
| | | width: 300rpx; |
| | | height: 300rpx; |
| | | } |
| | | } |
| | | .doumee-container .ivu-tabs-nav { |
| | | width: 100%; |
| | | } |
| | |
| | | } |
| | | |
| | | .placeholder9 { |
| | | color: #999999; |
| | | color: #999999 !important; |
| | | font-size: 28rpx; |
| | | } |
| | | .red{ |
| | | color: red !important; |
| | | } |
| | | |
| | | //设置圆角 |
| | |
| | | } |
| | | |
| | | .main_app { |
| | | padding: 0 30rpx 30rpx; |
| | | padding: 10rpx 30rpx 30rpx; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | } |
| | |
| | | width: 64rpx; |
| | | height: 64rpx; |
| | | border-radius: 50%; |
| | | overflow: hidden; |
| | | margin-right: 20rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | |
| | | .ml12 { |
| | | margin-left: 12rpx; |
| | | } |
| | | .ml6 { |
| | | margin-left: 6rpx; |
| | | } |
| | | .mt6 { |
| | | margin-top: 6rpx; |
| | | } |