zhengjinyi 4 лет назад
Родитель
Сommit
b3be6e3a50
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      pages/goods/product-activi.vue

+ 8 - 8
pages/goods/product-activi.vue

@@ -382,12 +382,12 @@
 				this.tabCurrentIndex = index
 				let classIndex = '.product-details' + index
 				uni.createSelectorQuery()
-					.select('.container-product')
-					.boundingClientRect(data => {
+				   .select('.container-product')
+				   .boundingClientRect(data => {
 						//最外层盒子节点
 						uni.createSelectorQuery()
-							.select(classIndex)
-							.boundingClientRect(res => {
+						   .select(classIndex)
+						   .boundingClientRect(res => {
 								//最外层盒子节点
 								uni.pageScrollTo({
 									duration: 300, //过渡时间必须为0,uniapp bug,否则运行到手机会报错
@@ -396,10 +396,10 @@
 								setTimeout(() => {
 									this.tabSelectFlag = false
 								}, 500)
-							})
-							.exec()
-					})
-					.exec()
+						})
+						.exec()
+				})
+				.exec()
 			},
 			handleContact(e){//跳转小程序客服