提交 6e9f725d authored 作者: lihuihui's avatar lihuihui

修改bug

上级 fb7cecba
......@@ -10,7 +10,9 @@ export function bindWechat(data) {
}
// 修改密码
export function updatePassword(data) {
return httpRequest.post('/api/usercenter/user/change-pwd-by-cookie', data)
return httpRequest.post('/api/usercenter/user/change-pwd-by-cookie', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
// 重置密码
export function resetPassword(data) {
......
......@@ -346,11 +346,13 @@ export default {
background: none;
border: 1px solid #58C0D9;
color: #58C0DA;
font-family: auto;
}
.el-textarea__inner{
background: none;
border: 1px solid #58C0D9;
color: #58C0DA;
font-family: auto;
}
}
}
......
......@@ -264,7 +264,7 @@ export default {
margin-right: 20px;
span{
font-weight: bold;
color: #222222;
// color: #222222;
}
}
}
......
......@@ -260,7 +260,7 @@ export default {
margin-right: 20px;
span{
font-weight: bold;
color: #222222;
// color: #222222;
}
}
}
......
......@@ -249,7 +249,7 @@ export default {
}
span{
font-weight: bold;
color: #222222;
// color: #222222;
}
}
}
......
......@@ -23,7 +23,7 @@
<p>{{ item.rank }}</p>
<p>{{ item.school }}</p>
<p>{{ item.username }}</p>
<p>{{ item.updated_at }}</p>
<p>{{ item.updated_at || item.created_at }}</p>
<p v-if="selectValue == 11 || selectValue == 21 || selectValue == 31">{{ item.times }}</p>
<p v-else>{{ item.score }}</p>
</li>
......
......@@ -118,6 +118,11 @@ export default {
data2.push(this.getNowTime(item.date_index))
})
this.polar = {
dataZoom: [{
type: 'inside',
start: 0,
end: 50
}],
grid: {
x: 30,
y: 20,
......@@ -210,11 +215,14 @@ export default {
const mm = date.getMonth() + (n === 1 ? 0 : 1)
const dd = date.getDate()
const hh = date.getHours()
const mf = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
const ss = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
dateTime = n > 1 ? yy + '-' + mm + '-' + dd : yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
const mf = date.getMinutes()
const ss = date.getSeconds()
dateTime = this.toDo(yy) + '-' + this.toDo(mm) + '-' + this.toDo(dd) + ' ' + this.toDo(hh) + ':' + this.toDo(mf) + ':' + this.toDo(ss)
return dateTime
},
toDo(n) {
return n < 10 ? '0' + n : n
},
getRank() {
const param = {
type: 10,
......
......@@ -41,13 +41,13 @@ httpRequest.interceptors.request.use(
config.params = params
}
// config.data = params
// if (config.headers['Content-Type'] === 'multipart/form-data') {
// const form = new window.FormData()
// for (const key in config.data) {
// form.append(key, config.data[key])
// }
// config.data = form
// }
if (config.headers['Content-Type'] === 'multipart/form-data') {
const form = new window.FormData()
for (const key in config.data) {
form.append(key, config.data[key])
}
config.data = form
}
return config
},
function(error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论