提交 6d8fde7e authored 作者: zhengyadong's avatar zhengyadong

删除console

上级 1cfbc7a8
......@@ -19,7 +19,6 @@
return {}
},
created() {
console.log(this.$route.meta=={})
},
watch: {},
methods: {
......
......@@ -44,11 +44,9 @@ export default {
},
methods:{
handleInput(e){
// console.log(e.target.value)
this.$emit('input',e.target.value)
},
handleChange(e){
// console.log(e.target.value)
this.$emit('change',e.target.value)
},
}
......
......@@ -130,9 +130,6 @@ export default {
this.activeName = []
},
choiseSelect(name){
console.log(this.activeName,222);
if(!Array.isArray(this.activeName)){
this.activeName = this.activeName.replace(/,/g,'').split('')
}
......
......@@ -23,7 +23,6 @@ export const downloadPath = 'download'
export const uploadPath = 'upload'
export const downText = function(link){
console.log(`${process.env.BASE_API}/file/file/download/${link}`,22222222);
window.open(`${process.env.BASE_API}/file/file/download/${link}`,'_blank')
}
export const videoUrl = function(link){
......
......@@ -37,7 +37,6 @@ service.interceptors.response.use(
return response
},
error => {
// console.log('err' + error)// for debug
Message({
message: '网络错误',
type: 'error',
......
......@@ -133,7 +133,6 @@
},
activated() {
console.log(121212)
if (!this.$route.meta.isBack || this.isFirstEnter) {
this.list = [];// 把数据清空,可以稍微避免让用户看到之前缓存的数据
// 如果isBack是false,表明需要获取新数据,否则就不再请求,直接使用缓存的数据
......@@ -147,7 +146,6 @@
this.listQuery.diyTypeCode = this.$route.query.code;
this.showName = this.$route.query.showName;
this.getList();
// console.log(this.$route.meta.isBack,this.isFirstEnter,'this')
}
// 恢复成默认的false,避免isBack一直是true,导致下次无法获取数据
this.$route.meta.isBack = false
......
......@@ -76,7 +76,6 @@ export default {
getIntegralAPI().then(res=>{
if(res.data.code == 0){
resolve(res.data.data)
console.log(res.data.data,2222);
}else{
reject(res.data.msg)
}
......@@ -94,9 +93,7 @@ export default {
getExceedAPI(obj).then(res=>{
if(res.data.code == 0){
resolve(res.data.data)
console.log(res.data.data,33333);
}else{
console.log(res.data.msg,33333);
// reject(res.data.msg)
}
}).catch(err=>{
......@@ -117,7 +114,6 @@ export default {
},5*60*1000)
console.log(res.data.data,'学习记录');
}else{
console.log(res.data.msg,33333);
}
})
},
......
......@@ -148,7 +148,6 @@
getAreaTreeList(){//省市区
getAreaTreeAPI().then(res=>{
console.log(1212,res.data)
if( res.data.status ){
this.addressData=res.data.data;
......@@ -156,7 +155,6 @@
})
},
onConfirmUnit(value, index){
console.log('单位名称',value);
this.unit.name=value.name;
this.saveFn(1);
},
......@@ -190,7 +188,6 @@
if(data.reserve3!=''&&data.reserve3){
data.reserve3=new Date().getFullYear()-Number(this.userMssage.reserve3)+1;
}
console.log(data)
saveUsermessageAPI(data).then(res=>{
if(res.data.status){
this.curShow=null;
......@@ -205,7 +202,6 @@
},
changeAdd(i,n){
/*debugger*/
console.log('所在地区',i,n)
if(n.length>0){
this.unit.province=n[0];
this.unit.city=n[1];
......@@ -215,7 +211,6 @@
},
saveAddress(i,n){
console.log('点击完成',this.value)
this.saveFn(3);
},
cityChecked(){},
......
......@@ -66,8 +66,6 @@
})
},
toView(item){
console.log(item,1);
// Toast.fail('功能开发中')
this.$router.push({name:'myCollectionDetail',query:{id:item.code, type:'coll'}})
......
......@@ -133,7 +133,6 @@
},
created() {
if(this.$route.query.type=='edit'){
console.log(this.$route.meta);
this.$route.meta.title = '修改个人信息';
}
this.curYear=new Date().getFullYear()-100;
......@@ -151,7 +150,6 @@
watch: {
'user.realName'(n,o){
if(this.user.realName==''){
console.log('监听年龄');
this.isRealname=true;
}else{
this.isRealname=false;
......
......@@ -150,7 +150,6 @@
code:null
},
this.getList (1);
// console.log(this.$route.meta.isBack,this.isFirstEnter,'this')
}
// 恢复成默认的false,避免isBack一直是true,导致下次无法获取数据
this.$route.meta.isBack=false
......
......@@ -131,7 +131,6 @@
},
methods: {
getImgCode() {
console.log()
getImgCodeAPI().then(res => {
if (res.data.img) {
this.img = res.data.img;
......
......@@ -247,7 +247,6 @@ export default {
this.createPaperId = result.testPaperId
this.getDetail(result.status,result.endTime)
}catch(error) {
console.log(error,'error');
}
}
},
......
......@@ -250,10 +250,6 @@ export default {
},
// 动态渲染组件
_showCom(currentObj){
console.log(currentObj.questionType);
console.log(this.componentType[currentObj.questionType]);
this.componentName = this.componentType[currentObj.questionType]
},
......@@ -298,7 +294,6 @@ export default {
this.rightAns.indexOf(type) != -1 && (num += 1)
this.userAns.indexOf(type) != -1 && (num += 2)
this.currentStatus[answer] += num
console.log(this.userAns,this.rightAns,'this.userAns == this.rightAns')
},
_filterAnswer(userAns,rightAns){
......
......@@ -357,7 +357,6 @@ export default {
// 根据题目类型来确定渲染内容
_showDetail(startIndex){ // startIndex 0 代表大题,1代表小题
let currentObj = this.currentObj
console.log(this,'thisthisthis');
if(currentObj.questionType === 5||currentObj.questionType === 6){
let list = this.childrenList = this.currentObj.children
......
......@@ -437,7 +437,6 @@ export default {
}
}
})
console.log(this.currentIndex,this.currentObj,'当前对象');
},
delData(){
this.list.splice(this.currentIndex,1)
......
......@@ -113,7 +113,6 @@ export default {
this.$router.push({name:'moonMatch'})
},
view(){
console.log(111);
this.$router.push({name:'viewMatch',query:{id:this.id, type:'match'}})
},
doAgain() {
......
......@@ -106,10 +106,8 @@ export default {
},
// 获取积分规则
getIntegral(){
console.log(2222);
getIntegralAPI().then(res=>{
if(res.data.code == 0){
console.log(res.data.data,2222);
this.integralInfo = res.data.data
}else{
}
......
......@@ -45,23 +45,18 @@ import { log } from 'util';
async saveStudy(){
// 查询积分规则
console.log(1);
let result = await this.getIntegral()
let time = Number(result[1]&&result[1].value||1)
console.log(result,1);
// 查询是否已经达到最大积分
let res1 = await this.getExceed()
console.log(res1,221);
if(!res1) {
this.learnTime = setInterval(()=>{
this.saveLearn()
},5*60*1000)
return
}
console.log(12);
// 保存学习记录
this.time = setTimeout(()=>{
console.log(1222);
this.saveLearnRecord()
},time*60*1000)
},
......@@ -71,7 +66,6 @@ import { log } from 'util';
getIntegralAPI().then(res=>{
if(res.data.code == 0){
resolve(res.data.data)
console.log(res.data.data,2222);
}else{
reject(res.data.msg)
}
......@@ -89,9 +83,7 @@ import { log } from 'util';
getExceedAPI(obj).then(res=>{
if(res.data.code == 0){
resolve(res.data.data)
console.log(res.data.data,33333);
}else{
console.log(res.data.msg,33333);
// reject(res.data.msg)
}
}).catch(err=>{
......@@ -112,7 +104,6 @@ import { log } from 'util';
},5*60*1000)
console.log(res.data.data,'学习记录');
}else{
console.log(res.data.msg,33333);
}
})
},
......@@ -143,7 +134,6 @@ import { log } from 'util';
getVideo(data){
console.log(2222,`${process.env.BASE_API}/file/${data}/index.m3u8`)
return `${process.env.BASE_API}/file/${data}/index.m3u8`
},
// 播放视频
......
......@@ -216,8 +216,6 @@ export default {
},
getDetail(){
getWeekDetailAPI(this.listQuery).then(res=>{
console.log(res.data.data);
if(res.data.code == 0){
this.list = res.data.data.list
if(this.list.length === 0) return
......@@ -227,14 +225,11 @@ export default {
this.colQuery.goodsId = this.currentObj.questionid
this.getColStatus()
// if(this.currentObj.questionType === 5||this.currentObj.questionType === 6){
// console.log(this.currentObj,111);
// this.childrenList = this.currentObj.children
// if(this.childrenList.length === 0) return
// this.currentChildrenIndex = 1
// this.currentChildrenObj = this.childrenList[0]
// this.rightAns = this.currentChildrenObj.rightanswer
// console.log(this.currentChildrenObj,2222);
// }
}
})
......@@ -414,7 +409,6 @@ export default {
// 完成
hasDown(){
this.backStatus = true
console.log(this.saveFrom,1);
saveWeekAPI(this.saveFrom).then(res=>{
if(res.data.code == 0){
this.$router.push({name:'viewPracticeReport',query:{id:this.code,title:this.topTitle,paperId:res.data.data.id}})
......@@ -425,7 +419,6 @@ export default {
// 获取收藏状态
getColStatus(){
getColStatusAPI(this.colQuery).then(res=>{
console.log(res.data,222);
if(res.data.code == 0){
this.collectionStatus = res.data.data
}
......@@ -442,7 +435,6 @@ export default {
}
let API = status ? addCollectionAPI(addData) : delCollectionAPI(delData)
API.then(res=>{
console.log(res.data,222);
if(res.data.code == 0){
Toast.success(`${!status?'取消收藏':'收藏成功'}`);
this.getColStatus()
......@@ -451,7 +443,6 @@ export default {
},
getColStatus(){
getColStatusAPI(this.colQuery).then(res=>{
console.log(res.data,222);
if(res.data.code == 0){
this.collectionStatus = res.data.data
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论