dever 4 years ago
parent
commit
bf16d01feb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/dream/view.vue

+ 2 - 2
pages/dream/view.vue

@@ -191,7 +191,7 @@ export default{
 			}
 		},
 		change : function(e) {
-			this.swiper.index = parseInt(e.detail.current);
+			this.fetch.index = this.swiper.index = parseInt(e.detail.current);
 			//用户记录
 			this.record();
 			this.controlHandle();
@@ -221,7 +221,7 @@ export default{
 				uni.setNavigationBarTitle({
 					title:t.info.name
 				});
-				self.swiper.index = parseInt(t.index);
+				self.swiper.index = t.index ? parseInt(t.index) : 0;
 				self.record();
 				if (t && t['func']) {
 					self.drawer.item = t['func'];