Files
sociology_app/pages/mine/userInfo/persData.vue
chenghuan 02436fe222 chore: 添加记录观看时长;个人资料添加身份项;
- 将应用版本从1.0.57更新至1.0.58
- 将edu-core依赖从本地路径更新至git仓库地址
- 调整baseUrl配置以使用线上正式环境
- 在用户信息页面中新增用户观看时间标签
2026-03-24 14:26:48 +08:00

92 lines
2.0 KiB
Vue

<template>
<view class="container commonPageBox">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="个人资料" bgColor="#258feb" fontColor="#fff"></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(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
},
computed: {
...mapState(["userInfo"]),
},
//页面显示
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
},
components: {
UserInfo
},
//方法
methods: {
onShowSubmitInfo(info) {
this.submitInfo = info;
this.showSubmitInfoBlank = true;
},
closeManager() {
this.submitInfo = {};
this.showSubmitInfoBlank = false;
},
},
};
</script>
<style lang="scss" scoped>
// @import "@/style/mixin.scss";
</style>