- 将应用版本号更新至1.0.50 - 修改edu-core依赖为git引用,版本更新至1.0.9 - 优化用户资料页面,增加用户信息展示和编辑功能 - 更新请求配置,改善加载动画逻辑 - 添加新权限请求以支持外部存储访问
92 lines
2.0 KiB
Vue
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>
|