safe.vue 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. }
  39. },
  40. onLoad() {
  41. this.list[1].text = this.userInfo.sysUser.mobile;
  42. },
  43. onShow() {
  44. },
  45. computed: {
  46. ...mapState(["userInfo"])
  47. },
  48. methods: {
  49. }
  50. }
  51. </script>
  52. <style>
  53. </style>