index.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <template>
  2. <view class="mine">
  3. <view class="top">
  4. </view>
  5. <view class="top-card">
  6. <view class="top-left">
  7. <image src="../../static/images/avator.jpeg" mode=""></image>
  8. </view>
  9. <view class="top-right">
  10. <view class="text">
  11. <view class="text1">
  12. {{userInfo.true_name}}-{{userInfo.politics_status_text}}
  13. </view>
  14. <view class="text1" style="color: #959595;">
  15. {{userInfo.organization ? userInfo.organization.name :'--'}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="list">
  21. <view class="list-child" @click="changMess()">
  22. <view class="list-left">
  23. <image src="../../static/images/mine3.png" mode=""></image>
  24. </view>
  25. <view class="list-right">
  26. <text>个人信息</text>
  27. <text class="iconfont icon-right" style="float: right;"></text>
  28. </view>
  29. </view>
  30. <view class="list-child" @click="messageList()">
  31. <view class="list-left">
  32. <image src="../../static/images/notice3.png" mode=""></image>
  33. </view>
  34. <view class="list-right">
  35. <text>通知公告</text>
  36. <text class="iconfont icon-right" style="float: right;"></text>
  37. </view>
  38. </view>
  39. <view class="list-child" @click="shenbao()">
  40. <view class="list-left">
  41. <image src="../../static/images/notice3.png" mode=""></image>
  42. </view>
  43. <view class="list-right">
  44. <text>提交申报</text>
  45. <text class="iconfont icon-right" style="float: right;"></text>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="list1" @click="resetPassword()">
  50. <view class="list-child">
  51. <view class="list-left">
  52. <image src="../../static/images/reset.png" mode=""></image>
  53. </view>
  54. <view class="list-right">
  55. <text>修改密码 </text>
  56. <text class="iconfont icon-right" style="float: right;"></text>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="list1">
  61. <view class="list-child" @click="exit()">
  62. <view class="list-left">
  63. <image src="../../static/images/exit.png" mode=""></image>
  64. </view>
  65. <view class="list-right">
  66. <text>退出登录</text>
  67. <text class="iconfont icon-right" style="float: right;"></text>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. var app = getApp()
  75. export default {
  76. data() {
  77. return {
  78. userInfo: uni.getStorageSync('userInfo'),
  79. }
  80. },
  81. created() {
  82. },
  83. methods: {
  84. shenbao: function() {
  85. uni.navigateTo({
  86. url: './shenbao'
  87. })
  88. },
  89. changMess: function() {
  90. uni.navigateTo({
  91. url: './changeMessage'
  92. })
  93. },
  94. messageList: function() {
  95. uni.navigateTo({
  96. url: './messageList'
  97. })
  98. },
  99. exit: function() {
  100. uni.showModal({
  101. title: '提示',
  102. content: '即将退出系统',
  103. success: function(res) {
  104. if (res.confirm) {
  105. app.request('/authorization', '', 'delete').then(res => {
  106. uni.reLaunch({
  107. url: '../login/index'
  108. })
  109. uni.clearStorageSync()
  110. })
  111. } else if (res.cancel) {
  112. console.log('用户点击取消');
  113. }
  114. }
  115. });
  116. },
  117. resetPassword: function() {
  118. uni.navigateTo({
  119. url: './resetPassword'
  120. })
  121. }
  122. }
  123. }
  124. </script>
  125. <style lang="scss">
  126. page {
  127. background-color: #f4f4f4;
  128. }
  129. .mine {
  130. position: relative;
  131. .top-card {
  132. box-shadow: 2px 2px 5px #d5d5d5;
  133. border-radius: 12upx;
  134. position: absolute;
  135. width: 90%;
  136. margin: 0 auto;
  137. height: 230upx;
  138. background-color: #FFFFFF;
  139. margin-top: -200upx;
  140. top: 400upx;
  141. left: 5%;
  142. .top-left {
  143. width: 140upx;
  144. height: 140upx;
  145. left: 40%;
  146. border-radius: 50%;
  147. overflow: hidden;
  148. margin: 0 auto;
  149. margin-top: -70upx;
  150. z-index: 6000;
  151. margin-bottom: 20upx;
  152. image {
  153. width: 140upx;
  154. height: 140upx;
  155. }
  156. }
  157. .top-right {
  158. margin: 0 auto;
  159. text-align: center;
  160. .text {
  161. height: 230upx;
  162. border-radius: 50%;
  163. .text1 {
  164. height: 50upx;
  165. line-height: 50upx;
  166. font-size: 28upx;
  167. }
  168. }
  169. }
  170. }
  171. .top {
  172. display: flex;
  173. height: 350upx;
  174. width: 100%;
  175. background-color: #e61916;
  176. border-radius: 0 0 30% 30%;
  177. }
  178. .list,
  179. .list1 {
  180. box-shadow: 2px 2px 5px #d5d5d5;
  181. width: 90%;
  182. margin: 0 auto;
  183. background-color: #FFFFFF;
  184. border-radius: 10upx;
  185. margin-top: 120upx;
  186. .list-child {
  187. height: 100upx;
  188. line-height: 100upx;
  189. padding: 0 30upx;
  190. border-bottom: solid 2upx #f0f0f0;
  191. font-size: 30upx;
  192. display: flex;
  193. .list-left {
  194. flex: 0 0 50upx;
  195. margin-right: 10upx;
  196. image {
  197. height: 40upx;
  198. width: 40upx;
  199. margin-top: 30upx;
  200. }
  201. }
  202. .list-right {
  203. flex: 1;
  204. }
  205. .left-icon {
  206. color: #e67c7c;
  207. font-size: 38upx;
  208. margin-right: 10upx;
  209. line-height: 90upx;
  210. }
  211. }
  212. }
  213. .list1 {
  214. margin-top: 30upx;
  215. }
  216. .exit {
  217. height: 80upx;
  218. margin-top: 50upx;
  219. line-height: 80upx;
  220. font-size: 30upx;
  221. text-align: center;
  222. color: #e61916;
  223. }
  224. }
  225. </style>