移动端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

146 lignes
4.5 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-row style="background: url('../../../static/images/onlineHome/bg1.jpg') 50% ;height: 220px;border-radius:0 0 50px 50px;">
  4. <van-cell center style="padding-top: 50px;background: none">
  5. <template #title>
  6. <p style="color: #fff;margin-left: 10px;font-size: 20px">{{nickName}}</p>
  7. </template>
  8. <template #label>
  9. <p style="color:#fff;margin-left: 10px">{{deptName}}</p>
  10. </template>
  11. <template #right-icon>
  12. <van-image width="62"
  13. height="62"
  14. style="border-radius: 10px;overflow: hidden;margin-right: 8px"
  15. :src="avatar">
  16. </van-image>
  17. </template>
  18. </van-cell>
  19. </van-row>
  20. <van-cell-group style="width: 96%;margin:-50px 2% 2% 2%;border-radius: 6px;overflow: hidden;padding-top: 20px;padding-bottom: 20px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);">
  21. <van-cell title="画像(个人/农户)" is-link :to="{path:'personalPicture',params:{id:'1'}}">
  22. <template #icon>
  23. <van-image
  24. fit="contain"
  25. height="22"
  26. style="margin-right: 15px"
  27. src="../../../static/images/onlineHome/myIcon1.png"
  28. />
  29. </template>
  30. </van-cell>
  31. <van-cell title="我的业务" is-link to="done">
  32. <template #icon>
  33. <van-image
  34. fit="contain"
  35. height="22"
  36. style="margin-right: 15px"
  37. src="../../../static/images/onlineHome/myIcon2.png"
  38. />
  39. </template>
  40. </van-cell>
  41. <van-cell title="通讯录" is-link to="mailList">
  42. <template #icon>
  43. <van-image
  44. fit="contain"
  45. height="22"
  46. style="margin-right: 15px"
  47. src="../../../static/images/onlineHome/myIcon5.png"
  48. />
  49. </template>
  50. </van-cell>
  51. <van-cell title="生活缴费" is-link to="livePay">
  52. <template #icon>
  53. <van-image
  54. fit="contain"
  55. height="22"
  56. style="margin-right: 15px"
  57. src="../../../static/images/onlineHome/myIcon4.png"
  58. />
  59. </template>
  60. </van-cell>
  61. <van-cell title="投诉" is-link to="advice">
  62. <template #icon>
  63. <van-image
  64. fit="contain"
  65. height="22"
  66. style="margin-right: 15px"
  67. src="../../../static/images/onlineHome/myIcon6.png"
  68. />
  69. </template>
  70. </van-cell>
  71. <van-cell title="修改密码" is-link to="password">
  72. <template #icon>
  73. <van-image
  74. fit="contain"
  75. height="22"
  76. style="margin-right: 15px"
  77. src="../../../static/images/onlineHome/myIcon7.png"
  78. />
  79. </template>
  80. </van-cell>
  81. <van-cell title="退出登录" is-link @click="logout">
  82. <template #icon>
  83. <van-image
  84. fit="contain"
  85. height="22"
  86. style="margin-right: 15px"
  87. src="../../../static/images/onlineHome/myIcon8.png"
  88. />
  89. </template>
  90. </van-cell>
  91. </van-cell-group>
  92. <onlineHomeIndex></onlineHomeIndex>
  93. </div>
  94. </template>
  95. <script>
  96. import onlineHomeIndex from "../onlineHomeIndex";
  97. import {getInfo, logout} from "../../api/login";
  98. export default {
  99. components: {
  100. onlineHomeIndex
  101. },
  102. name: "my",
  103. data() {
  104. return {
  105. list: [],
  106. loading: false,
  107. finished: false,
  108. nickName:"",
  109. deptName:"",
  110. userId:"",
  111. avatar:"",
  112. };
  113. },
  114. created() {
  115. getInfo().then(response => {
  116. this.nickName = response.user.nickName
  117. this.deptName = response.user.dept.deptName
  118. this.userId = response.user.userId
  119. this.avatar = this.$store.getters.baseRoutingUrl + response.user.avatar
  120. });
  121. },
  122. methods: {
  123. logout(){
  124. /*logout().then(res => {
  125. this.$router.push({path:"../onlineHomeLogin"})
  126. })*/
  127. this.$store.dispatch('LogOut').then(() => {
  128. this.$router.push({path:"../onlineHomeLogin"})
  129. });
  130. }
  131. },
  132. }
  133. </script>
  134. <style scoped>
  135. >>> .my-swipe .van-swipe-item {
  136. color: #fff;
  137. font-size: 22px;
  138. line-height: 150px;
  139. text-align: center;
  140. background-color: #39a9ed;
  141. }
  142. </style>