94 lines
1.8 KiB
Vue
94 lines
1.8 KiB
Vue
<template>
|
|
<view class="container commonPageBox">
|
|
<public-module></public-module>
|
|
<z-nav-bar title="个人资料"></z-nav-bar>
|
|
<UserInfo
|
|
:userInfo="userInfo"
|
|
:$http="$http"
|
|
:dataList="dataList"
|
|
@show-submit-info="onShowSubmitInfo"
|
|
@close-submit-info="closeManager"
|
|
></UserInfo>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import UserInfo from "edu-core/components/user-info/index.vue";
|
|
import $http from "@/config/requestConfig.js";
|
|
import { mapState } from "vuex";
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
showSubmitInfoBlank: false,
|
|
submitInfo: {},
|
|
dataList: [
|
|
{
|
|
title: "昵称",
|
|
indexValue: "nickname",
|
|
type: "nickname",
|
|
},
|
|
{
|
|
title: "手机号",
|
|
indexValue: "tel",
|
|
type: "tel",
|
|
},
|
|
{
|
|
title: "邮箱",
|
|
indexValue: "email",
|
|
type: "email",
|
|
},
|
|
{
|
|
title: "密码",
|
|
indexValue: "password",
|
|
type: "password",
|
|
},
|
|
{
|
|
title: "年龄",
|
|
indexValue: "age",
|
|
type: "age",
|
|
},
|
|
{
|
|
title: "性别",
|
|
indexValue: "sex",
|
|
type: "sex",
|
|
},
|
|
{
|
|
title: "身份",
|
|
indexValue: "socialIdentity",
|
|
type: "profile",
|
|
},
|
|
],
|
|
};
|
|
},
|
|
onLoad() {
|
|
uni.hideTabBar();
|
|
},
|
|
computed: {
|
|
...mapState(["userInfo"]),
|
|
},
|
|
onShow() {
|
|
uni.hideTabBar();
|
|
},
|
|
components: {
|
|
UserInfo,
|
|
},
|
|
methods: {
|
|
onShowSubmitInfo(info) {
|
|
this.submitInfo = info;
|
|
this.showSubmitInfoBlank = true;
|
|
},
|
|
closeManager() {
|
|
this.submitInfo = {};
|
|
this.showSubmitInfoBlank = false;
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.container{
|
|
padding-top: 5px;
|
|
}
|
|
</style>
|