增加footer 页面

pull/1/head
xiaoyu 4 years ago
parent 21ffdea520
commit 62c204a300
  1. 4
      fir_client/public/index.html
  2. 7
      fir_client/src/components/FirAppBase.vue
  3. 107
      fir_client/src/components/FirFooter.vue
  4. 4
      fir_client/src/restful/index.js
  5. 87
      fir_ser/tests/postudid.py

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="zh">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script src="<%= BASE_URL %>config.js"></script> <script src="<%= BASE_URL %>config.js"></script>
<title>fly分发平台</title> <title>FLY分发平台</title>
</head> </head>
<body> <body>
<noscript> <noscript>

@ -8,6 +8,10 @@
<div class="pbody"> <div class="pbody">
<router-view></router-view> <router-view></router-view>
</div> </div>
<el-footer>
<el-divider/>
<FirFooter></FirFooter>
</el-footer>
</el-container> </el-container>
</div> </div>
@ -15,10 +19,11 @@
<script> <script>
import FirHeader from "@/components/FirHeader"; import FirHeader from "@/components/FirHeader";
import FirFooter from "@/components/FirFooter";
export default { export default {
name: "FirAppBase", name: "FirAppBase",
components: {FirHeader}, components: {FirFooter, FirHeader},
mounted() { mounted() {
}, watch: {} }, watch: {}
} }

@ -1,106 +1,52 @@
<template> <template>
<div> <div>
<el-container class="navbar-wrapper"> <el-container class="navbar-wrapper">
<el-row :gutter="20"> <el-main align="center">
<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> <div style="width: 300px; margin: 0 auto; padding: 20px 0;">
<el-link :underline="false">Copyright &copy;&nbsp;2017-2020&nbsp;第九系艾文&nbsp;&nbsp;版权所有.</el-link>
</el-dropdown-menu> </div>
</el-dropdown>
</el-col> <div style="width: 300px; margin: 0 auto; padding: 20px 0;">
<a style="display: inline-block; text-decoration: none; height: 20px; line-height: 20px;" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41142202000049" target="_blank" rel="noopener">
<img style="float: left;" src="https://blog.dvcloud.xin/beianlogo/beianlogo.png" />
<el-link :underline="false" style="float: left; height: 20px; line-height: 20px; margin: 0px 0px 0px 5px; color: #939393;">豫公网安备 41142202000049</el-link>
</a>
</el-row> </div>
<div>
<div :underline="false" style="width: 200px; margin: 0 auto; padding: 10px 0;">
<el-link :underline="false" href="https://beian.miit.gov.cn" target="_blank" rel="nofollow noopener">豫ICP备15004336号</el-link>
</div>
</div>
</el-main>
</el-container> </el-container>
</div> </div>
</template> </template>
<script> <script>
import {logout} from '../restful'
export default { export default {
name: "FirHeader", name: "FirFooter",
data() { data() {
return { return {
current_user: {},
appName: '',
} }
}, methods: { }, 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() { }, created() {
this.appName = this.$route.params.id
}, watch: { }, watch: {
$route: function () {
this.appName = this.$route.params.id
}
} }
} }
</script> </script>
<style scoped> <style scoped>
.el-container, .el-row {
margin: 10px auto;
width: 1166px;
}
.el-container { .el-container {
margin: 10px auto 100px; margin: 10px auto 100px;
@ -108,25 +54,10 @@
} }
.navbar-wrapper { .navbar-wrapper {
background-color: #dbffeb;
font-size: 0; font-size: 0;
border-radius: 10px; 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> </style>

@ -86,7 +86,7 @@ function ErrorMsg(error) {
} }
} else { } else {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(error) console.log(error);
error.message = '连接服务器失败!'; error.message = '连接服务器失败!';
} }
if (error.response && error.response.status === 403) { if (error.response && error.response.status === 403) {
@ -100,7 +100,7 @@ function ErrorMsg(error) {
} }
} }
function getData(methods = true, url, params = {}, callBack, load, isCode = false) { function getData(methods, url, params = {}, callBack, load, isCode = false) {
if (methods === "DELETE") { if (methods === "DELETE") {
Axios Axios

@ -1,43 +1,46 @@
import requests # import requests
import random # import random
#
# short = ["bgql", "wjbu", "vnfg", "bgql"]
#
# udid_lists = [
# "f55df38afe5c1242b8bc478d0182bbd0d7d08929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d08929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d08922",
# "f55df38afe5c1242b8bc478d0182bbd0d7d01129",
# "f55df38afe5c1242b8bc478d0182bbd0d723929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d118929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d08929",
# "f55df38afe5c1242b8bc478d0182bbd0daed08929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d08929",
# "f55df38afe5c1242b8bc478d0182bbdfsdfe7d08929",
# "f55df38afe5c1242b8bc478d0182bbdfsdfe7d08929",
# "f55df38afe5c1242b8bc478d0182bbdfsdfe7d08929",
# "f55df38afe5c1242b8bc478d0182dsfsdd7d08929",
# "f55df38afe5c1242b8bc478d0182dsfsdd7d08929",
# "f55df38afe5c1242b8bc478d0182dsfsdd7d08929",
# "f55df38afe5c1242b8bc478d0182bbdsdfsadf8929",
# "f55df38afe5c1242b8bc478d01sdsdfsdd0d7d08929",
# "f55df38afe5c1242b8bc478sdfsdffsdafd7d08929",
# "f55df38afe5c1242b8bc478sdfsdffsdafd7d08929",
# "f55df38afe5c1242b8bc478sdfsdffsdafd7d08929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d08929",
# "f55df38afe5c1242b8bc478dsdfeasdfbbd0d7d08929",
# "f55df38afe5c1242b8bc478dfsdfseasbd0d7d08929",
# "f55df38afe5c1242b8bc478d0sdfseafsdbbd0d7d08929",
# "f55df38afe5c1242b8asdfae8ds2bbd0d7d118929",
# "f55df38afe5c1242b8bc47sfsdf2bbd0d7dd18929",
# "f55df38afe5c1242b8bc478d0182bbd0d7d0ae8929",
# "f55df38afe5c1242b8bc478d0182bbd0d7dsfe08929",
# ]
#
# for udid in udid_lists:
# data = '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>PRODUCT</key>\n\t<string>iPhone9,1</string>\n\t<key>SERIAL</key>\n\t<string>F71YD58GHG74</string>\n\t<key>UDID</key>\n\t<string>%s</string>\n\t<key>VERSION</key>\n\t<string>17E262</string>\n</dict>\n</plist>\n' % (
# udid)
# uri = "https://fly.harmonygames.cn/udid/%s" % (random.choice(short))
# # uri = "https://fly.harmonygames.cn/udid/%s" % ("bgql")
# req = requests.post(uri, data=data)
# print(req.status_code)
short = ["bgql", "wjbu", "vnfg", "bgql"] a = '验证码%(code)s,您正在注册成为新用户,感谢您的支持!'
print(a % {'code': 111})
udid_lists = [
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08922",
"f55df38afe5c1242b8bc478d0182bbd0d7d01129",
"f55df38afe5c1242b8bc478d0182bbd0d723929",
"f55df38afe5c1242b8bc478d0182bbd0d7d118929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478d0182bbd0daed08929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478d0182bbdfsdfe7d08929",
"f55df38afe5c1242b8bc478d0182bbdfsdfe7d08929",
"f55df38afe5c1242b8bc478d0182bbdfsdfe7d08929",
"f55df38afe5c1242b8bc478d0182dsfsdd7d08929",
"f55df38afe5c1242b8bc478d0182dsfsdd7d08929",
"f55df38afe5c1242b8bc478d0182dsfsdd7d08929",
"f55df38afe5c1242b8bc478d0182bbdsdfsadf8929",
"f55df38afe5c1242b8bc478d01sdsdfsdd0d7d08929",
"f55df38afe5c1242b8bc478sdfsdffsdafd7d08929",
"f55df38afe5c1242b8bc478sdfsdffsdafd7d08929",
"f55df38afe5c1242b8bc478sdfsdffsdafd7d08929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478dsdfeasdfbbd0d7d08929",
"f55df38afe5c1242b8bc478dfsdfseasbd0d7d08929",
"f55df38afe5c1242b8bc478d0sdfseafsdbbd0d7d08929",
"f55df38afe5c1242b8asdfae8ds2bbd0d7d118929",
"f55df38afe5c1242b8bc47sfsdf2bbd0d7dd18929",
"f55df38afe5c1242b8bc478d0182bbd0d7d0ae8929",
"f55df38afe5c1242b8bc478d0182bbd0d7dsfe08929",
]
for udid in udid_lists:
data = '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>PRODUCT</key>\n\t<string>iPhone9,1</string>\n\t<key>SERIAL</key>\n\t<string>F71YD58GHG74</string>\n\t<key>UDID</key>\n\t<string>%s</string>\n\t<key>VERSION</key>\n\t<string>17E262</string>\n</dict>\n</plist>\n' % (
udid)
uri = "https://fly.harmonygames.cn/udid/%s" % (random.choice(short))
# uri = "https://fly.harmonygames.cn/udid/%s" % ("bgql")
req = requests.post(uri, data=data)
print(req.status_code)

Loading…
Cancel
Save