|
@@ -38,25 +38,25 @@ export default {
|
|
|
handleLink(item,flag,index){
|
|
|
if(flag){
|
|
|
let url = this.LoginNavIndex +'&&&'+ this.userBg +'&&&'+ this.headerBorder +'&&&'+ this.headerBg
|
|
|
- if(getToken()){
|
|
|
- let MethodName = "/CourseServer/Client/ReadingManager/RecordMyPlayLocation_LBCourse";
|
|
|
- let data = {
|
|
|
- cs_item_id: item.id
|
|
|
- }
|
|
|
- getLogin(MethodName, data)
|
|
|
- .then((res) => {
|
|
|
- if(res.status === 1){
|
|
|
- this.$router.push({
|
|
|
- path: this.cardType===1?"/courseDetail":"/videoDetail",
|
|
|
- query: {
|
|
|
- headerConfig: encodeURIComponent(url),
|
|
|
- index: index,
|
|
|
- id: this.$route.query.id?this.$route.query.id:''
|
|
|
- },
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- }else{
|
|
|
+ // if(getToken()){
|
|
|
+ // let MethodName = "/CourseServer/Client/ReadingManager/RecordMyPlayLocation_LBCourse";
|
|
|
+ // let data = {
|
|
|
+ // cs_item_id: item.id
|
|
|
+ // }
|
|
|
+ // getLogin(MethodName, data)
|
|
|
+ // .then((res) => {
|
|
|
+ // if(res.status === 1){
|
|
|
+ // this.$router.push({
|
|
|
+ // path: this.cardType===1?"/courseDetail":"/videoDetail",
|
|
|
+ // query: {
|
|
|
+ // headerConfig: encodeURIComponent(url),
|
|
|
+ // index: index,
|
|
|
+ // id: this.$route.query.id?this.$route.query.id:''
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }else{
|
|
|
this.$router.push({
|
|
|
path: this.cardType===1?"/courseDetail":"/videoDetail",
|
|
|
query: {
|
|
@@ -65,7 +65,7 @@ export default {
|
|
|
id: this.$route.query.id?this.$route.query.id:''
|
|
|
},
|
|
|
});
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
},
|