| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <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
- },
- {
- icon: "",
- name: "账号注销",
- clicktype: "navigateTo",
- text: '去注销',
- url: "/pages/set/accountCancellation",
- auth: true
- },
- ],
- }
- },
- onLoad() {
- this.list[1].text = this.userInfo.sysUser.mobile;
- },
- onShow() {
- },
- computed: {
- ...mapState(["userInfo"])
- },
- methods: {
- }
- }
- </script>
- <style>
- </style>
|