safe.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view class="body">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <block v-for="(item,index) in list" :key="index">
  6. <my-list-item :item="item" :index="index"></my-list-item>
  7. </block>
  8. </view>
  9. </template>
  10. <script>
  11. import {
  12. mapState
  13. } from "vuex"
  14. import myListItem from "@/components/modules/my/my-list-item.vue";
  15. export default {
  16. components: {
  17. myListItem
  18. },
  19. data() {
  20. return {
  21. list: [{
  22. icon: "",
  23. name: "修改密码",
  24. clicktype: "navigateTo",
  25. url: "/pages/set/password",
  26. text: "去设置",
  27. auth: true
  28. },
  29. {
  30. icon: "",
  31. name: "修改手机号",
  32. clicktype: "navigateTo",
  33. url: "/pages/set/mobile",
  34. text: '',
  35. auth: true
  36. },
  37. {
  38. icon: "",
  39. name: "账号注销",
  40. clicktype: "navigateTo",
  41. text: '去注销',
  42. url: "/pages/set/accountCancellation",
  43. auth: true
  44. },
  45. ],
  46. }
  47. },
  48. onLoad() {
  49. this.list[1].text = this.userInfo.sysUser.mobile;
  50. },
  51. onShow() {
  52. },
  53. computed: {
  54. ...mapState(["userInfo"])
  55. },
  56. methods: {
  57. }
  58. }
  59. </script>
  60. <style>
  61. </style>