mine.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 个人信息 -->
  5. <view class="person-infos">
  6. <view class="photo">
  7. <!-- <u-avatar class="avatar"
  8. src="@/assets/img/photo@x1.png" size="112">
  9. </u-avatar> -->
  10. <image class="img" src="@/assets/img/photo@x1.png" mode=""></image>
  11. </view>
  12. <view class="else">
  13. <view class="name">
  14. 郭群
  15. </view>
  16. <view class="company">
  17. 运维专员
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 地址 -->
  22. <view class="address-box">
  23. <view class="address">
  24. <view class="address-title">
  25. 湖北荆鹏软件集团
  26. </view>
  27. <view class="address-value">
  28. <u-icon name="map"></u-icon>荆州市沙市区江津东路附155号
  29. </view>
  30. </view>
  31. <view class="image">
  32. <image class="img" src="@/assets/img/mineBackground.svg" mode=""></image>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 功能 -->
  37. <view class="function-group">
  38. <view class="function-item">
  39. <view class="icon">
  40. <image class="img" src="@/assets/img/riLine-function-line.svg" mode=""></image>
  41. </view>
  42. <view class="name">
  43. 设备列表
  44. </view>
  45. <view class="arrow">
  46. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  47. </view>
  48. </view>
  49. <view class="function-item">
  50. <view class="icon">
  51. <image class="img" src="@/assets/img/riLine-feedback-line.svg" mode=""></image>
  52. </view>
  53. <view class="name">
  54. 意见反馈
  55. </view>
  56. <view class="arrow">
  57. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  58. </view>
  59. </view>
  60. <view class="function-item">
  61. <view class="icon">
  62. <image class="img" src="@/assets/img/riLine-customer-service-2-line.svg" mode=""></image>
  63. </view>
  64. <view class="name">
  65. 客服热线
  66. </view>
  67. <view class="arrow">
  68. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="function-group">
  73. <view class="function-item" @click="toSetting">
  74. <view class="icon">
  75. <image class="img" src="@/assets/img/riLine-settings-2-line.svg" mode=""></image>
  76. </view>
  77. <view class="name">
  78. 设置
  79. </view>
  80. <view class="arrow">
  81. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  82. </view>
  83. </view>
  84. </view>
  85. <energyCenterTabbar :current="2"></energyCenterTabbar>
  86. </view>
  87. </template>
  88. <script>
  89. import energyCenterTabbar from '@/components/energyCenterTabbar.vue'
  90. export default {
  91. components: {
  92. energyCenterTabbar
  93. },
  94. data() {
  95. return {
  96. }
  97. },
  98. onLoad() {
  99. },
  100. methods: {
  101. toSetting() {
  102. uni.navigateTo({
  103. url: '/pages/businessHall-test/mine/setting'
  104. })
  105. }
  106. }
  107. }
  108. </script>
  109. <style lang="scss" scoped>
  110. .background {
  111. background: linear-gradient(180deg, rgba(194, 219, 255, 1) 53%, rgba(180, 211, 255, 0) 100%);
  112. padding: 72rpx 32rpx;
  113. // 个人信息
  114. .person-infos {
  115. display: flex;
  116. align-items: center;
  117. .photo {
  118. width: 112rpx;
  119. height: 112rpx;
  120. border-radius: 50px;
  121. .img {
  122. width: 100%;
  123. height: 100%;
  124. }
  125. }
  126. .else {
  127. margin-left: 24rpx;
  128. .name {
  129. color: rgb(16, 16, 16);
  130. font-size: 36rpx;
  131. }
  132. .company {
  133. color: rgba(16, 16, 16, 1);
  134. }
  135. }
  136. }
  137. // 地址
  138. .address-box {
  139. border-radius: 8px;
  140. background: linear-gradient(90deg, rgba(49, 110, 207, 1) 2%, rgba(20, 73, 159, 1) 100%);
  141. color: #fff;
  142. padding: 40rpx 32rpx;
  143. margin-top: 40rpx;
  144. display: flex;
  145. align-items: center;
  146. position: relative;
  147. .address {
  148. .address-title {
  149. font-size: 40rpx;
  150. }
  151. .address-value {
  152. font-size: 24rpx;
  153. margin-top: 8rpx;
  154. }
  155. }
  156. .image {
  157. width: 174rpx;
  158. height: 174rpx;
  159. position: absolute;
  160. right: 0;
  161. top: 20rpx;
  162. .img {
  163. width: 100%;
  164. height: 100%;
  165. }
  166. }
  167. }
  168. }
  169. // 功能
  170. .function-group {
  171. border-radius: 8px;
  172. background-color: #fff;
  173. margin: 0 32rpx 24rpx;
  174. .function-item {
  175. display: flex;
  176. align-items: center;
  177. padding: 26rpx 26rpx 26rpx 0;
  178. margin-left: 26rpx;
  179. border-bottom: 1px solid rgba(221, 221, 221, 1);
  180. .icon {
  181. width: 40rpx;
  182. height: 40rpx;
  183. .img {
  184. width: 100%;
  185. height: 100%;
  186. }
  187. }
  188. .name {
  189. color: rgba(51, 51, 51, 1);
  190. font-size: 30rpx;
  191. margin-left: 26rpx;
  192. }
  193. .arrow {
  194. margin-left: auto;
  195. }
  196. }
  197. }
  198. </style>