personalCenter.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <template>
  2. <view class="container">
  3. <view class="user-box">
  4. <view class="icon-name-box">
  5. <view class="icon-box">
  6. <cover-image class="icon" :src="`/static/chat-icon/${user.icon}.png`"></cover-image>
  7. </view>
  8. <view class="name-box">
  9. <view class="name" v-if="authority">
  10. <view class="text">
  11. {{user.username}}
  12. </view>
  13. <view class="iconfont icon-xiugai"></view>
  14. </view>
  15. <view class="function" v-else>
  16. <view class="function-item">
  17. 登录
  18. </view>/
  19. <view class="function-item">
  20. 注册
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="info-box">
  26. <view class="info-item-box">
  27. <view class="label">
  28. 任职机构:
  29. </view>
  30. <view class="text">
  31. {{authority ? user.employment : ''}}
  32. </view>
  33. </view>
  34. <view class="info-item-box">
  35. <view class="label">
  36. 机构备案证号:
  37. </view>
  38. <view class="text">
  39. {{authority ? user.recordCertificateNumber : ''}}
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="certificate-box">
  45. <view class="title-box">
  46. 我的证明
  47. </view>
  48. <view class="list-box">
  49. <view class="list-item-box" :class="[authority ? 'zhongjie-front-zhiyin' : 'zhongjie-front-login']">
  50. </view>
  51. <view class="list-item-box" :class="[authority ? 'zhongjie-back-zhiyin' : 'zhongjie-back-login']">
  52. </view>
  53. <view class="list-item-box" :class="[authority ? 'anjie-back-zhiyin' : 'anjie-back-login']">
  54. </view>
  55. </view>
  56. </view>
  57. <view class="menu-box">
  58. <view class="menu-item-box">
  59. <view class="icon-box">
  60. <view class="iconfont icon-qianbi"></view>
  61. </view>
  62. <view class="content-box">
  63. 会缴缴交
  64. </view>
  65. <view class="suffix-box">
  66. <view class="iconfont icon-chevron-right"></view>
  67. </view>
  68. </view>
  69. <view class="menu-item-box">
  70. <view class="icon-box">
  71. <view class="iconfont icon-dingdan"></view>
  72. </view>
  73. <view class="content-box">
  74. 我的订单
  75. </view>
  76. <view class="suffix-box">
  77. <view class="iconfont icon-chevron-right"></view>
  78. </view>
  79. </view>
  80. <view class="menu-item-box">
  81. <view class="icon-box">
  82. <view class="iconfont icon-xiazai"></view>
  83. </view>
  84. <view class="content-box">
  85. 视频缓存
  86. </view>
  87. <view class="suffix-box">
  88. <view class="iconfont icon-chevron-right"></view>
  89. </view>
  90. </view>
  91. <view class="menu-item-box">
  92. <view class="icon-box">
  93. <view class="iconfont icon-shoucang"></view>
  94. </view>
  95. <view class="content-box">
  96. 我的收藏
  97. </view>
  98. <view class="suffix-box">
  99. <view class="iconfont icon-chevron-right"></view>
  100. </view>
  101. </view>
  102. <view class="menu-item-box">
  103. <view class="icon-box">
  104. <view class="iconfont icon-anquan"></view>
  105. </view>
  106. <view class="content-box">
  107. 常见问题
  108. </view>
  109. <view class="suffix-box">
  110. <view class="iconfont icon-chevron-right"></view>
  111. </view>
  112. </view>
  113. <view class="menu-item-box">
  114. <view class="icon-box">
  115. <view class="iconfont icon-yonghuzu"></view>
  116. </view>
  117. <view class="content-box">
  118. 联系我们
  119. </view>
  120. <view class="suffix-box">
  121. <view class="iconfont icon-chevron-right"></view>
  122. </view>
  123. </view>
  124. <view class="menu-item-box">
  125. <view class="icon-box">
  126. <view class="iconfont icon-shezhi"></view>
  127. </view>
  128. <view class="content-box">
  129. 退出/切换账号
  130. </view>
  131. <view class="suffix-box">
  132. <view class="iconfont icon-chevron-right"></view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </template>
  138. <script setup>
  139. import { ref } from 'vue'
  140. import { onLoad } from '@dcloudio/uni-app'
  141. const user = ref({
  142. icon: 'jiaoyu',
  143. username: '某某某',
  144. employment: '广州市xx地产有限公司',
  145. recordCertificateNumber: '123xxxx'
  146. })
  147. const authority = ref('')
  148. onLoad(() => {
  149. // authority.value = uni.getStorageSync('authority')
  150. })
  151. </script>
  152. <style lang="scss" scoped>
  153. $certificate-width: 220rpx;
  154. $certificate-height: 300rpx;
  155. .container {
  156. height: 100vh;
  157. width: 100vw;
  158. padding: 0 20rpx;
  159. background: rgb(141, 204, 255);
  160. background: -moz-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  161. background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  162. background: -o-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  163. background: -ms-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  164. background: linear-gradient( 180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  165. .user-box {
  166. padding: 0 40rpx;
  167. .icon-name-box {
  168. display: flex;
  169. align-items: center;
  170. gap: 30rpx;
  171. margin-bottom: 15rpx;
  172. .icon-box {
  173. width: 90rpx;
  174. height: 90rpx;
  175. background-color: #fff;
  176. border-radius: 50%;
  177. overflow: hidden;
  178. -webkit-box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(168, 221, 239, 0.75);
  179. -moz-box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(168, 221, 239, 0.75);
  180. box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(168, 221, 239, 0.75);
  181. .icon {
  182. height: 100%;
  183. width: 100%;
  184. object-fit: cover;
  185. }
  186. }
  187. .name-box {
  188. font-size: $uni-title-font-size-1;
  189. letter-spacing: 5rpx;
  190. .name {
  191. display: flex;
  192. gap: 5rpx;
  193. .iconfont {
  194. font-size: $uni-font-size-3;
  195. }
  196. }
  197. .function {
  198. display: flex;
  199. gap: 5rpx;
  200. }
  201. }
  202. }
  203. .info-box {
  204. .info-item-box {
  205. display: flex;
  206. align-items: center;
  207. gap: 10rpx;
  208. margin-bottom: 10rpx;
  209. font-size: $uni-font-size-1;
  210. font-weight: bold;
  211. letter-spacing: 3rpx;
  212. }
  213. }
  214. }
  215. .certificate-box {
  216. padding: 0 20rpx;
  217. margin-top: 20rpx;
  218. .title-box {
  219. font-size: $uni-title-font-size-3;
  220. font-weight: bold;
  221. }
  222. .list-box {
  223. padding: 20rpx 50rpx;
  224. width: 100%;
  225. display: flex;
  226. gap: 130rpx;
  227. overflow-x: scroll;
  228. overflow-y: hidden;
  229. white-space:nowrap;
  230. .list-item-box {
  231. flex-shrink: 0;
  232. height: $certificate-height;
  233. width: $certificate-width;
  234. background-color: #fff;
  235. &:nth-child(1) {
  236. background-color: #fff;
  237. }
  238. }
  239. .zhengshu-empty {
  240. @include backgroundImg('/static/images/zhengshu/zhengshu-empty.png')
  241. }
  242. .zhongjie-front-login {
  243. @include backgroundImg('/static/images/zhengshu/zhongjie-front-login.png')
  244. }
  245. .zhongjie-front-zhiyin {
  246. @include backgroundImg('/static/images/zhengshu/zhongjie-front-zhiyin.png')
  247. }
  248. .zhongjie-back {
  249. @include backgroundImg('/static/images/zhengshu/zhongjie-back.png')
  250. }
  251. .zhongjie-back-login {
  252. @include backgroundImg('/static/images/zhengshu/zhongjie-back-login.png')
  253. }
  254. .zhongjie-back-zhiyin {
  255. @include backgroundImg('/static/images/zhengshu/zhongjie-back-zhiyin.png')
  256. }
  257. .anjie-back {
  258. @include backgroundImg('/static/images/zhengshu/anjie-back.png')
  259. }
  260. .anjie-back-login {
  261. @include backgroundImg('/static/images/zhengshu/anjie-back-login.png')
  262. }
  263. .anjie-back-zhiyin {
  264. @include backgroundImg('/static/images/zhengshu/anjie-back-zhiyin.png')
  265. }
  266. }
  267. }
  268. .menu-box {
  269. padding: 20rpx 20rpx;
  270. margin: 10rpx 0;
  271. background-color: #fff;
  272. width: 100%;
  273. border-radius: $uni-card-border-radius;
  274. -webkit-box-shadow: 0px 0px 12rpx 0px rgba(50, 50, 50, 0.25);
  275. -moz-box-shadow: 0px 0px 12rpx 0px rgba(50, 50, 50, 0.25);
  276. box-shadow: 0px 0px 12rpx 0px rgba(50, 50, 50, 0.25);
  277. .menu-item-box {
  278. height: 100rpx;
  279. font-size: $uni-font-size-1;
  280. padding: 10rpx;
  281. display: flex;
  282. gap: 10rpx;
  283. align-items: center;
  284. border-radius: $uni-card-border-radius;
  285. &:active {
  286. background-color: $uni-bg-color-hover;
  287. }
  288. .icon-box {
  289. width: 5%;
  290. font-weight: bold;
  291. }
  292. .content-box {
  293. width: 75%;
  294. letter-spacing: 3rpx;
  295. }
  296. .suffix-box {
  297. width: 20%;
  298. text-align: right;
  299. }
  300. }
  301. }
  302. }
  303. </style>