闫增涛
2024-06-03 95ca47afec682be5e33a87168e4f91202dfca8c3
src/components/matching/matching.vue
@@ -187,9 +187,9 @@
          };
        })
        .filter((r) => r.right !== undefined);
      this.$emit("input", model);
      // this.$emit("input", model);
      this.item.userChoise = model;
      console.log(JSON.stringify(model));
      // console.log(JSON.stringify(model));
    },
    // 触摸开始
    touchstart(e, item,index) {
@@ -223,7 +223,7 @@
      if (this.item.showAnswer) {
        return false;
      }
      // let event = e.targetTouches[0];
      console.log('移动',e);
      this.checkItem.line[2] = e.pageX;
      this.checkItem.line[3] =
        e.pageY - this.$refs.connect.getBoundingClientRect().y + this.scrollTop;