Commit 3ec394ff1b7bba758b1d49e2c35471fc647aa535
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
6 changed files
with
75 additions
and
63 deletions
pages/giftpack/birthdaygift/birthdaygift.wxml
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | <text>______</text> | 9 | <text>______</text> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="top_box_text"> | 11 | <view class="top_box_text"> |
| 12 | - <text>新人专享\n你的美丽我来缔造</text> | 12 | + <text>生日专享\n你的美丽我来缔造</text> |
| 13 | </view> | 13 | </view> |
| 14 | <view class="top_box_text"> | 14 | <view class="top_box_text"> |
| 15 | <text>______</text> | 15 | <text>______</text> |
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | <text>{{item.fromName}}</text> | 41 | <text>{{item.fromName}}</text> |
| 42 | </block> | 42 | </block> |
| 43 | <block wx:if="{{item.lbType==3}}"> | 43 | <block wx:if="{{item.lbType==3}}"> |
| 44 | - <text>{{"新人可免费享受专业"+item.fromName+",可以享受"+item.num+"次。"}}</text> | 44 | + <text>{{"生日可免费享受专业"+item.fromName+",可以享受"+item.num+"次。"}}</text> |
| 45 | </block> | 45 | </block> |
| 46 | <view class="num flex-level-right fs26"> | 46 | <view class="num flex-level-right fs26"> |
| 47 | <view>数量:</view> | 47 | <view>数量:</view> |
| @@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
| 67 | <text>———</text> | 67 | <text>———</text> |
| 68 | </view> | 68 | </view> |
| 69 | <view class="top_box_text "> | 69 | <view class="top_box_text "> |
| 70 | - <text>新人专享优惠券</text> | 70 | + <text>生日专享优惠券</text> |
| 71 | </view> | 71 | </view> |
| 72 | <view class="top_box_text "> | 72 | <view class="top_box_text "> |
| 73 | <text>———</text> | 73 | <text>———</text> |
| @@ -99,8 +99,8 @@ | @@ -99,8 +99,8 @@ | ||
| 99 | </block> | 99 | </block> |
| 100 | <block wx:else> | 100 | <block wx:else> |
| 101 | <view class="top_card_counte ">{{item.sum+"元券"}}</view> | 101 | <view class="top_card_counte ">{{item.sum+"元券"}}</view> |
| 102 | - <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view> | ||
| 103 | </block> | 102 | </block> |
| 103 | + <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view> | ||
| 104 | </view> | 104 | </view> |
| 105 | </view> | 105 | </view> |
| 106 | </block> | 106 | </block> |
| @@ -121,7 +121,7 @@ | @@ -121,7 +121,7 @@ | ||
| 121 | <text>———</text> | 121 | <text>———</text> |
| 122 | </view> | 122 | </view> |
| 123 | <view class="top_box_text "> | 123 | <view class="top_box_text "> |
| 124 | - <text>新人专享福利</text> | 124 | + <text>生日专享福利</text> |
| 125 | </view> | 125 | </view> |
| 126 | <view class="top_box_text "> | 126 | <view class="top_box_text "> |
| 127 | <text>———</text> | 127 | <text>———</text> |
| @@ -172,7 +172,7 @@ | @@ -172,7 +172,7 @@ | ||
| 172 | </view> | 172 | </view> |
| 173 | </block> | 173 | </block> |
| 174 | <block wx:else> | 174 | <block wx:else> |
| 175 | - <view class="foot_button_buy'}}" bindtap="GetReceive"> | 175 | + <view class="foot_button_buy'}}" bindtap="GetReceive"> |
| 176 | <text>一键全部领取</text> | 176 | <text>一键全部领取</text> |
| 177 | </view> | 177 | </view> |
| 178 | </block> | 178 | </block> |
pages/giftpack/evaluategift/evaluategift.wxml
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | <text>______</text> | 9 | <text>______</text> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="top_box_text"> | 11 | <view class="top_box_text"> |
| 12 | - <text>新人专享\n你的美丽我来缔造</text> | 12 | + <text>评价专享\n你的美丽我来缔造</text> |
| 13 | </view> | 13 | </view> |
| 14 | <view class="top_box_text"> | 14 | <view class="top_box_text"> |
| 15 | <text>______</text> | 15 | <text>______</text> |
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | <text>{{item.fromName}}</text> | 41 | <text>{{item.fromName}}</text> |
| 42 | </block> | 42 | </block> |
| 43 | <block wx:if="{{item.lbType==3}}"> | 43 | <block wx:if="{{item.lbType==3}}"> |
| 44 | - <text>{{"新人可免费享受专业"+item.fromName+",可以享受"+item.num+"次。"}}</text> | 44 | + <text>{{"评价可免费享受专业"+item.fromName+",可以享受"+item.num+"次。"}}</text> |
| 45 | </block> | 45 | </block> |
| 46 | <view class="num flex-level-right fs26"> | 46 | <view class="num flex-level-right fs26"> |
| 47 | <view>数量:</view> | 47 | <view>数量:</view> |
| @@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
| 67 | <text>———</text> | 67 | <text>———</text> |
| 68 | </view> | 68 | </view> |
| 69 | <view class="top_box_text "> | 69 | <view class="top_box_text "> |
| 70 | - <text>新人专享优惠券</text> | 70 | + <text>评价专享优惠券</text> |
| 71 | </view> | 71 | </view> |
| 72 | <view class="top_box_text "> | 72 | <view class="top_box_text "> |
| 73 | <text>———</text> | 73 | <text>———</text> |
| @@ -94,13 +94,13 @@ | @@ -94,13 +94,13 @@ | ||
| 94 | <view class="top_card_tite_a">分类限定</view> | 94 | <view class="top_card_tite_a">分类限定</view> |
| 95 | </block> | 95 | </block> |
| 96 | </view> | 96 | </view> |
| 97 | - <block wx:if="{{item.isPack!=null}}"> | 97 | + <block wx:if="{{item.isPack!=null}}"> |
| 98 | <view class="top_card_counte">包邮券</view> | 98 | <view class="top_card_counte">包邮券</view> |
| 99 | </block> | 99 | </block> |
| 100 | - <block> | ||
| 101 | - <view class="top_card_counte ">{{item.sum+"元券"}}</view> | ||
| 102 | - <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view> | 100 | + <block wx:else> |
| 101 | + <view class="top_card_counte ">{{item.sum+"元券"}}</view> | ||
| 103 | </block> | 102 | </block> |
| 103 | + <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view> | ||
| 104 | </view> | 104 | </view> |
| 105 | </view> | 105 | </view> |
| 106 | </block> | 106 | </block> |
| @@ -121,7 +121,7 @@ | @@ -121,7 +121,7 @@ | ||
| 121 | <text>———</text> | 121 | <text>———</text> |
| 122 | </view> | 122 | </view> |
| 123 | <view class="top_box_text "> | 123 | <view class="top_box_text "> |
| 124 | - <text>新人专享福利</text> | 124 | + <text>评价专享福利</text> |
| 125 | </view> | 125 | </view> |
| 126 | <view class="top_box_text "> | 126 | <view class="top_box_text "> |
| 127 | <text>———</text> | 127 | <text>———</text> |
pages/giftpack/festival/festival.wxml
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">______</text> | 9 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">______</text> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="top_box_text"> | 11 | <view class="top_box_text"> |
| 12 | - <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">新人专享\n你的美丽我来缔造</text> | 12 | + <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">节日专享\n你的美丽我来缔造</text> |
| 13 | </view> | 13 | </view> |
| 14 | <view class="top_box_text"> | 14 | <view class="top_box_text"> |
| 15 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">______</text> | 15 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">______</text> |
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | <text>{{item.fromName}}</text> | 41 | <text>{{item.fromName}}</text> |
| 42 | </block> | 42 | </block> |
| 43 | <block wx:if="{{item.lbType==3}}"> | 43 | <block wx:if="{{item.lbType==3}}"> |
| 44 | - <text>{{"新人可免费享受专业"+item.fromName+",可以享受"+item.num+"次。"}}</text> | 44 | + <text>{{"节日可免费享受专业"+item.fromName+",可以享受"+item.num+"次。"}}</text> |
| 45 | </block> | 45 | </block> |
| 46 | <view class="num flex-level-right fs26" style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}"> | 46 | <view class="num flex-level-right fs26" style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}"> |
| 47 | <view>数量:</view> | 47 | <view>数量:</view> |
| @@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
| 67 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">———</text> | 67 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">———</text> |
| 68 | </view> | 68 | </view> |
| 69 | <view class="top_box_text "> | 69 | <view class="top_box_text "> |
| 70 | - <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">新人专享优惠券</text> | 70 | + <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">节日专享优惠券</text> |
| 71 | </view> | 71 | </view> |
| 72 | <view class="top_box_text "> | 72 | <view class="top_box_text "> |
| 73 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">———</text> | 73 | <text style="color:{{actFontColor!='' && actFontColor!=undefined?actFontColor:''}}">———</text> |
| @@ -94,7 +94,12 @@ | @@ -94,7 +94,12 @@ | ||
| 94 | <view class="top_card_tite_a">分类限定</view> | 94 | <view class="top_card_tite_a">分类限定</view> |
| 95 | </block> | 95 | </block> |
| 96 | </view> | 96 | </view> |
| 97 | - <view class="top_card_counte ">{{item.sum+"元券"}}</view> | 97 | + <block wx:if="{{item.isPack!=null}}"> |
| 98 | + <view class="top_card_counte">包邮券</view> | ||
| 99 | + </block> | ||
| 100 | + <block wx:else> | ||
| 101 | + <view class="top_card_counte ">{{item.sum+"元券"}}</view> | ||
| 102 | + </block> | ||
| 98 | <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view> | 103 | <view class="top_card_remak ">{{"满"+item.buySum+"元可以用"}}</view> |
| 99 | </view> | 104 | </view> |
| 100 | </view> | 105 | </view> |
| @@ -116,7 +121,7 @@ | @@ -116,7 +121,7 @@ | ||
| 116 | <text>———</text> | 121 | <text>———</text> |
| 117 | </view> | 122 | </view> |
| 118 | <view class="top_box_text "> | 123 | <view class="top_box_text "> |
| 119 | - <text>新人专享福利</text> | 124 | + <text>节日专享福利</text> |
| 120 | </view> | 125 | </view> |
| 121 | <view class="top_box_text "> | 126 | <view class="top_box_text "> |
| 122 | <text>———</text> | 127 | <text>———</text> |
pages/user/assistance/assistance.js
| @@ -168,14 +168,15 @@ Page({ | @@ -168,14 +168,15 @@ Page({ | ||
| 168 | 168 | ||
| 169 | // 领取礼包 | 169 | // 领取礼包 |
| 170 | get_libao: function(e) { | 170 | get_libao: function(e) { |
| 171 | - var libao_id = e.currentTarget.dataset.libaoid; | 171 | + var help_id = e.currentTarget.dataset.help_id;//活动id |
| 172 | var taskId = e.currentTarget.dataset.taskid;//任务id | 172 | var taskId = e.currentTarget.dataset.taskid;//任务id |
| 173 | - getApp().goto("/pages/user/assistance/giftpacklist?libao_id=" + libao_id + "&is_libao=" + 1 + "&taskId=" + taskId); | 173 | + var id = e.currentTarget.dataset.id;//用于跳到礼包详情一键全部领取用的任务id |
| 174 | + getApp().goto("/pages/user/assistance/giftpacklist?help_id=" + help_id + "&is_libao=" + 1 + "&taskId=" + taskId+"&id="+id); | ||
| 174 | }, | 175 | }, |
| 175 | 176 | ||
| 176 | //查看礼包id | 177 | //查看礼包id |
| 177 | - select_libao: function() { | ||
| 178 | - var orderSn = e.currentTarget.dataset.orderSn; //订单号 | 178 | + select_libao: function(e) { |
| 179 | + var orderSn = e.currentTarget.dataset.ordersn; //订单号 | ||
| 179 | getApp().goto("/pages/user/assistance/giftpacklist?orderSn=" + orderSn); | 180 | getApp().goto("/pages/user/assistance/giftpacklist?orderSn=" + orderSn); |
| 180 | } | 181 | } |
| 181 | 182 |
pages/user/assistance/assistance.wxml
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | </view> | 16 | </view> |
| 17 | <view wx:if="{{zl_act.beginDate && zl_act.endDate}}" class="flex-center fs26 time"> | 17 | <view wx:if="{{zl_act.beginDate && zl_act.endDate}}" class="flex-center fs26 time"> |
| 18 | <view>活动时间:{{filter_s.format_time(zl_act.beginDate,0)}} 至 {{filter_s.format_time(zl_act.endDate,0)}}</view> | 18 | <view>活动时间:{{filter_s.format_time(zl_act.beginDate,0)}} 至 {{filter_s.format_time(zl_act.endDate,0)}}</view> |
| 19 | - | 19 | + |
| 20 | </view> | 20 | </view> |
| 21 | <view class="flex-center" bindtap="go_task"> | 21 | <view class="flex-center" bindtap="go_task"> |
| 22 | <view class="flex-center take"> | 22 | <view class="flex-center take"> |
| @@ -43,24 +43,24 @@ | @@ -43,24 +43,24 @@ | ||
| 43 | <!-- 我的任务 --> | 43 | <!-- 我的任务 --> |
| 44 | <view wx:if="{{switch_head==0}}" class="white"> | 44 | <view wx:if="{{switch_head==0}}" class="white"> |
| 45 | <view class="items"> | 45 | <view class="items"> |
| 46 | - <view class="tesk_list"> | ||
| 47 | - <view class="item fs26 flex-vertical-between padding" wx:for="{{zl_user_list}}"> | ||
| 48 | - <view class="flex-center width"> | ||
| 49 | - <view class="ellipsis-1">{{item.helpTaskName}}</view> | ||
| 50 | - </view> | 46 | + <view class="tesk_list"> |
| 47 | + <view class="item fs26 flex-vertical-between padding" wx:for="{{zl_user_list}}"> | ||
| 48 | + <view class="flex-center width"> | ||
| 49 | + <view class="ellipsis-1">{{item.helpTaskName}}</view> | ||
| 50 | + </view> | ||
| 51 | 51 | ||
| 52 | - <!-- 已完成的颜色nostate --> | ||
| 53 | - <view class="flex-center width state" wx:if="{{item.status==1}}"> | ||
| 54 | - <view class="ellipsis-1" bindtap="get_libao" data-libaoid="{{item.helpListGiftBagId}}" data-taskId="{{item.id}}">领取礼包</view> | ||
| 55 | - </view> | ||
| 56 | - <view class="flex-center width state" wx:if="{{item.status==0}}"> | ||
| 57 | - <view class="ellipsis-1">{{item.zlHelpNum}}/{{item.helpNum}}</view> | ||
| 58 | - </view> | ||
| 59 | - <view class="flex-center width state" wx:if="{{item.status==2}}"> | ||
| 60 | - <view class="ellipsis-1" bindtap="select_libao" data-orderSn="{{item.orderSn}}">查看礼包</view> | ||
| 61 | - </view> | 52 | + <!-- 已完成的颜色nostate --> |
| 53 | + <view class="flex-center width state" wx:if="{{item.status==1}}"> | ||
| 54 | + <view class="ellipsis-1" bindtap="get_libao" data-help_id="{{item.helpFormId}}" data-taskId="{{item.helpTaskId}}" data-id="{{item.id}}">领取礼包</view> | ||
| 55 | + </view> | ||
| 56 | + <view class="flex-center width state" wx:if="{{item.status==0}}"> | ||
| 57 | + <view class="ellipsis-1">{{item.zlHelpNum}}/{{item.helpNum}}</view> | ||
| 58 | + </view> | ||
| 59 | + <view class="flex-center width state" wx:if="{{item.status==2}}"> | ||
| 60 | + <view class="ellipsis-1" bindtap="select_libao" data-orderSn="{{item.orderSn}}">查看礼包</view> | ||
| 61 | + </view> | ||
| 62 | 62 | ||
| 63 | - </view> | 63 | + </view> |
| 64 | </view> | 64 | </view> |
| 65 | <!-- 加载更多 --> | 65 | <!-- 加载更多 --> |
| 66 | <block wx:if="{{is_show_more==0}}"> | 66 | <block wx:if="{{is_show_more==0}}"> |
pages/user/assistance/giftpacklist.js
| @@ -22,7 +22,6 @@ Page({ | @@ -22,7 +22,6 @@ Page({ | ||
| 22 | actTitle: '', | 22 | actTitle: '', |
| 23 | getUrl: '', | 23 | getUrl: '', |
| 24 | wareCard: [], | 24 | wareCard: [], |
| 25 | - orderSn: "", //订单编号 | ||
| 26 | lbId: "", | 25 | lbId: "", |
| 27 | code: "", //核销码 | 26 | code: "", //核销码 |
| 28 | c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 | 27 | c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 |
| @@ -31,31 +30,33 @@ Page({ | @@ -31,31 +30,33 @@ Page({ | ||
| 31 | is_sub: 0, //判断是否重复提交 | 30 | is_sub: 0, //判断是否重复提交 |
| 32 | is_libao: 0, //0轮播查看活动 1领取礼包 2.查看礼包详情 | 31 | is_libao: 0, //0轮播查看活动 1领取礼包 2.查看礼包详情 |
| 33 | held_id: "", //活动id | 32 | held_id: "", //活动id |
| 34 | - taskId: "", //任务id | 33 | + taskId: "", //任务id用于查找礼包详情 |
| 35 | orderSn: "", //订单号 | 34 | orderSn: "", //订单号 |
| 36 | - is_type:"",//类型 0.轮播过来的 1.领取礼包过来的 2.查看礼包过来的 | ||
| 37 | - is_head:0,//数据是否加载完成 | ||
| 38 | - giftBagId:"",//礼包id | 35 | + is_type: "", //类型 0.轮播过来的 1.领取礼包过来的 2.查看礼包过来的 |
| 36 | + is_head: 0, //数据是否加载完成 | ||
| 37 | + giftBagId: "", //礼包id | ||
| 38 | + id: "", //一键领取的时候使用 | ||
| 39 | }, | 39 | }, |
| 40 | onLoad: function(options) { | 40 | onLoad: function(options) { |
| 41 | var th = this; | 41 | var th = this; |
| 42 | if (options.is_libao == 0) { | 42 | if (options.is_libao == 0) { |
| 43 | th.setData({ | 43 | th.setData({ |
| 44 | - held_id: options.help_id, | ||
| 45 | - taskId: options.taskId, | ||
| 46 | - is_type:0 | 44 | + held_id: options.help_id, |
| 45 | + taskId: options.taskId, | ||
| 46 | + is_type: 0 | ||
| 47 | }) | 47 | }) |
| 48 | th.help(); | 48 | th.help(); |
| 49 | } | 49 | } |
| 50 | if (options.is_libao == 1) { | 50 | if (options.is_libao == 1) { |
| 51 | th.setData({ | 51 | th.setData({ |
| 52 | - giftBagId: options.libao_id, | 52 | + held_id: options.help_id, |
| 53 | + taskId: options.taskId, | ||
| 53 | is_type: 1, | 54 | is_type: 1, |
| 54 | - taskId: options.taskId | 55 | + id: options.id |
| 55 | }) | 56 | }) |
| 56 | - th.GetBuyGiftList(); | 57 | + th.help(); |
| 57 | } | 58 | } |
| 58 | - if (options.order_sn) { | 59 | + if (options.orderSn) { |
| 59 | th.setData({ | 60 | th.setData({ |
| 60 | orderSn: options.orderSn, | 61 | orderSn: options.orderSn, |
| 61 | is_type: 2 | 62 | is_type: 2 |
| @@ -84,16 +85,19 @@ Page({ | @@ -84,16 +85,19 @@ Page({ | ||
| 84 | th.setData({ | 85 | th.setData({ |
| 85 | giftImage: th.data.iurl + res.data.data.lbUrl, | 86 | giftImage: th.data.iurl + res.data.data.lbUrl, |
| 86 | giftTitle: res.data.data.giftTitle, | 87 | giftTitle: res.data.data.giftTitle, |
| 87 | - is_head:1 | 88 | + is_head: 1 |
| 88 | }) | 89 | }) |
| 89 | if (res.data.data.giftRemark == '') { | 90 | if (res.data.data.giftRemark == '') { |
| 90 | th.setData({ | 91 | th.setData({ |
| 91 | giftRemark: '暂无详情......' | 92 | giftRemark: '暂无详情......' |
| 92 | }) | 93 | }) |
| 93 | } else { | 94 | } else { |
| 94 | - th.setData({ | ||
| 95 | - giftRemark: res.data.data.giftRemark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | ||
| 96 | - }) | 95 | + if (res.data.data.giftRemark != null && res.data.data.giftRemark != undefined && res.data.data.giftRemark != '') { |
| 96 | + th.setData({ | ||
| 97 | + giftRemark: res.data.data.giftRemark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | ||
| 98 | + }) | ||
| 99 | + } | ||
| 100 | + | ||
| 97 | } | 101 | } |
| 98 | 102 | ||
| 99 | th.setData({ | 103 | th.setData({ |
| @@ -137,16 +141,18 @@ Page({ | @@ -137,16 +141,18 @@ Page({ | ||
| 137 | th.setData({ | 141 | th.setData({ |
| 138 | giftImage: th.data.iurl + res.data.data.lbUrl, | 142 | giftImage: th.data.iurl + res.data.data.lbUrl, |
| 139 | giftTitle: res.data.data.giftTitle, | 143 | giftTitle: res.data.data.giftTitle, |
| 140 | - is_head:1 | 144 | + is_head: 1 |
| 141 | }) | 145 | }) |
| 142 | if (res.data.data.giftRemark == '') { | 146 | if (res.data.data.giftRemark == '') { |
| 143 | th.setData({ | 147 | th.setData({ |
| 144 | giftRemark: '暂无详情......' | 148 | giftRemark: '暂无详情......' |
| 145 | }) | 149 | }) |
| 146 | } else { | 150 | } else { |
| 147 | - th.setData({ | ||
| 148 | - giftRemark: res.data.data.giftRemark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | ||
| 149 | - }) | 151 | + if (res.data.data.giftRemark != null && res.data.data.giftRemark != undefined && res.data.data.giftRemark != '') { |
| 152 | + th.setData({ | ||
| 153 | + giftRemark: res.data.data.giftRemark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | ||
| 154 | + }) | ||
| 155 | + } | ||
| 150 | } | 156 | } |
| 151 | 157 | ||
| 152 | //---获取日期的时间戳--- | 158 | //---获取日期的时间戳--- |
| @@ -202,9 +208,9 @@ Page({ | @@ -202,9 +208,9 @@ Page({ | ||
| 202 | is_sub: 1 | 208 | is_sub: 1 |
| 203 | }) | 209 | }) |
| 204 | var json = { | 210 | var json = { |
| 205 | - "actId": th.data.taskId, //活动Id | 211 | + "actId": th.data.id, //活动Id |
| 206 | "actType": 5, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 | 212 | "actType": 5, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 |
| 207 | - "giftBagId": th.data.giftBagId, //礼包Id | 213 | + "giftBagId": 1, //礼包Id |
| 208 | "storeId": a.stoid, //商家Id | 214 | "storeId": a.stoid, //商家Id |
| 209 | "userId": d.user_id //用户ID | 215 | "userId": d.user_id //用户ID |
| 210 | }; | 216 | }; |
| @@ -247,7 +253,7 @@ Page({ | @@ -247,7 +253,7 @@ Page({ | ||
| 247 | _this2.setData({ | 253 | _this2.setData({ |
| 248 | giftImage: th.iurl + res.data.data.lbUrl, | 254 | giftImage: th.iurl + res.data.data.lbUrl, |
| 249 | giftTitle: res.data.data.giftTitle, | 255 | giftTitle: res.data.data.giftTitle, |
| 250 | - is_head:1 | 256 | + is_head: 1 |
| 251 | }) | 257 | }) |
| 252 | if (res.data.data.giftRemark == '') { | 258 | if (res.data.data.giftRemark == '') { |
| 253 | 259 |