Commit 47e3c89ee7e7524f72fef099e80da0204bc0b9ba

Authored by 后端开发-许程
1 parent 2932b490

助力优化

pages/user/assistance/task_assistance.js
@@ -910,7 +910,7 @@ Page({ @@ -910,7 +910,7 @@ Page({
910 libao_details: function(e) { 910 libao_details: function(e) {
911 var th = this; 911 var th = this;
912 var help_id = th.data.help_id; //活动id 912 var help_id = th.data.help_id; //活动id
913 - var taskId = th.data.taskid; //任务id 913 + var taskId = e.currentTarget.dataset.taskid; //任务id
914 getApp().goto("/pages/user/assistance/giftpacklist?help_id=" + help_id + "&is_libao=" + 0 + "&taskId=" + taskId); 914 getApp().goto("/pages/user/assistance/giftpacklist?help_id=" + help_id + "&is_libao=" + 0 + "&taskId=" + taskId);
915 }, 915 },
916 //测试正在进行任务 916 //测试正在进行任务
pages/user/assistance/task_assistance.wxml
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 <swiper bindanimationfinish="changeGoodsSwip" current="{{sw_index}}" style='width:82.7%; height:100%' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}"> 23 <swiper bindanimationfinish="changeGoodsSwip" current="{{sw_index}}" style='width:82.7%; height:100%' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}">
24 <swiper-item class="rel" wx:for="{{aitem}}" wx:for-item="aitem" wx:for-index="pidx"> 24 <swiper-item class="rel" wx:for="{{aitem}}" wx:for-item="aitem" wx:for-index="pidx">
25 25
26 - <image class="xc-center-img" bindtap="libao_details" src="{{iurl+aitem.giftBagUrl}}"></image> 26 + <image class="xc-center-img" bindtap="libao_details" data-taskid="{{aitem.id}}" src="{{iurl+aitem.giftBagUrl}}"></image>
27 <view class="abs select_details fs26 white">礼包详情</view> 27 <view class="abs select_details fs26 white">礼包详情</view>
28 28
29 </swiper-item> 29 </swiper-item>