pull/1/head
xiaoyu 4 years ago
parent b0abdfa8d2
commit eee1685361
  1. 132
      fir_client/src/components/FirFooter.vue
  2. 53
      fir_ser/fir_ser/settings.py

@ -0,0 +1,132 @@
<template>
<div>
<el-container class="navbar-wrapper">
<el-row :gutter="20">
<el-col :span="14" style="padding-top: 16px;margin-left: 60px">
<el-breadcrumb separator=">" style="height: 80px;font-size: 20px">
<el-breadcrumb-item :to="{ name:'FirIndex' }"><i class="el-icon-s-home elbi"></i>
</el-breadcrumb-item>
<el-breadcrumb-item :to="{ name:'FirApps'}"><i class="el-icon-apple elbi"></i>
</el-breadcrumb-item>
<el-breadcrumb-item v-if="$store.state.currentapp.name">{{ $store.state.currentapp.name}}
</el-breadcrumb-item>
</el-breadcrumb>
</el-col>
<el-col :span="2" :push="3">
<div class="block">
<el-avatar :size="66" :src="$store.state.userinfo.head_img"></el-avatar>
</div>
</el-col>
<el-col :span="4" :push="3">
<el-dropdown style="padding-top: 12px;" @command="handleCommand">
<el-button type="success" plain round>
{{$store.state.userinfo.first_name }}<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="userinfo">个人资料</el-dropdown-item>
<el-dropdown-item command="chpasswd">修改密码</el-dropdown-item>
<el-dropdown-item command="storage">存储管理</el-dropdown-item>
<el-dropdown-item command="supersign">超级签名</el-dropdown-item>
<el-dropdown-item command="exit">退出</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-col>
</el-row>
</el-container>
</div>
</template>
<script>
import {logout} from '../restful'
export default {
name: "FirHeader",
data() {
return {
current_user: {},
appName: '',
}
}, methods: {
handleCommand(command) {
if (command === 'userinfo') {
this.$router.push({name: 'FirUserProfileInfo'})
} else if (command === 'chpasswd') {
this.$router.push({name: 'FirUserProfileChangePwd'})
} else if (command === 'storage') {
this.$router.push({name: 'FirUserProfileStorage'})
} else if (command === 'supersign') {
this.$store.dispatch('doucurrentapp', {});
this.$router.push({"name": 'FirSuperSignBase', params: {act: "iosdeveloper"}})
} else if (command === 'exit') {
logout(data => {
if (data.code === 1000) {
this.$message.success("退出成功");
this.$cookies.remove("token");
this.$cookies.remove("auth_token");
this.$cookies.remove("username");
this.$cookies.remove("first_name");
this.$store.dispatch('doucurrentapp', {});
this.$store.dispatch('doUserinfo', {});
this.$router.push({name: 'FirLogin'});
} else {
this.$message.error("退出失败")
}
}, {})
}
}
}, created() {
this.appName = this.$route.params.id
}, watch: {
$route: function () {
this.appName = this.$route.params.id
}
}
}
</script>
<style scoped>
.el-container, .el-row {
margin: 10px auto;
width: 1166px;
}
.el-container {
margin: 10px auto 100px;
width: 1166px;
}
.navbar-wrapper {
background-color: #dbffeb;
font-size: 0;
border-radius: 10px;
}
.el-dropdown {
vertical-align: top;
}
.el-dropdown + .el-dropdown {
margin-left: 15px;
}
.el-icon-arrow-down {
font-size: 12px;
}
.elbi {
color: #67c23a;
}
</style>

@ -154,7 +154,7 @@ CACHES = {
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
"CONNECTION_POOL_KWARGS": {"max_connections": 100},
"PASSWORD": "nineven",
"PASSWORD": "",
"DECODE_RESPONSES": True
}
},
@ -225,6 +225,57 @@ THIRD_PART_CONFIG = {
},
'active': False
}
],
'sender': [
{
'name': 'email',
'type': 0,
'auth': {
'email_host': 'smtp.hehegames.cn',
'email_port': '25',
'username': 'git@hehegames.cn',
'password': 'QE.54272cd.ecQ.wSj',
'form': 'FlyApp Validation <noreply@hehegames.cn>',
'subject': '%(code)s验证',
'template_code': {
'login': '验证码%(code)s,您正在登录,若非本人操作,请勿泄露。',
'change': '验证码%(code)s,您正在尝试变更重要信息,请妥善保管账户信息。',
'register': '验证码%(code)s,您正在注册成为新用户,感谢您的支持!',
}
},
'active': True
},
{
'name': 'aliyun',
'type': 1,
'auth': {
'access_key': 'LTAI4FmYZgtCRZcs4j32GUAR',
'secret_key': '7i7J34blLcxTYbwjR9ToK7lEglvJw0',
'region_id': 'cn-hangzhou',
'sing_name': '合合相亲',
'template_code': {
'login': 'SMS_177185094',
'change': 'SMS_177185090',
'register': 'SMS_177185092',
}
},
'active': False
},
{
'name': 'jiguang',
'type': 2,
'auth': {
'app_key': 'd039807b5f13386e0b303b91',
'master_secret': '11dbb341abc02888ba277d3a',
'sign_id': '10823',
'template_code': {
'login': '1',
'change': '1',
'register': '1',
}
},
'active': True
},
]
}

Loading…
Cancel
Save