|
@@ -605,16 +605,55 @@ export default {
|
|
|
// this.paymentShow = true;
|
|
|
},
|
|
|
// 跳转
|
|
|
- handleLink(){
|
|
|
+ async handleLink(){
|
|
|
let url = this.LoginNavIndex +'&&&'+ this.userBg +'&&&'+ this.headerBorder +'&&&'+ this.headerBg
|
|
|
- this.$router.push({
|
|
|
- path: this.info.type===1?"/courseDetail":"/videoDetail",
|
|
|
- query: {
|
|
|
- headerConfig: encodeURIComponent(url),
|
|
|
- index: this.pre_play_index,
|
|
|
- id: this.id
|
|
|
- },
|
|
|
- });
|
|
|
+ if(this.bookType==='baozhi'){
|
|
|
+ let articleId = ''
|
|
|
+ if(this.info.last_read_art_id){
|
|
|
+ articleId = this.info.last_read_art_id
|
|
|
+ }else{
|
|
|
+ for(let i = 0; i<this.issueChnList.length; i++){
|
|
|
+ if(articleId){
|
|
|
+ break
|
|
|
+ }
|
|
|
+ if(this.issueChnList[i].arts&&this.issueChnList[i].arts.length>0){
|
|
|
+ for(let j=0; j<this.issueChnList[i].arts.length;j++){
|
|
|
+ if(this.issueChnList[i].arts[j].id){
|
|
|
+ articleId = this.issueChnList[i].arts[j].id
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let MethodName = "/PaperServer/Client/Issue/SaveLastReadArtInIss";
|
|
|
+ let data = {
|
|
|
+ iss_id: this.$route.query.id,
|
|
|
+ art_id: articleId
|
|
|
+ }
|
|
|
+ await getLogin(MethodName, data)
|
|
|
+ .then((res) => {
|
|
|
+ })
|
|
|
+ this.$router.push({
|
|
|
+ path: "/articleDetail",
|
|
|
+ query: {
|
|
|
+ headerConfig: encodeURIComponent(url),
|
|
|
+ id: articleId,
|
|
|
+ iss_id: this.$route.query.id
|
|
|
+ },
|
|
|
+
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$router.push({
|
|
|
+ path: this.info.type===1?"/courseDetail":"/videoDetail",
|
|
|
+ query: {
|
|
|
+ headerConfig: encodeURIComponent(url),
|
|
|
+ index: this.pre_play_index,
|
|
|
+ id: this.id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|