+
+
+
+
+ :style="`transform:translateX(${trnList[index].left})`"
+ src="/static/images/LHYC/J.png" width="49.07rpx"
+ height="49.07rpx">
@@ -467,11 +472,9 @@
})
},
- addcart(i) {
+ addcarts(i) {
let that = this
- console.log((this.$refs.jia[i]))
- this.a = this.$refs.jia[i]
- return
+ // return
uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
that.trnList[i].left = this.cartTagInfo.left - data1.left + 'px';
that.trnList[i].bottom = this.cartTagInfo.top - data1.top + 'px';
@@ -480,8 +483,8 @@
// console.log(this.$refs.jia1[i])
// return
// this.$refs.jia[i].style.transition = "0.5s"
- this.$refs.jia[i].style.transform = `translateX(${this.trnList[i].left})`
- this.$refs.jia1[i].style.transform = `translateY(${this.trnList[i].bottom})`
+ // this.$refs.jia[i].style.transform = `translateX(${this.trnList[i].left})`
+ // this.$refs.jia1[i].style.transform = `translateY(${this.trnList[i].bottom})`
// this.$refs.jia[i].style.transform = `translateY(${this.trnList[i].bottom})`
// this.trnList[i].left
@@ -563,8 +566,61 @@
}
}
+