Commit 8beefa98 authored by yun's avatar yun

Merge remote-tracking branch 'origin/master'

parents 980d4057 94734d5c
...@@ -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{
......
...@@ -412,7 +412,9 @@ export default { ...@@ -412,7 +412,9 @@ export default {
.discussContent{ .discussContent{
padding: 0 16px 15px 20px; padding: 0 16px 15px 20px;
} }
.discussContent::-webkit-scrollbar{
width: 0;
}
.discussBasic{ .discussBasic{
width: 100%; width: 100%;
margin-bottom: 19px; margin-bottom: 19px;
...@@ -449,6 +451,7 @@ export default { ...@@ -449,6 +451,7 @@ export default {
.Coursediscuss::-webkit-scrollbar {/*滚动条整体样式*/ .Coursediscuss::-webkit-scrollbar {/*滚动条整体样式*/
width: 0px; /*高宽分别对应横竖滚动条的尺寸*/ width: 0px; /*高宽分别对应横竖滚动条的尺寸*/
} }
.bubble{ .bubble{
width: 0; width: 0;
height: 0; height: 0;
...@@ -459,3 +462,13 @@ export default { ...@@ -459,3 +462,13 @@ export default {
left: 20px; left: 20px;
} }
</style> </style>
<style lang="less">
.Coursediscuss::-webkit-scrollbar{
width: 0;
}
.Coursediscuss{
.discussContent::-webkit-scrollbar{
width: 0;
}
}
</style>
...@@ -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
......
...@@ -77,28 +77,10 @@ export default { ...@@ -77,28 +77,10 @@ export default {
methods: { methods: {
// 返回按钮 // 返回按钮
back() { back() {
if (this.$route.name === 'Home') { alert(this.$route.query.goindex)
sendInfoToJava('close') if (this.$route.name === 'Home' || this.$route.query.goindex === 'true') {
// } else if (this.$route.name === 'CourseDetail' || this.$route.name === 'TrainDetail') { alert('进入关闭方法')
// if (this.fromName === 'More') { // sendInfoToJava('close')
// this.$router.replace({
// name: this.fromName
// // params: JSON.parse(sessionStorage.getItem('moreObj'))
// })
// } else if (this.fromName === 'ClassificationResult') {
// this.$router.replace({
// name: this.fromName,
// params: JSON.parse(sessionStorage.getItem('classificationResultObj'))
// })
// } else {
// this.$router.replace({
// name: this.fromName
// })
// }
// if (this.fromName === 'Home') {
// return false
// }
// this.$router.go(-1)
} else if (this.$route.name === 'Zcdsh') { } else if (this.$route.name === 'Zcdsh') {
this.$router.replace({ this.$router.replace({
name: 'Home' name: 'Home'
......
...@@ -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 {
......
...@@ -8,7 +8,7 @@ import * as _ from 'lodash' ...@@ -8,7 +8,7 @@ import * as _ from 'lodash'
import 'vant/lib/icon/local.css' import 'vant/lib/icon/local.css'
import {PullRefresh, Field, Image, Toast, Dialog} from 'vant' import {PullRefresh, Field, Image, Toast, Dialog} from 'vant'
import wnsdk from '@tjmt/wnsdk' import wnsdk from '@tjmt/wnsdk'
import {curriculumTrainRouter} from './utils' import {curriculumTrainRouter, setgoindex} from './utils'
import './assets/style/resetui.less' import './assets/style/resetui.less'
// 定义全局过滤器 // 定义全局过滤器
...@@ -30,6 +30,8 @@ Vue.use(PullRefresh) ...@@ -30,6 +30,8 @@ Vue.use(PullRefresh)
Vue.config.productionTip = false Vue.config.productionTip = false
// 定义线上课程 线下培训 跳转方法 // 定义线上课程 线下培训 跳转方法
Vue.prototype.$curriculumTrainRouter = curriculumTrainRouter Vue.prototype.$curriculumTrainRouter = curriculumTrainRouter
// 判断当前页面的历史记录是不是小于等于1
Vue.prototype.$setgoindex = setgoindex
Vue.prototype._ = _ Vue.prototype._ = _
Vue.prototype.$wnsdk = wnsdk Vue.prototype.$wnsdk = wnsdk
......
...@@ -449,4 +449,16 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le ...@@ -449,4 +449,16 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
} }
}) })
} }
// 判断首次进入项目 路由路径数量(通知进入页面,点击返回箭头关闭项目)
export function setgoindex() {
console.log(window.history.length)
alert(window.history.length)
if (window.history.length <= 1) {
if (location.href.indexOf('?') === -1) {
window.location.href = location.href + '?goindex=true'
} else if (location.href.indexOf('?') !== -1 && location.href.indexOf('goindex') === -1) {
window.location.href = location.href + '&goindex=true'
}
}
}
This diff is collapsed.
...@@ -62,16 +62,6 @@ ...@@ -62,16 +62,6 @@
</swipe> </swipe>
<!--分类--> <!--分类-->
<div class="classification"> <div class="classification">
<router-link
v-for="(item,index) in zcdshList"
:key="index"
:to="{name: 'Zcdsh', params:{url: item.url, title: item.menuName}}"
>
<div>
<img src="~@assets/images/index/01_03.png">
<span>{{ item.menuName }}</span>
</div>
</router-link>
<router-link :to="{name: 'OnlineExamination', params:{fromName: 'Home'}}"> <router-link :to="{name: 'OnlineExamination', params:{fromName: 'Home'}}">
<div> <div>
<img src="~@assets/images/index/02_03.png"> <img src="~@assets/images/index/02_03.png">
...@@ -84,6 +74,16 @@ ...@@ -84,6 +74,16 @@
<span>我的智学</span> <span>我的智学</span>
</div> </div>
</router-link> </router-link>
<router-link
v-for="(item,index) in zcdshList"
:key="index"
:to="{name: 'Zcdsh', params:{url: item.url, title: item.menuName}}"
>
<div>
<img src="~@assets/images/index/01_03.png">
<span>{{ item.menuName }}</span>
</div>
</router-link>
</div> </div>
<!--企业推荐--> <!--企业推荐-->
<div <div
...@@ -657,6 +657,7 @@ export default { ...@@ -657,6 +657,7 @@ export default {
this.HomeBLessons(this.tabsName) this.HomeBLessons(this.tabsName)
this.queryMenuById() this.queryMenuById()
window.addEventListener('scroll', this.handleScroll) window.addEventListener('scroll', this.handleScroll)
this.$setgoindex()
}, },
destroyed() { destroyed() {
window.removeEventListener('scroll', this.handleScroll, false) window.removeEventListener('scroll', this.handleScroll, false)
......
...@@ -838,7 +838,7 @@ export default { ...@@ -838,7 +838,7 @@ export default {
.nav-box{ .nav-box{
width: 100%; width: 100%;
height: 80px; height: 80px;
margin-top: 12px; margin-top: 10px;
background: #4498F0; background: #4498F0;
border-radius: 4px; border-radius: 4px;
& > p{ & > p{
......
...@@ -186,6 +186,7 @@ export default { ...@@ -186,6 +186,7 @@ export default {
}, },
mounted() { mounted() {
this.myInfo() this.myInfo()
this.$setgoindex()
} }
} }
</script> </script>
......
...@@ -46,9 +46,12 @@ export default { ...@@ -46,9 +46,12 @@ export default {
methods: { methods: {
}, },
mounted() { mounted() {
debugger
this.businessId = this.$route.query.businessId this.businessId = this.$route.query.businessId
this.title = this.$route.query.title this.title = this.$route.query.title
this.fromName = this.$route.query.fromName this.fromName = this.$route.query.fromName
console.log(this.businessId, '22222222222')
console.log(this.title, '11111111111')
QRCode.toCanvas(this.$refs.qRCode, process.env.VUE_APP_BASE_API4 + '/#/TrainSign?MT_ZX_QR_CODE=userCode&businessId=' + this.businessId + '&courseName=' + encodeURI(this.title) + '&corpId=6', {margin: 1}, function(error) { QRCode.toCanvas(this.$refs.qRCode, process.env.VUE_APP_BASE_API4 + '/#/TrainSign?MT_ZX_QR_CODE=userCode&businessId=' + this.businessId + '&courseName=' + encodeURI(this.title) + '&corpId=6', {margin: 1}, function(error) {
console.log(error) console.log(error)
}) })
......
...@@ -3,28 +3,28 @@ ...@@ -3,28 +3,28 @@
class="course-detail" class="course-detail"
> >
<div v-if="!loading"> <div v-if="!loading">
<div class="sign-class-name"> <div class="sign-class-name">
{{courseName}} {{courseName}}
</div> </div>
<img <img
v-if="isSucess==='success'" v-if="isSucess==='success'"
class="status-img" class="status-img"
src="~@/assets/images/sign_success.png" src="~@/assets/images/sign_success.png"
> >
<img <img
v-else v-else
class="status-img" class="status-img"
src="~@/assets/images/sign_error.png" src="~@/assets/images/sign_error.png"
> >
<div :class="['status-text',isSucess==='success'?'success-color':'fail-color']"> <div :class="['status-text',isSucess==='success'?'success-color':'fail-color']">
{{ isSucess==='success'?'签到成功':'签到失败' }} {{ isSucess==='success'?'签到成功':'签到失败' }}
</div> </div>
<div class="sign-date"> <div class="sign-date">
{{ new Date() | dateTime }} {{ new Date() | dateTime }}
</div> </div>
<div class="sign-date" v-if="isSucess !== 'success'"> <div class="sign-date" v-if="isSucess !== 'success'">
失败原因:{{isSucess === 'fail1' ? '您已签到,请勿重复签到' : (isSucess === 'fail2' ? '未报名该培训': (isSucess === 'fail3' ? '当前时间不在签到时间范围内' : (isSucess === 'fail4' ? '该课程不存在': '网络错误'))) }} 失败原因:{{isSucess === 'fail1' ? '您已签到,请勿重复签到' : (isSucess === 'fail2' ? '未报名该培训': (isSucess === 'fail3' ? '当前时间不在签到时间范围内' : (isSucess === 'fail4' ? '该课程不存在': '网络错误'))) }}
</div> </div>
</div> </div>
<Loading <Loading
class="full-load" class="full-load"
......
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