Commit abdcef98ef216d7825e68eef1f343f9a59b8bb3c

Authored by 后端研发-倪永富
1 parent 79e7955e

1.活动领取页面的 滚到的bug(首页点击任务跳转进来的) 2.分享图生成时候的bug

pages/user/assistance/task_assistance.js
... ... @@ -200,6 +200,7 @@ Page({
200 200 task_number: task_number,
201 201 });
202 202 th.go_to_task(th.data.taskid);
  203 +
203 204 }else{
204 205 th.setData({
205 206 aitem: data_aissa,
... ... @@ -809,8 +810,8 @@ Page({
809 810 left += imagesize + spacing;
810 811 }
811 812  
812   - if (help_num - head_list_img.length > 0) {
813   - var neednum = help_num - head_list_img.length;
  813 + if (6 - head_list_img.length > 0) {
  814 + var neednum = 6 - head_list_img.length;
814 815 if(neednum>6) neednum=6;
815 816 //这个是还未助力的位置
816 817 for (var i = 0; i < neednum; i++) {
... ... @@ -1026,12 +1027,20 @@ Page({
1026 1027 index=i;break;
1027 1028 }
1028 1029 }
  1030 +
  1031 + //当是助力首页跳转过来的
  1032 + if(index==this.data.sw_index){
  1033 + this.get_user_task();
  1034 + }
  1035 +
1029 1036 this.setData({
1030 1037 sw_index: index,
1031 1038 taskid: task_id,
1032 1039 is_dismantle: 0,
1033 1040 bc_page: 1,
1034 1041 })
  1042 +
  1043 +
1035 1044 },
1036 1045  
1037 1046 //--测试用--
... ...