twt 3 years ago
parent
commit
7d14308059
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/pc/indexNew.vue

+ 3 - 2
pages/pc/indexNew.vue

@@ -353,8 +353,9 @@
 			},
 			
 			swpBtnRight(){
-				var length=this.recommendList.length
-				var num=Math.ceil(length/2)
+				var length=this.recommendList.length;
+				var num=Math.ceil(length/2)-1
+				console.log(num+'---'+this.swpIndex)
 				if(this.swpIndex<num){
 					this.swpIndex++
 				}