xuqiaoying 3 years ago
parent
commit
e8d6a3c109
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/pages/home/index.vue

+ 8 - 4
src/pages/home/index.vue

@@ -410,7 +410,7 @@
             </template>
           </ul>
         </div> -->
-        <div class="tabs">
+        <div v-if="courseName.length > 1" class="tabs">
           <div
             v-for="(item, index) in courseName"
             :key="index"
@@ -445,6 +445,7 @@
             background
             layout="prev, pager, next"
             :total="paramList[0].total"
+            :current-page.sync="paramList[0].currentPage"
             :page-size="paramList[0].pageSize"
           >
           </el-pagination>
@@ -501,7 +502,7 @@
           </ul>
         </div> -->
 
-        <div class="tabs">
+        <div v-if="bankName.length > 1" class="tabs">
           <div
             v-for="(item, index) in bankName"
             :key="index"
@@ -540,6 +541,7 @@
             background
             layout="prev, pager, next"
             :total="paramList[1].total"
+            :current-page.sync="paramList[1].currentPage"
             :page-size="paramList[1].pageSize"
           >
           </el-pagination>
@@ -710,12 +712,13 @@ export default {
 				{
 					pageNum: 1,
 					pageSize: 10,
+          currentPage: 1,
 					total: 0,
 				},
-				
 				{
 					pageNum: 1,
 					pageSize: 10,
+          currentPage: 1,
 					total: 0,
 				}
 			],
@@ -758,7 +761,6 @@ export default {
     //课程
 		 courseLists() {			
 			this.$request.appCommonActivityRecommendList({ platform: 2, status: 1 }).then(async (res) => {
-        console.log('----------------res', res)
         // return
 				if (res.code == 200) {
 					let list = res.rows || []
@@ -823,6 +825,7 @@ export default {
 			this.couIndex = index
 			this.courseId = recommendId
 			this.paramList[0].pageNum = 1
+      this.paramList[0].currentPage = 1
 			this.goodsList1 = []
 			let list1 = await this.getGoodsList(recommendId, 0)
 			this.goodsList1.push(...list1)
@@ -838,6 +841,7 @@ export default {
 			this.bankIndex = index
 			this.bankId = recommendId
 			this.paramList[1].pageNum = 1
+      this.paramList[1].currentPage = 1
 			this.goodsList2 = []
 			let list2 = await this.getGoodsList(recommendId, 1)
 			this.goodsList2.push(...list2)