|
@@ -154,7 +154,6 @@ export default {
|
|
|
} else {
|
|
|
height = (Math.ceil(this.imageList.length / this.colsValue) * this.viewWidth).toFixed() + "px";
|
|
|
}
|
|
|
- console.log("areaHeight", height);
|
|
|
return height;
|
|
|
},
|
|
|
childWidth() {
|
|
@@ -165,7 +164,6 @@ export default {
|
|
|
value: {
|
|
|
handler(n) {
|
|
|
if (!this.first && this.changeStatus) {
|
|
|
- console.log("watch", n);
|
|
|
let flag = false;
|
|
|
for (let i = 0; i < n.length; i++) {
|
|
|
if (flag) {
|
|
@@ -185,7 +183,6 @@ export default {
|
|
|
modelValue: {
|
|
|
handler(n) {
|
|
|
if (!this.first && this.changeStatus) {
|
|
|
- console.log("watch", n);
|
|
|
let flag = false;
|
|
|
for (let i = 0; i < n.length; i++) {
|
|
|
if (flag) {
|
|
@@ -275,7 +272,6 @@ export default {
|
|
|
});
|
|
|
}, 0);
|
|
|
}
|
|
|
- // console.log('bbb', JSON.parse(JSON.stringify(item)));
|
|
|
this.sortList();
|
|
|
}
|
|
|
}
|
|
@@ -323,9 +319,7 @@ export default {
|
|
|
this.tempItem = null;
|
|
|
this.changeStatus = true;
|
|
|
});
|
|
|
- // console.log('ccc', JSON.parse(JSON.stringify(item)));
|
|
|
}, 0);
|
|
|
- // console.log('ddd', JSON.parse(JSON.stringify(item)));
|
|
|
},
|
|
|
previewImage(item) {
|
|
|
if (this.timer && this.preStatus && this.changeStatus && item.offset < 28.28) {
|
|
@@ -333,7 +327,6 @@ export default {
|
|
|
this.timer = null;
|
|
|
const list = this.value || this.modelValue;
|
|
|
let srcList = list.map((v) => this.getSrc(v));
|
|
|
- console.log(list, srcList);
|
|
|
uni.previewImage({
|
|
|
urls: srcList,
|
|
|
current: item.src,
|
|
@@ -344,7 +337,6 @@ export default {
|
|
|
}, 600);
|
|
|
},
|
|
|
fail: (e) => {
|
|
|
- console.log(e);
|
|
|
},
|
|
|
});
|
|
|
} else if (this.timer) {
|
|
@@ -439,7 +431,6 @@ export default {
|
|
|
//#endif
|
|
|
},
|
|
|
sortList() {
|
|
|
- console.log("sortList");
|
|
|
const result = [];
|
|
|
let source = this.value;
|
|
|
// #ifdef VUE3
|
|
@@ -469,7 +460,6 @@ export default {
|
|
|
this.$emit("update:modelValue", result);
|
|
|
},
|
|
|
addProperties(item) {
|
|
|
- console.log(item);
|
|
|
let absX = this.imageList.length % this.colsValue;
|
|
|
let absY = Math.floor(this.imageList.length / this.colsValue);
|
|
|
let x = absX * this.viewWidth;
|