mine.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 个人信息 -->
  5. <view class="person-infos">
  6. <view class="photo">
  7. <image class="img" src="@/assets/img/photo@x1.png" mode=""></image>
  8. </view>
  9. <view class="else">
  10. <view class="name">
  11. {{personInfo.contacts}}
  12. </view>
  13. <view class="company">
  14. {{personInfo.companyName}}
  15. </view>
  16. </view>
  17. </view>
  18. <!-- 地址 -->
  19. <view class="address-box">
  20. <view class="address">
  21. <view class="address-title">
  22. 荆鹏软件园
  23. </view>
  24. <view class="address-value">
  25. <u-icon name="map"></u-icon>荆州市沙市区江津东路附155号
  26. </view>
  27. </view>
  28. <!-- 切换 -->
  29. <view class="switch" v-if="false">
  30. 切换园区
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 功能 -->
  35. <view class="function-group">
  36. <view class="function-item" >
  37. <view class="icon">
  38. <image class="img" src="@/assets/img/riLine-contacts-book-line.svg" mode=""></image>
  39. </view>
  40. <view class="name">
  41. 用户信息
  42. </view>
  43. <view class="arrow">
  44. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  45. </view>
  46. </view>
  47. <view class="function-item" v-if="false">
  48. <view class="icon">
  49. <image class="img" src="@/assets/img/riLine-pie-chart-line.svg" mode=""></image>
  50. </view>
  51. <view class="name">
  52. 用电监控
  53. </view>
  54. <view class="arrow">
  55. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  56. </view>
  57. </view>
  58. <view class="function-item" v-if="false">
  59. <view class="icon">
  60. <image class="img" src="@/assets/img/riLine-book-2-line.svg" mode=""></image>
  61. </view>
  62. <view class="name">
  63. 用电常识
  64. </view>
  65. <view class="arrow">
  66. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  67. </view>
  68. </view>
  69. <view class="function-item" >
  70. <view class="icon">
  71. <image class="img" src="@/assets/img/iconPark-order2.svg" mode=""></image>
  72. </view>
  73. <view class="name">
  74. 发票管理
  75. </view>
  76. <view class="arrow">
  77. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  78. </view>
  79. </view>
  80. <view class="function-item">
  81. <view class="icon">
  82. <image class="img" src="@/assets/img/riLine-customer-service-2-line.svg" mode=""></image>
  83. </view>
  84. <view class="name">
  85. 客服热线
  86. </view>
  87. <view class="arrow">
  88. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="function-group" v-if="false">
  93. <view class="function-item">
  94. <view class="icon">
  95. <image class="img" src="@/assets/img/riLine-user-settings-line.svg" mode=""></image>
  96. </view>
  97. <view class="name">
  98. 个人信息
  99. </view>
  100. <view class="arrow">
  101. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="function-group" >
  106. <view class="function-item">
  107. <view class="icon">
  108. <image class="img" src="@/assets/img/riLine-settings-2-line.svg" mode=""></image>
  109. </view>
  110. <view class="name">
  111. 设置
  112. </view>
  113. <view class="arrow">
  114. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  115. </view>
  116. </view>
  117. </view>
  118. <Tabbar :current="2" ></Tabbar>
  119. </view>
  120. </template>
  121. <script>
  122. import * as API from '@/apis/pagejs/hall/index.js'
  123. import Tabbar from '@/components/Tabbar.vue'
  124. export default {
  125. components: {
  126. Tabbar
  127. },
  128. data() {
  129. return {
  130. }
  131. },
  132. onLoad() {
  133. this.homePage()
  134. },
  135. methods: {
  136. homePage(){
  137. uni.showLoading({
  138. title: "加载中",
  139. mask: true,
  140. })
  141. API.homePage({
  142. }).then((response) => {
  143. uni.hideLoading();
  144. this.companyInfo=response.companyInfo;
  145. }).catch(error => {
  146. uni.hideLoading();
  147. })
  148. }
  149. }
  150. }
  151. </script>
  152. <style lang="scss" scoped>
  153. .background{
  154. background: linear-gradient(180deg, rgba(194,219,255,1) 53%,rgba(180,211,255,0) 100%);
  155. padding: 72rpx 32rpx;
  156. // 个人信息
  157. .person-infos{
  158. display: flex;
  159. align-items: center;
  160. .photo{
  161. width: 112rpx;
  162. height: 112rpx;
  163. border-radius: 50px;
  164. .img{
  165. width: 100%;
  166. height: 100%;
  167. }
  168. }
  169. .else{
  170. margin-left: 24rpx;
  171. .name{
  172. color: rgb(16,16,16);
  173. font-size: 36rpx;
  174. }
  175. .company{
  176. color: rgba(16,16,16,1);
  177. }
  178. }
  179. }
  180. // 地址
  181. .address-box{
  182. border-radius: 8px;
  183. background: linear-gradient(90deg, rgba(49,110,207,1) 2%,rgba(20,73,159,1) 100%);
  184. color: #fff;
  185. padding: 32rpx;
  186. margin-top: 40rpx;
  187. display: flex;
  188. align-items: center;
  189. .address{
  190. .address-title{
  191. font-size: 40rpx;
  192. }
  193. .address-value{
  194. font-size: 24rpx;
  195. margin-top: 8rpx;
  196. }
  197. }
  198. // 切换
  199. .switch{
  200. margin-left: auto;
  201. width: 160rpx;
  202. height: 64rpx;
  203. line-height: 64rpx;
  204. border-radius: 50px;
  205. text-align: center;
  206. color: rgba(255,255,255,1);
  207. border: 1px solid rgba(255,255,255,1);
  208. }
  209. }
  210. }
  211. // 功能
  212. .function-group{
  213. border-radius: 8px;
  214. background-color: #fff;
  215. margin: 0 32rpx 24rpx;
  216. .function-item{
  217. display: flex;
  218. align-items: center;
  219. padding: 26rpx 26rpx 26rpx 0;
  220. margin-left: 26rpx;
  221. border-bottom: 1px solid rgba(221,221,221,1);
  222. .icon{
  223. width: 40rpx;
  224. height: 40rpx;
  225. .img{
  226. width: 100%;
  227. height: 100%;
  228. }
  229. }
  230. .name{
  231. color: rgba(51,51,51,1);
  232. font-size: 30rpx;
  233. margin-left: 26rpx;
  234. }
  235. .arrow{
  236. margin-left: auto;
  237. }
  238. }
  239. }
  240. </style>