Commit c9044292 authored by 徐光星's avatar 徐光星

Merge branch 'feat/group-buy' into 'master'

fix: code review

See merge request !9
parents 8bd68191 03c424b5
...@@ -427,7 +427,7 @@ export default { ...@@ -427,7 +427,7 @@ export default {
this.detailInfo = res; this.detailInfo = res;
this.setStartStatus(res); this.setStartStatus(res);
this.showPage = true; this.showPage = true;
try {
this.detailInfo.contentDetailUrl = this.detailInfo.contentDetailUrl.replace( this.detailInfo.contentDetailUrl = this.detailInfo.contentDetailUrl.replace(
'http://', 'http://',
'https://' 'https://'
...@@ -445,9 +445,6 @@ export default { ...@@ -445,9 +445,6 @@ export default {
srcArr.push(src); srcArr.push(src);
} }
this.detailImgList = srcArr; this.detailImgList = srcArr;
} catch (error) {
console.error(error);
}
this.selectedGoods.skuId = this.detailInfo.skuNo; this.selectedGoods.skuId = this.detailInfo.skuNo;
if (res.activitySkuTotalCount === 0) { if (res.activitySkuTotalCount === 0) {
......
...@@ -239,7 +239,6 @@ export default { ...@@ -239,7 +239,6 @@ export default {
this.imgList = res.imageUrl || []; this.imgList = res.imageUrl || [];
this.detailInfo = res; this.detailInfo = res;
this.setStartStatus(res); this.setStartStatus(res);
try {
this.detailInfo.contentDetailUrl = this.detailInfo.contentDetailUrl.replace( this.detailInfo.contentDetailUrl = this.detailInfo.contentDetailUrl.replace(
'http://', 'http://',
'https://' 'https://'
...@@ -258,9 +257,6 @@ export default { ...@@ -258,9 +257,6 @@ export default {
srcArr.push(src); srcArr.push(src);
} }
this.detailImgList = srcArr; this.detailImgList = srcArr;
} catch (error) {
console.error(error);
}
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} }
......
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