about.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view class="container">
  3. <!-- <u-navbar :is-fixed="false" :border-bottom="false" :is-back="true" back-icon-name="arrow-leftward" title="关于"
  4. back-icon-size="35" :background="{ background: '#3F9EFF' }" title-color="#000">
  5. </u-navbar> -->
  6. <uNavBar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="返回"
  7. :title="title" @clickLeft="toBack">
  8. </uNavBar>
  9. <view class="content">
  10. <view class="form">
  11. <view class="cell">
  12. <view class="name">APP版本</view>
  13. <input type="text" placeholder="" disabled="true" v-model="version" class="ipt"
  14. placeholder-class="hold" style="color: #82848A;" />
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import http from '@/http/api.js'
  22. import pickRegions from '@/components/pick-regions/pick-regions.vue';
  23. import uNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
  24. import {
  25. version
  26. } from '@/common/setting.js'
  27. export default {
  28. components: {
  29. pickRegions,
  30. uNavBar
  31. },
  32. data() {
  33. return {
  34. version: '',
  35. title:'关于'
  36. };
  37. },
  38. onLoad() {
  39. this.version=version;
  40. },
  41. methods: {
  42. toBack() {
  43. uni.navigateBack({
  44. delta: 1
  45. })
  46. },
  47. }
  48. };
  49. </script>
  50. <style lang="scss">
  51. .container {
  52. background-color: #f7f7f7;
  53. min-height: 100vh;
  54. padding: 0 0 200rpx;
  55. overflow: hidden;
  56. }
  57. .complie {
  58. vertical-align: middle;
  59. padding: 10rpx 20rpx;
  60. font-size: 32rpx;
  61. font-family: Source Han Sans CN;
  62. font-weight: 400;
  63. color: #14b9c8;
  64. }
  65. .content {
  66. background-color: #ffffff;
  67. overflow: hidden;
  68. }
  69. .avatar {
  70. margin-top: 30rpx;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. flex-direction: column;
  75. font-size: 30rpx;
  76. font-family: Source Han Sans CN;
  77. font-weight: 400;
  78. color: #14b9c8;
  79. .avatar-image {
  80. width: 162rpx;
  81. height: 162rpx;
  82. background: #ffffff;
  83. border-radius: 50%;
  84. background-color: #82848a;
  85. margin-bottom: 15rpx;
  86. }
  87. }
  88. .form {
  89. padding: 0 36rpx;
  90. .cell {
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: center;
  94. padding: 40rpx 0;
  95. font-size: 30rpx;
  96. font-family: Source Han Sans CN;
  97. font-weight: bold;
  98. color: #666666;
  99. &:not(:last-of-type) {
  100. border-bottom: 2rpx solid #efefef;
  101. }
  102. .ipt {
  103. flex: 1;
  104. margin-left: 40rpx;
  105. text-align: right;
  106. font-size: 23rpx;
  107. font-family: Source Han Sans CN;
  108. font-weight: bold;
  109. color: #333333;
  110. }
  111. .hold {
  112. font-size: 27rpx;
  113. font-family: Source Han Sans CN;
  114. font-weight: bold;
  115. color: #c8c8ce;
  116. }
  117. }
  118. }
  119. .back {
  120. margin-top: 40rpx;
  121. text-align: center;
  122. height: 109rpx;
  123. background: #ffffff;
  124. font-size: 34rpx;
  125. font-family: Source Han Sans CN;
  126. font-weight: bold;
  127. color: #141414;
  128. line-height: 109rpx;
  129. }
  130. </style>