只显示礼券图片

dev
曾超新 5 years ago
parent ffc370fa6c
commit 1bba91fb4e
  1. 4
      frontend/controllers/MarketingStrategyController.php
  2. 2
      frontend/views/insurer/my-list-info.php

@ -649,7 +649,11 @@ class MarketingStrategyController extends UserBaseController
foreach($tmp_row['gifts'] as $index => $gift_info) {
if(in_array($gift_info['id'], $order_gift_ids)) {
$tmp_row['gifts'][$index]['selected'] = 1;
if($gift->type_id == 1) {
$tmp_row['gifts'][$index]['img_src'] = $order_gift_srcs[$gift_info['id']];
} else {
$tmp_row['gifts'][$index]['img_src'] = '';
}
} else {
$tmp_row['gifts'][$index]['selected'] = 0;
}

@ -298,7 +298,9 @@ use common\models\PriceT;
<?php } else { ?>
if(sub_item.selected == 1) {
html += '<div class="col-sm-4">' + sub_item.name;
if(sub_item.img_src != '') {
html += '<a href="' + sub_item.img_src + '" target="_blank"><i class="fa fa-image"></i></a>';
}
html += '</div>';
}
<?php } ?>

Loading…
Cancel
Save