Merge branch 'dev' of http://39.101.188.84:8000/suzhou-jichuang-lanhai/volunteer-pc into lijinlong
@ -1,13 +1,13 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 志愿者管理系统
|
VUE_APP_TITLE = 苏州园区志愿服务活动区块链平台
|
||||||
|
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 志愿者管理系统/开发环境
|
# 苏州园区志愿服务活动区块链平台/开发环境
|
||||||
# VUE_APP_BASE_API = 'https://vue.ruoyi.vip/prod-api'
|
# VUE_APP_BASE_API = 'https://vue.ruoyi.vip/prod-api'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.0.108:9034'
|
|
||||||
VUE_APP_BASE_API = 'http://39.101.188.84:9034'
|
VUE_APP_BASE_API = 'http://39.101.188.84:9034'
|
||||||
|
# VUE_APP_BASE_API = 'http://192.168.0.117:9034'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 志愿者管理系统
|
VUE_APP_TITLE = 苏州园区志愿服务活动区块链平台
|
||||||
|
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# 志愿者管理系统/生产环境
|
# 苏州园区志愿服务活动区块链平台/生产环境
|
||||||
VUE_APP_BASE_API = 'http://39.101.188.84:9034'
|
VUE_APP_BASE_API = 'http://39.101.188.84:9034'
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 志愿者管理系统
|
VUE_APP_TITLE = 苏州园区志愿服务活动区块链平台
|
||||||
|
|
||||||
NODE_ENV = production
|
NODE_ENV = production
|
||||||
|
|
||||||
# 测试环境配置
|
# 测试环境配置
|
||||||
ENV = 'staging'
|
ENV = 'staging'
|
||||||
|
|
||||||
# 志愿者管理系统/测试环境
|
# 苏州园区志愿服务活动区块链平台/测试环境
|
||||||
VUE_APP_BASE_API = '/stage-api'
|
VUE_APP_BASE_API = '/stage-api'
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 667 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 524 KiB |
@ -1,19 +1,21 @@
|
|||||||
const getters = {
|
const getters = {
|
||||||
sidebar: state => state.app.sidebar,
|
sidebar: (state) => state.app.sidebar,
|
||||||
size: state => state.app.size,
|
size: (state) => state.app.size,
|
||||||
device: state => state.app.device,
|
device: (state) => state.app.device,
|
||||||
dict: state => state.dict.dict,
|
dict: (state) => state.dict.dict,
|
||||||
visitedViews: state => state.tagsView.visitedViews,
|
visitedViews: (state) => state.tagsView.visitedViews,
|
||||||
cachedViews: state => state.tagsView.cachedViews,
|
cachedViews: (state) => state.tagsView.cachedViews,
|
||||||
token: state => state.user.token,
|
token: (state) => state.user.token,
|
||||||
avatar: state => state.user.avatar,
|
avatar: (state) => state.user.avatar,
|
||||||
name: state => state.user.name,
|
name: (state) => state.user.name,
|
||||||
introduction: state => state.user.introduction,
|
userId: (state) => state.user.userId,
|
||||||
roles: state => state.user.roles,
|
introduction: (state) => state.user.introduction,
|
||||||
permissions: state => state.user.permissions,
|
roles: (state) => state.user.roles,
|
||||||
permission_routes: state => state.permission.routes,
|
permissions: (state) => state.user.permissions,
|
||||||
topbarRouters:state => state.permission.topbarRouters,
|
permission_routes: (state) => state.permission.routes,
|
||||||
defaultRoutes:state => state.permission.defaultRoutes,
|
topbarRouters: (state) => state.permission.topbarRouters,
|
||||||
sidebarRouters:state => state.permission.sidebarRouters,
|
defaultRoutes: (state) => state.permission.defaultRoutes,
|
||||||
}
|
sidebarRouters: (state) => state.permission.sidebarRouters,
|
||||||
export default getters
|
integral: (state) => state.permission.integral,
|
||||||
|
};
|
||||||
|
export default getters;
|
||||||
|
@ -1,9 +1,76 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">地址管理</div>
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
:rules="rules"
|
||||||
|
label-width="80px"
|
||||||
|
class="user-address"
|
||||||
|
>
|
||||||
|
<el-form-item label="姓名" prop="nickName">
|
||||||
|
<el-input v-model="form.nickName" readonly></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="手机号" prop="phonenumber">
|
||||||
|
<el-input v-model="form.phonenumber" readonly></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="详细地址" prop="address">
|
||||||
|
<el-input v-model="form.address" type="textarea" :rows="3"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="handleSubmit()">提 交</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {};
|
import { getUserProfile, updateUserProfile } from "@/api/system/user.js";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {},
|
||||||
|
rules: {
|
||||||
|
address: [
|
||||||
|
{ required: true, message: "请输入详细地址", trigger: "blur" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getUserInfo();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getUserInfo() {
|
||||||
|
getUserProfile().then((res) => {
|
||||||
|
this.form = res.data;
|
||||||
|
console.log(this.form, res);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
updateUserProfile(this.form).then(() => {
|
||||||
|
this.$modal.msgSuccess("提交成功");
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style lang="scss" scoped>
|
||||||
|
.app-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-address {
|
||||||
|
padding: 30px 15px 0 15px;
|
||||||
|
width: 500px;
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|