Commit c4a41410 authored by 刘岩's avatar 刘岩

我的资料增加文件图片

部分新建培训代码
parent f71dbb5b
...@@ -50,7 +50,8 @@ const api = { ...@@ -50,7 +50,8 @@ const api = {
deleteCourseDiscuss: '/bdiscuss/delete', // 删除评论 deleteCourseDiscuss: '/bdiscuss/delete', // 删除评论
getMyInfo: '/user/queryMyInfo', // 获取当前登陆人信息 我的智学 个人中心 getMyInfo: '/user/queryMyInfo', // 获取当前登陆人信息 我的智学 个人中心
learning: '/BLesson/learning', // 判断是正在学该课程 643 learning: '/BLesson/learning', // 判断是正在学该课程 643
queryCourse: '/BCourse/queryCourse' // 301 查询课程分类 queryCourse: '/BCourse/queryCourse', // 301 查询课程分类
imgUpload: process.env.VUE_APP_BASE_API2 + '/api/oss/v1/file/upload' // 美腾方面图片上传接口
} }
export default api export default api
...@@ -352,6 +353,14 @@ export const post = { ...@@ -352,6 +353,14 @@ export const post = {
method: 'post', method: 'post',
params: params params: params
}) })
},
// 新建培训 图片上传
postImgUpload: (params) => {
return axios({
url: api.imgUpload,
method: 'post',
params: params
})
} }
} }
......
...@@ -270,6 +270,9 @@ ...@@ -270,6 +270,9 @@
color: #cccccc; color: #cccccc;
} }
} }
.form-data-field:active{
background: #ffffff !important;
}
.describe-field{ .describe-field{
display: block; display: block;
.van-field__control{ .van-field__control{
......
...@@ -111,6 +111,18 @@ export default { ...@@ -111,6 +111,18 @@ export default {
case 'zip': case 'zip':
this.imgName = require('@assets/images/MyInformation/ZIP.png') this.imgName = require('@assets/images/MyInformation/ZIP.png')
break break
case 'docx':
this.imgName = require('@assets/images/MyInformation/DOCX.png')
break
case 'pptx':
this.imgName = require('@assets/images/MyInformation/PPTX.png')
break
case 'xlsx':
this.imgName = require('@assets/images/MyInformation/XLSX.png')
break
case 'rar':
this.imgName = require('@assets/images/MyInformation/RAR.png')
break
default: default:
this.imgName = require('@assets/images/MyInformation/未知.png') this.imgName = require('@assets/images/MyInformation/未知.png')
break break
......
...@@ -122,6 +122,7 @@ export default { ...@@ -122,6 +122,7 @@ export default {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: none;
} }
.h-selector-container { .h-selector-container {
position: absolute; position: absolute;
...@@ -129,6 +130,7 @@ export default { ...@@ -129,6 +130,7 @@ export default {
left: 0; left: 0;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 100%;
background: #fff; background: #fff;
} }
.h-selector-layer { .h-selector-layer {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment