移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

180 line
4.6 KiB

  1. <template>
  2. <div class="app-container">
  3. <div class="topBackground">
  4. <van-nav-bar title="我的" fixed placeholder/>
  5. <van-row class="userInformation" v-if="user">
  6. <van-col :span="6">
  7. <van-image src="../../../../static/images/lawEnforcement/12.jpg" class="headImg" />
  8. </van-col>
  9. <van-col :span="12">
  10. <p class="userName">{{ user.userName }}</p>
  11. <p class="userDept">{{ user.dept.deptName }} <i style="margin-right: 0.5rem;"></i> {{ postGroup }}</p>
  12. </van-col>
  13. <van-col :span="6" align="right">
  14. <van-icon name="arrow" size="20" color="#FFF" style="line-height: 1.7rem;" />
  15. </van-col>
  16. </van-row>
  17. </div>
  18. <van-cell-group class="listBox">
  19. <van-cell is-link to="/lawEnforcement/programme">
  20. <template #title>
  21. <van-icon name="../../../static/images/lawEnforcement/icon/icon_fagl.png" size="20"></van-icon>
  22. <span class="custom-title">方案管理</span>
  23. </template>
  24. </van-cell>
  25. <van-cell is-link to="/lawEnforcement/complaint">
  26. <template #title>
  27. <van-icon name="../../../static/images/lawEnforcement/icon/icon_tshf.png" size="20"></van-icon>
  28. <span class="custom-title">投诉回复</span>
  29. </template>
  30. </van-cell>
  31. </van-cell-group>
  32. <van-cell-group class="listBox">
  33. <van-cell is-link to="/lawEnforcement/changePassword">
  34. <template #title>
  35. <van-icon name="../../../static/images/lawEnforcement/icon/icon_mmxg.png" size="20"></van-icon>
  36. <span class="custom-title">密码修改</span>
  37. </template>
  38. </van-cell>
  39. <van-cell is-link to="/lawEnforcement/feedback">
  40. <template #title>
  41. <van-icon name="../../../static/images/lawEnforcement/icon/icon_bzfk.png" size="20"></van-icon>
  42. <span class="custom-title">帮助反馈</span>
  43. </template>
  44. </van-cell>
  45. <van-cell is-link to="/lawEnforcement/agreement">
  46. <template #title>
  47. <van-icon name="../../../static/images/lawEnforcement/icon/icon_cpxy.png" size="20"></van-icon>
  48. <span class="custom-title">产品协议</span>
  49. </template>
  50. </van-cell>
  51. </van-cell-group>
  52. <van-button type="default" class="loginOut">退出登录</van-button>
  53. <law></law>
  54. </div>
  55. </template>
  56. <script>
  57. import { getUserProfile } from "@/api/lawEnforcement/index";
  58. import { logout ,getInfo } from "@/api/login/index";
  59. import law from "@/components/common/law_footer";
  60. export default {
  61. name: "user",
  62. components: {
  63. law
  64. },
  65. data() {
  66. return {
  67. user: {
  68. dept:{}
  69. },
  70. roleGroup: {},
  71. postGroup: {},
  72. activeTab: "userinfo"
  73. };
  74. },
  75. created() {
  76. this.getUser();
  77. },
  78. methods: {
  79. loginOut(){
  80. logout().then(response => {
  81. location.reload(true);
  82. });
  83. },
  84. getUser() {
  85. getUserProfile().then(response => {
  86. this.user = response.data;
  87. this.roleGroup = response.roleGroup;
  88. this.postGroup = response.postGroup;
  89. });
  90. }
  91. },
  92. };
  93. </script>
  94. <style scoped lang="scss">
  95. @font-face {
  96. font-family: SourceHanSansCNBold;
  97. src: url("../../../assets/fonts/SourceHanSansCN-Bold.otf");
  98. }
  99. .app-container {
  100. padding: 0 ;
  101. }
  102. /deep/ .van-hairline--bottom::after{
  103. border: none;
  104. }
  105. /deep/ .van-nav-bar{
  106. background-color: transparent;
  107. }
  108. /deep/ .van-nav-bar__title{
  109. color: #FFFFFF;
  110. }
  111. .topBackground{
  112. background-image: url("../../../../static/images/lawEnforcement/user_bg.png") ;
  113. background-size: 100%;
  114. background-repeat: no-repeat;
  115. }
  116. .headImg{
  117. width: 1.7rem;
  118. height: 1.7rem;
  119. border-radius: 10PX;
  120. overflow: hidden;
  121. }
  122. .userName{
  123. font-size: 0.55rem;
  124. color: #FFFFFF;
  125. line-height: 0.85rem;
  126. }
  127. .userDept{
  128. font-size: 0.4rem;
  129. color: #FFFFFF;
  130. line-height: 0.85rem;
  131. }
  132. .userInformation{
  133. padding: 0.3rem 6%;
  134. }
  135. .listBox{
  136. width: 96%;
  137. margin: 0 auto;
  138. border-radius: 8Px;
  139. overflow: hidden;
  140. box-shadow: 0PX 5PX 5PX #cccccc;
  141. margin-top: 10PX;
  142. padding: 3% 0;
  143. .van-icon{
  144. vertical-align: middle;
  145. }
  146. .van-cell{
  147. padding: 3% 5%;
  148. }
  149. .custom-title{
  150. font-size: 16PX;
  151. color: #333333;
  152. vertical-align: middle;
  153. line-height: 1;
  154. position: relative;
  155. margin-left: 5PX;
  156. }
  157. .tap{
  158. color: #1D6FE9;
  159. }
  160. .bgBlue{
  161. display: block;
  162. position: absolute;
  163. width: 17PX;
  164. height: 17PX;
  165. border-radius: 50%;
  166. background-color: rgba(29,111,233,0.26);
  167. top: -2PX;
  168. right: -8PX;
  169. }
  170. }
  171. .loginOut{
  172. width: 96%;
  173. margin: 10PX 2%;
  174. border-radius: 8Px;
  175. box-shadow: 0PX 5PX 5PX #cccccc;
  176. border: none;
  177. }
  178. </style>