123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <view class="body">
- <!-- 公共组件-每个页面必须引入 -->
- <public-module></public-module>
- <block v-for="(item,index) in list" :key="index">
- <my-list-item :item="item" :index="index"></my-list-item>
- </block>
- </view>
- </template>
- <script>
- import {mapState} from "vuex"
- import myListItem from "@/components/modules/my/my-list-item.vue";
- export default {
- components:{
- myListItem
- },
- data() {
- return {
- list:[
- { icon:"",name:"修改密码",clicktype:"navigateTo",url:"/pages/set/password",text:"去设置",auth:true },
- { icon:"",name:"修改手机号",clicktype:"navigateTo",url:"/pages/set/mobile",text:'',auth:true }
- ]
- }
- },
- onLoad() {
- this.list[1].text = this.userInfo.sysUser.mobile;
- },
- computed:{
- ...mapState(["userInfo"])
- },
- methods: {
-
- }
- }
- </script>
- <style>
- </style>
|