Commit d20ed8db601c4d2af179a6065a48c7f210f1dbe3

Authored by 前端研发-钱巧玲
1 parent 2474c201

新人有礼bug修改

pages/giftpack/newvipgift/newvipgift.js
... ... @@ -100,7 +100,7 @@ Page({
100 100 if (res.data.data.actIntro != '') {
101 101 th.setData({
102 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 106 } else {
... ... @@ -119,11 +119,7 @@ Page({
119 119 th.GetList();
120 120 },
121 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 124 GetReceive: function() {
129 125 var th = this;
... ...