safe.vue 860 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 {mapState} from "vuex"
  12. import myListItem from "@/components/modules/my/my-list-item.vue";
  13. export default {
  14. components:{
  15. myListItem
  16. },
  17. data() {
  18. return {
  19. list:[
  20. { icon:"",name:"修改密码",clicktype:"navigateTo",url:"/pages/set/password",text:"去设置",auth:true },
  21. { icon:"",name:"修改手机号",clicktype:"navigateTo",url:"/pages/set/mobile",text:'',auth:true }
  22. ]
  23. }
  24. },
  25. onLoad() {
  26. this.list[1].text = this.userInfo.sysUser.mobile;
  27. },
  28. computed:{
  29. ...mapState(["userInfo"])
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style>
  36. </style>