Browse Source

修改详情页图片宽度的问题

master
gaoxs 5 years ago
parent
commit
951166db47
  1. 4
      pages/activity/DargainDetails/index.vue
  2. 4
      pages/activity/GroupDetails/index.vue
  3. 4
      pages/activity/SeckillDetails/index.vue
  4. 4
      pages/shop/GoodsCon/index.vue

4
pages/activity/DargainDetails/index.vue

@ -369,6 +369,10 @@ export default {
var that = this;
getBargainDetail(that.bargainId)
.then(res => {
res.data.bargain = res.data.bargain.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;"'
);
that.bargain = res.data.bargain;
that.datatime = that.bargain.stopTime / 1000;
that.getBargainHelpCount();

4
pages/activity/GroupDetails/index.vue

@ -242,6 +242,10 @@ export default {
let id = that.$yroute.query.id;
getCombinationDetail(id).then(res => {
that.userCollect = res.data.userCollect;
res.data.storeInfo.description = res.data.storeInfo.description.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;"'
);
that.$set(that, "storeInfo", res.data.storeInfo);
that.$set(that, "imgUrls", res.data.storeInfo.sliderImageArr);
that.$set(that, "itemNew", res.data.pinkOkList);

4
pages/activity/SeckillDetails/index.vue

@ -131,6 +131,10 @@ export default {
let id = that.$yroute.query.id;
that.datatime = parseInt(that.$yroute.query.time);
getSeckillDetail(id).then(res => {
res.data.storeInfo.description = res.data.storeInfo.description.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;"'
);
that.$set(that, "storeInfo", res.data.storeInfo);
that.$set(that, "imgUrls", res.data.storeInfo.sliderImageArr);
that.$set(that, "replyCount", res.data.replyCount);

4
pages/shop/GoodsCon/index.vue

@ -354,12 +354,10 @@ export default {
uni.showLoading({ title: "加载中", mask: true });
getProductDetail(that.id, from)
.then(res => {
res.data.storeInfo.description.replace(
res.data.storeInfo.description = res.data.storeInfo.description.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;"'
);
console.log(res);
that.$set(that, "storeInfo", res.data.storeInfo);
// attr attr
that.$set(that.attr, "productAttr", res.data.productAttr);

Loading…
Cancel
Save