login-error.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="container">
  3. <view
  4. class="tui-header-box first"
  5. :style="{ height: isCmcustomClass == 'fiexd' ? CustomBar + 6 + 'px' : CustomBar + 6 + 'px' }"
  6. :class="isCmcustomClass"
  7. >
  8. <view class="header-top" :style="{ paddingTop: top + 'px', lineHeight: CustomBar + 20 + 'px' }"></view>
  9. <view class="header-sit">
  10. <text class="iconfont icon-fanhui" @click.stop="this.$api.navigateBack(2)"></text>
  11. <text class="header-sit-text"></text>
  12. </view>
  13. </view>
  14. <view class="share-empty">
  15. <view class="icon"><image :src="StaticUrl + '/image/icon-noaccess@2x.png'" mode="widthFix"></image></view>
  16. <view class="text">暂无权限查看</view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import { mapMutations } from 'vuex'
  22. import authorize from '@/common/config/authorize.js'
  23. export default {
  24. computed: {
  25. },
  26. data() {
  27. return {
  28. StaticUrl: this.$Static,
  29. isIphoneX: this.$store.state.isIphoneX,
  30. CustomBar: this.CustomBar, // 顶部导航栏高度
  31. height: 64, //header高度
  32. top: 0, //标题图标距离顶部距离
  33. scrollH: 0, //滚动总高度
  34. opcity: 1,
  35. isCmcustomClass: 'left',
  36. }
  37. },
  38. onLoad(option) {
  39. let obj = {}
  40. // #ifdef MP-WEIXIN
  41. obj = wx.getMenuButtonBoundingClientRect()
  42. // #endif
  43. // #ifdef MP-BAIDU
  44. obj = swan.getMenuButtonBoundingClientRect()
  45. // #endif
  46. // #ifdef MP-ALIPAY
  47. my.hideAddToDesktopMenu()
  48. // #endif
  49. uni.getSystemInfo({
  50. success: res => {
  51. this.width = obj.left || res.windowWidth
  52. this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight + 44
  53. this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res.statusBarHeight + 6
  54. this.scrollH = res.windowWidth * 0.6
  55. }
  56. })
  57. },
  58. methods: {
  59. ...mapMutations(['login', 'logout']),
  60. },
  61. onShow() {
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .container {
  67. width: 100%;
  68. height:100%;
  69. background: #FFFFFF;
  70. display: flex;
  71. align-items: center;
  72. justify-content:center;
  73. .share-empty{
  74. width: 260rpx;
  75. height: 412rpx;
  76. .icon{
  77. width: 150rpx;
  78. height: 150rpx;
  79. margin: 0 auto;
  80. image{
  81. width: 100%;
  82. height: 100%;
  83. display: block;
  84. }
  85. }
  86. .text{
  87. font-size: $font-size-28;
  88. line-height: 60rpx;
  89. color: rgba(70,136,250,0.7);
  90. text-align: center;
  91. }
  92. .icon-shouye1{
  93. display: block;
  94. width: 80rpx;
  95. height: 80rpx;
  96. float: left;
  97. text-align: center;
  98. line-height: 80rpx;
  99. font-size: 48rpx;
  100. position: absolute;
  101. top: 0;
  102. left: 0;
  103. }
  104. }
  105. }
  106. .tui-header-box {
  107. width: 100%;
  108. background: #ffffff;
  109. z-index: 999;
  110. position: fixed;
  111. top: 0;
  112. left: 0;
  113. background-size: cover;
  114. background-image: url(https://static.caimei365.com/app/crm/image/statistic_bg2.png);
  115. &.fiexd {
  116. }
  117. &.first {
  118. }
  119. }
  120. .header-top {
  121. width: 100%;
  122. font-size: 16px;
  123. font-weight: 500;
  124. height: 32px;
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. position: relative;
  129. padding: 0 40rpx;
  130. }
  131. .header-sit {
  132. width: 100%;
  133. box-sizing: border-box;
  134. height: 80rpx;
  135. line-height: 80rpx;
  136. box-sizing: border-box;
  137. color: #ffffff;
  138. .header-sit-text {
  139. text-align: left;
  140. font-size: $font-size-40;
  141. font-weight: 600;
  142. font-family: '正楷';
  143. }
  144. .iconfont {
  145. display: block;
  146. width: 80rpx;
  147. height: 80rpx;
  148. float: left;
  149. text-align: center;
  150. line-height: 80rpx;
  151. font-size: 46rpx;
  152. }
  153. }
  154. </style>