Commit d20ed8db601c4d2af179a6065a48c7f210f1dbe3
1 parent
2474c201
新人有礼bug修改
Showing
1 changed file
with
2 additions
and
6 deletions
pages/giftpack/newvipgift/newvipgift.js
| @@ -100,7 +100,7 @@ Page({ | @@ -100,7 +100,7 @@ Page({ | ||
| 100 | if (res.data.data.actIntro != '') { | 100 | if (res.data.data.actIntro != '') { |
| 101 | th.setData({ | 101 | th.setData({ |
| 102 | textShow: true, | 102 | textShow: true, |
| 103 | - textTitle: res.data.data.actIntro | 103 | + textTitle: res.data.data.actIntro.replace(/\<img/gi, '<img style="max-width:100%;height:auto"') |
| 104 | }) | 104 | }) |
| 105 | } | 105 | } |
| 106 | } else { | 106 | } else { |
| @@ -119,11 +119,7 @@ Page({ | @@ -119,11 +119,7 @@ Page({ | ||
| 119 | th.GetList(); | 119 | th.GetList(); |
| 120 | }, | 120 | }, |
| 121 | onShow: function() { | 121 | onShow: function() { |
| 122 | - var th = this; | ||
| 123 | - var textTitle = th.data.textTitle.replace(/<img/gi, '<img style="max-width:100%;height:auto;float:left;display:block" '); | ||
| 124 | - th.setData({ | ||
| 125 | - textTitle: textTitle | ||
| 126 | - }) | 122 | + |
| 127 | }, | 123 | }, |
| 128 | GetReceive: function() { | 124 | GetReceive: function() { |
| 129 | var th = this; | 125 | var th = this; |