Commit c7baf5fb07ce32de450462912894fd28d1f5da5a

Authored by 后端开发-许程
1 parent 06ce390a

助力优化

pages/user/assistance/task_assistance.js
@@ -661,7 +661,6 @@ Page({ @@ -661,7 +661,6 @@ Page({
661 ctx.drawImage(head_list_img[a], left , 505 * unit - imagesize / 2, imagesize, imagesize); 661 ctx.drawImage(head_list_img[a], left , 505 * unit - imagesize / 2, imagesize, imagesize);
662 ctx.restore(); 662 ctx.restore();
663 left += imagesize + spacing; 663 left += imagesize + spacing;
664 -  
665 } 664 }
666 //这个是还未助力的位置 665 //这个是还未助力的位置
667 for (var i = 0; i < q_num; i++) { 666 for (var i = 0; i < q_num; i++) {
@@ -826,12 +825,11 @@ Page({ @@ -826,12 +825,11 @@ Page({
826 info_head: async function(func) { 825 info_head: async function(func) {
827 var th = this; 826 var th = this;
828 var images = th.data.dynamic.zlHelpUser; 827 var images = th.data.dynamic.zlHelpUser;
  828 + console.log(images,"图片长度", images.length);
829 var arr = new Array(); 829 var arr = new Array();
830 var block = th.data.block; 830 var block = th.data.block;
831 - if (images && block == 0) {  
832 - th.setData({  
833 - block: 1  
834 - }); 831 + if (images) {
  832 + th.data.head_pic_arr.length = 0;
835 for (var i in images) { 833 for (var i in images) {
836 var img_path = images[i].headPic; 834 var img_path = images[i].headPic;
837 await getApp().request.promise_downimg(img_path).then(res => { 835 await getApp().request.promise_downimg(img_path).then(res => {