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