|
@@ -4,7 +4,7 @@
|
|
|
:headerBg="'#1F1F1F'"
|
|
|
:headerBorder="'#5C5C5C'"
|
|
|
:userBg="'rgba(0, 0, 0, 0.24)'"
|
|
|
- :LoginNavIndex="0"
|
|
|
+ :LoginNavIndex="this.$route.query.from?1:0"
|
|
|
/>
|
|
|
<div class="banner">
|
|
|
<el-carousel height="320px" trigger="click" arrow="never">
|
|
@@ -28,7 +28,7 @@
|
|
|
<div class="filt-box">
|
|
|
<div class="filt-inner">
|
|
|
<el-breadcrumb separator="/">
|
|
|
- <el-breadcrumb-item :to="{ path: '/' }">商城</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item :to="{ path: '/' }">{{this.$route.query.from?'精读课堂':'商城'}}</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>{{nameTypeCn}}</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
<h2>筛选:</h2>
|
|
@@ -91,7 +91,7 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="filt-item">
|
|
|
+ <div class="filt-item" v-if="!this.$route.query.from">
|
|
|
<label>学段</label>
|
|
|
<ul>
|
|
|
<li :class="[items.study_phase===jingduForm.studyValue?'active':'']" v-for="(items,indexs) in jingduStudyList" :key="indexs" @click="handleClick('jingduForm','studyValue',items.study_phase,items.study_phase_name)">
|
|
@@ -117,7 +117,7 @@
|
|
|
:headerBg="'#1F1F1F'"
|
|
|
:headerBorder="'#5C5C5C'"
|
|
|
:userBg="'rgba(0, 0, 0, 0.24)'"
|
|
|
- :LoginNavIndex="0"
|
|
|
+ :LoginNavIndex="this.$route.query.from?1:0"
|
|
|
/>
|
|
|
<el-pagination
|
|
|
background
|
|
@@ -242,7 +242,7 @@ export default {
|
|
|
typeValue: window.localStorage.getItem("baozhiFormtypeValue")?window.localStorage.getItem("baozhiFormtypeValue")*1:0,
|
|
|
},
|
|
|
jingduForm:{
|
|
|
- studyValue: window.localStorage.getItem("jingduFormstudyValue")?window.localStorage.getItem("jingduFormstudyValue")*1:11,
|
|
|
+ studyValue: this.$route.query.from?this.$route.query.from*1:window.localStorage.getItem("jingduFormstudyValue")?window.localStorage.getItem("jingduFormstudyValue")*1:11,
|
|
|
categoryValue: window.localStorage.getItem("jingduFormcategoryValue")?window.localStorage.getItem("jingduFormcategoryValue"):''
|
|
|
},
|
|
|
currentPage: 1, // 当前页码
|
|
@@ -353,25 +353,48 @@ export default {
|
|
|
|
|
|
});
|
|
|
}else if(this.itemType==='jingdu'){
|
|
|
- MethodName = "/ShopServer/Client/ShopHomeQuery/PageQueryIreadArticleList"
|
|
|
- data.label = this.jingduForm.categoryValue
|
|
|
- data.study_phase = this.jingduForm.studyValue
|
|
|
- getLogin(MethodName, data)
|
|
|
- .then((res) => {
|
|
|
- if(res.status===1){
|
|
|
- this.Bookinfo = {
|
|
|
- name: this.titleName,
|
|
|
- number: res.total_count,
|
|
|
- numberstr: '共' + res.total_count + '期',
|
|
|
- study: this.jingduForm.studyValue,
|
|
|
- BookList: res.iread_article_list,
|
|
|
- bookType: 'jingdu'
|
|
|
+ if(this.$route.query.form){
|
|
|
+ MethodName = "/ShopServer/Client/BookshelfQuery/PageQueryMyIreadArticleList_UsePeriod"
|
|
|
+ data.label = this.jingduForm.categoryValue
|
|
|
+ data.study_phase = this.$route.query.form*1
|
|
|
+ getLogin(MethodName, data)
|
|
|
+ .then((res) => {
|
|
|
+ if(res.status===1){
|
|
|
+ this.Bookinfo = {
|
|
|
+ name: this.titleName,
|
|
|
+ number: res.total_count,
|
|
|
+ numberstr: '共' + res.total_count + '期',
|
|
|
+ study: this.jingduForm.studyValue,
|
|
|
+ BookList: res.iread_article_list,
|
|
|
+ bookType: 'jingdu'
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
-
|
|
|
- });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ MethodName = "/ShopServer/Client/ShopHomeQuery/PageQueryIreadArticleList"
|
|
|
+ data.label = this.jingduForm.categoryValue
|
|
|
+ data.study_phase = this.jingduForm.studyValue
|
|
|
+ getLogin(MethodName, data)
|
|
|
+ .then((res) => {
|
|
|
+ if(res.status===1){
|
|
|
+ this.Bookinfo = {
|
|
|
+ name: this.titleName,
|
|
|
+ number: res.total_count,
|
|
|
+ numberstr: '共' + res.total_count + '期',
|
|
|
+ study: this.jingduForm.studyValue,
|
|
|
+ BookList: res.iread_article_list,
|
|
|
+ bookType: 'jingdu'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
handleSizeChange(val,type,page) {
|