ad.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view>
  3. <!-- 顶部导航栏 -->
  4. <view class="navbar" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  5. <view class="navbar-content">
  6. <view class="navbar-left" @click="goBack">
  7. <u-icon name="arrow-leftward" size="36" color="#fff"></u-icon>
  8. </view>
  9. <view class="navbar-title"></view>
  10. <view class="navbar-right"></view>
  11. </view>
  12. </view>
  13. <!-- <nav-bar title="基本信息"></nav-bar> -->
  14. <view :class="['contain flex flex-direction',pageType==1?'contain_1':'']">
  15. <image
  16. :src="pageType == 0 ? '../../static/images/my/niuren.png' : '../../static/images/my/boss.png'"
  17. class="header-icon" mode="widthFix" />
  18. </view>
  19. <!-- 权限说明弹窗 -->
  20. </view>
  21. </template>
  22. <script>
  23. import configdata from '../../common/config.js';
  24. import navBar from "@/components/nav-bar/index.vue";
  25. // 引入组件
  26. import empty from '../../components/empty.vue'
  27. export default {
  28. components: {
  29. navBar,
  30. empty
  31. },
  32. data() {
  33. return {
  34. pageType:0
  35. };
  36. },
  37. onLoad(options) {
  38. // 获取状态栏高度
  39. this.pageType=options&&options.pageType
  40. // 获取状态栏高度
  41. let systemInfo = uni.getSystemInfoSync();
  42. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  43. },
  44. methods: {
  45. goBack() {
  46. uni.navigateBack();
  47. },
  48. },
  49. };
  50. </script>
  51. <style lang="scss" scoped>
  52. page {
  53. }
  54. .navbar {
  55. position: fixed;
  56. top: 0;
  57. left: 0;
  58. right: 0;
  59. z-index: 999;
  60. .navbar-content {
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-between;
  64. padding: 0 30rpx;
  65. height: 60rpx;
  66. .navbar-left {
  67. width: 60rpx;
  68. height: 60rpx;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. }
  73. .navbar-title {
  74. color: rgba(23, 23, 37, 1);
  75. font-family: DM Sans;
  76. font-size: 36rpx;
  77. font-weight: 700;
  78. line-height: 52rpx;
  79. letter-spacing: 0%;
  80. text-align: center;
  81. }
  82. .navbar-right {
  83. width: 60rpx;
  84. height: 60rpx;
  85. }
  86. }
  87. }
  88. button::after {
  89. border: none;
  90. background-color: none;
  91. }
  92. button {
  93. position: relative;
  94. display: block;
  95. margin-left: auto;
  96. margin-right: auto;
  97. padding-left: 0px;
  98. padding-right: 0px;
  99. box-sizing: border-box;
  100. text-decoration: none;
  101. line-height: 1.35;
  102. overflow: hidden;
  103. color: #666666;
  104. /* background-color: #fff; */
  105. background-color: rgba(255, 255, 255, 0) !important;
  106. width: 100%;
  107. height: 100%;
  108. }
  109. .contain {
  110. background: linear-gradient(to right, #1F69E1,#327AE8);
  111. padding-top: 120rpx;
  112. align-items: center;
  113. height: 100vh;
  114. .header-icon{
  115. width: 100%;
  116. display: block;
  117. }
  118. }
  119. .contain_1{
  120. background: linear-gradient(to right, #2A5DD2,#073CBD);
  121. }
  122. </style>