mine.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 个人信息 -->
  5. <view class="person-infos" @click="gotoUrl('/pages/businessHall/mine/personInfos')" >
  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. <view class="image">
  29. <image class="img" src="../../../assets/img/mineBackground.svg" mode=""></image>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 功能 -->
  34. <view class="function-group">
  35. <view class="function-item" @click="gotoUrl('/pages/businessHall/mine/tenantInformation')" >
  36. <view class="icon">
  37. <image class="img" src="@/assets/img/riLine-contacts-book-line.svg" mode=""></image>
  38. </view>
  39. <view class="name">
  40. 用户信息
  41. </view>
  42. <view class="arrow">
  43. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  44. </view>
  45. </view>
  46. <view class="function-item" v-if="false">
  47. <view class="icon">
  48. <image class="img" src="@/assets/img/riLine-pie-chart-line.svg" mode=""></image>
  49. </view>
  50. <view class="name">
  51. 用电监控
  52. </view>
  53. <view class="arrow">
  54. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  55. </view>
  56. </view>
  57. <view class="function-item" v-if="false">
  58. <view class="icon">
  59. <image class="img" src="@/assets/img/riLine-book-2-line.svg" mode=""></image>
  60. </view>
  61. <view class="name">
  62. 用电常识
  63. </view>
  64. <view class="arrow">
  65. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  66. </view>
  67. </view>
  68. <view class="function-item" @click="gotoUrl('/pages/businessHall/invoiceManagement/invoiceManagement')" >
  69. <view class="icon">
  70. <image class="img" src="@/assets/img/iconPark-order2.svg" mode=""></image>
  71. </view>
  72. <view class="name">
  73. 发票管理
  74. </view>
  75. <view class="arrow">
  76. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  77. </view>
  78. </view>
  79. <view class="function-item" @click="gotoUrl('/pages/businessHall/mine/contactService')" >
  80. <view class="icon">
  81. <image class="img" src="@/assets/img/riLine-customer-service-2-line.svg" mode=""></image>
  82. </view>
  83. <view class="name">
  84. 客服热线
  85. </view>
  86. <view class="arrow">
  87. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="function-group" v-if="false">
  92. <view class="function-item">
  93. <view class="icon">
  94. <image class="img" src="@/assets/img/riLine-user-settings-line.svg" mode=""></image>
  95. </view>
  96. <view class="name">
  97. 个人信息
  98. </view>
  99. <view class="arrow">
  100. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="function-group" >
  105. <view class="function-item" @click="gotoUrl('/pages/businessHall/mine/setting')">
  106. <view class="icon">
  107. <image class="img" src="@/assets/img/riLine-settings-2-line.svg" mode=""></image>
  108. </view>
  109. <view class="name">
  110. 设置
  111. </view>
  112. <view class="arrow">
  113. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  114. </view>
  115. </view>
  116. </view>
  117. <Tabbar :current="2" ></Tabbar>
  118. </view>
  119. </template>
  120. <script>
  121. import * as API from '@/apis/pagejs/hall/index.js'
  122. import Tabbar from '@/components/Tabbar.vue'
  123. export default {
  124. components: {
  125. Tabbar
  126. },
  127. data() {
  128. return {
  129. }
  130. },
  131. onLoad() {
  132. //zkxthis.homePage()
  133. },
  134. methods: {
  135. homePage(){
  136. uni.showLoading({
  137. title: "加载中",
  138. mask: true,
  139. })
  140. API.homePage({
  141. }).then((response) => {
  142. uni.hideLoading();
  143. this.companyInfo=response.companyInfo;
  144. }).catch(error => {
  145. uni.hideLoading();
  146. })
  147. }
  148. }
  149. }
  150. </script>
  151. <style lang="scss" scoped>
  152. .background{
  153. background: linear-gradient(180deg, rgba(194,219,255,1) 53%,rgba(180,211,255,0) 100%);
  154. padding: 72rpx 32rpx;
  155. // 个人信息
  156. .person-infos{
  157. display: flex;
  158. align-items: center;
  159. .photo{
  160. width: 112rpx;
  161. height: 112rpx;
  162. border-radius: 50px;
  163. .img{
  164. width: 100%;
  165. height: 100%;
  166. }
  167. }
  168. .else{
  169. margin-left: 24rpx;
  170. .name{
  171. color: rgb(16,16,16);
  172. font-size: 36rpx;
  173. }
  174. .company{
  175. color: rgba(16,16,16,1);
  176. }
  177. }
  178. }
  179. // 地址
  180. .address-box{
  181. border-radius: 8px;
  182. background: linear-gradient(90deg, rgba(49,110,207,1) 2%,rgba(20,73,159,1) 100%);
  183. color: #fff;
  184. padding:40rpx 32rpx;
  185. margin-top: 40rpx;
  186. display: flex;
  187. align-items: center;
  188. position: relative;
  189. .address{
  190. .address-title{
  191. font-size: 40rpx;
  192. }
  193. .address-value{
  194. font-size: 24rpx;
  195. margin-top: 8rpx;
  196. }
  197. }
  198. .image {
  199. width: 174rpx;
  200. height: 174rpx;
  201. position: absolute;
  202. right: 0;
  203. top: 20rpx;
  204. .img {
  205. width: 100%;
  206. height: 100%;
  207. }
  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>