Commit 3f5fbf77 by linjinhong

fix:修改规格图片的逻辑

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