Commit 3f5fbf77 by linjinhong

fix:修改规格图片的逻辑

parent fe1e5ff2
......@@ -164,7 +164,6 @@ export default {
? downloadBySubOrderNumber["CNHLC"]
: downloadBySubOrderNumber["USHLC"];
}
console.log("url", url);
const { data } = await axios.post(`${env}/${url}`, [...params.ids], {
headers: { "jwt-token": token },
......@@ -173,6 +172,7 @@ export default {
if (data.code !== 200) {
return res.json(data);
}
console.log("data", data);
// 转义中文
if (data.message) {
......
......@@ -778,6 +778,7 @@ export default {
x = w;
y = height_px / 2;
rate = height_px / width_px;
if (this.newDesktopDevice == 3) {
//惠立彩 直接获取图片原始像素进行技术
const scale = bh / data.height;
......@@ -803,6 +804,7 @@ export default {
}
}
this.currentImgData = { ...data };
that.imgList = [];
that.imgList.push({
url: files[i].url,
......@@ -815,10 +817,12 @@ export default {
h: height_px,
r: 0,
});
that.selectIndex = that.imgList.length - 1;
that.showImgSetting = true;
isCp ? that.ev("x_center") : that.ev("cover");
if (!size) that.ev("cover");
if (isCut) that.ev("cover");
this.$nextTick(async () => {
//等图片铺上网格后判断是否超过网格
......@@ -1788,6 +1792,7 @@ export default {
v-if="
productMark == 'custom_part' &&
selectImgList.length &&
detail.adjustable &&
!isOver &&
!isMove &&
!selectImgList.some((el) => el.isCut) &&
......@@ -1801,6 +1806,7 @@ export default {
:style="{ left: isView ? '' : '6%' }"
v-if="
productMark == 'custom_part' &&
detail.adjustable &&
selectImgList.length &&
!selectImgList.some((el) => el.isCut) &&
isOver &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment