diff --git a/pages/user/assistance/task_assistance.js b/pages/user/assistance/task_assistance.js index 7d50b95..3c3a274 100644 --- a/pages/user/assistance/task_assistance.js +++ b/pages/user/assistance/task_assistance.js @@ -59,8 +59,10 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function(options) { - var help_id = options.help_id; var th = this; + var help_id = options.help_id; + var nav_b = th.selectComponent("#nav_b"); //组件的id + nav_b.set_name("助力", "/pages/user/assistance/assistance"); th.setData({ help_id: help_id }); @@ -179,7 +181,6 @@ Page({ }); var task_number = data_aissa[0].giftQty - data_aissa[0].useGiftQty; var taskid = data_aissa[0].id; - console.log("参考", data_aissa); th.setData({ aitem: data_aissa, task_number: task_number, @@ -248,7 +249,7 @@ Page({ is_bc_show:1 }) }else{ - getApp().showWarning("暂无更多内容", 0); + getApp().showWarning("暂无更多内容", 0,th); } th.setData({ @@ -265,15 +266,13 @@ Page({ }, // 领取礼包 get_libao: function(e) { - var libao_id = e.currentTarget.dataset.libaoid; - var completeid = e.currentTarget.dataset.completeid; - console.log("礼包id", libao_id); - getApp().goto("/pages/user/assistance/giftpacklist?libao_id=" + libao_id + "&is_libao=" + 1 + "&completeid=" + completeid); + var libao_id = e.currentTarget.dataset.libaoid;//礼包id + getApp().goto("/pages/user/assistance/giftpacklist?libao_id=" + libao_id + "&is_libao=" + 1); }, //查看礼包id - select_libao: function() { - var libao_id = e.currentTarget.dataset.libaoid; - getApp().goto("/pages/user/assistance/giftpacklist?libao_id=" + libao_id + "&is_libao=" + 0); + select_libao: function(e) { + var orderSn = e.currentTarget.dataset.orderSn; + getApp().goto("/pages/user/assistance/giftpacklist?orderSn=" + orderSn); }, //划动的时候监听 @@ -283,8 +282,6 @@ Page({ var aitem = this.data.aitem; var task_number = aitem[ind].giftQty - aitem[ind].useGiftQty; var task_id = aitem[ind].id; - console.log("划动的任务总数", task_number, "任务所有的参数", aitem, - "任务id", task_id); th.setData({ sw_index: ind, task_number: task_number, @@ -304,7 +301,6 @@ Page({ var th = this; var nav_b = th.selectComponent("#nav_b"); //组件的id nav_b.close_box(); - nav_b.set_name("助力", "/pages/user/assistance/assistance"); }, // 获取会员的参与的任务列表 我的任务 user_task_list: function(e) { @@ -340,6 +336,7 @@ Page({ rw_page: rw_page, is_show: 1 }) + getApp().my_warnning(); getApp().showWarning("暂无更多内容", 0); }else{ var rw_page = th.data.rw_page + 1; @@ -389,7 +386,6 @@ Page({ storeId: os.stoid, }, success: function(su) { - console.log(su.data.code, "获取助力活动参与的人数", su.data) if (su.data.code == 0) { var usercount = su.data.data.countAll; @@ -413,7 +409,6 @@ Page({ swiperError: swiperError }) if (swiperError >= 3) { //在开关被触发3次以上 - console.error(this.data.swiperError) this.setData({ sw_index: this.data.preIndex }); //,重置current为正确索引 @@ -504,7 +499,6 @@ Page({ // var o = endTimeList[i]; var endTime = th.data.endDate; - console.log("结束时间5555555", endTime); // if (o.status == 0) endTime = o.start_time var obj = null; @@ -590,90 +584,75 @@ Page({ wx.getImageInfo({ src: iurl + images[0], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[0] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }); wx.getImageInfo({ src: iurl + images[1], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[1] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }); wx.getImageInfo({ src: iurl + images[2], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[2] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); + } }); wx.getImageInfo({ src: iurl + images[3], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[3] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }); wx.getImageInfo({ src: iurl + images[4], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[4] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }); wx.getImageInfo({ src: iurl + images[5], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[5] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }); wx.getImageInfo({ src: iurl + images[6], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[6] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }); wx.getImageInfo({ src: iurl + images[7], success: function(res) { - console.log(res + i); //res.path是网络图片的本地地址 images[7] = res.path; }, fail: function(res) { - console.log(res.toString() + "" + i); } }) th.setData({ @@ -734,7 +713,6 @@ Page({ ctx.drawImage(images[2], 65 * unit, 445 * unit, 320 * unit, 12 * unit); ctx.drawImage(images[3], 65 * unit, 445 * unit, 320 * unit * c, 12 * unit); // var dynamic = th.data.dynamic; //助力的微信头像 - // console.log(dynamic[0].headPic + "动态图片显示"); for (var i = 0; i < 6; i++) { if (i < 0) { // ctx.beginPath(); @@ -960,7 +938,6 @@ Page({ var th = this; var images = th.data.dynamic; if (images[0] != null && images[0] != "" && images[0] != undefined) { - console.log(images[0].headPic + "就将计就计"); wx.getImageInfo({ src: images[0].headPic, success: function(res) { diff --git a/pages/user/assistance/task_assistance.json b/pages/user/assistance/task_assistance.json index 63f5fe9..b1940cd 100644 --- a/pages/user/assistance/task_assistance.json +++ b/pages/user/assistance/task_assistance.json @@ -1,6 +1,5 @@ { "navigationBarTitleText": "好友助力,得好礼", - "navigationStyle": "custom", "usingComponents": { "warn": "/components/long_warn/long_warn", "my_confirm": "/components/my_confirm/my_confirm", diff --git a/pages/user/assistance/task_assistance.wxml b/pages/user/assistance/task_assistance.wxml index 22495c6..d4f70be 100644 --- a/pages/user/assistance/task_assistance.wxml +++ b/pages/user/assistance/task_assistance.wxml @@ -1,13 +1,19 @@ - - + + - - {{aitem[sw_index].helpTaskName}} + + + {{aitem[sw_index].helpTaskName}} + - 活动剩余时间: {{aitem[0].djs.day}}:{{aitem[0].djs.hou}}:{{aitem[0].djs.min}}:{{aitem[0].djs.sec}} - + 活动剩余时间: + {{aitem[0].djs.day}}: + {{aitem[0].djs.hou}}: + {{aitem[0].djs.min}}: + {{aitem[0].djs.sec}} + @@ -16,10 +22,10 @@ - + - 礼包详情 - + 礼包详情 + @@ -28,25 +34,25 @@ - - - - + + + + + + {{is_user_task.zlHelpNum}}/{{is_user_task.helpNum}} - {{is_user_task.zlHelpNum}}/{{is_user_task.helpNum}} - 今天剩余可领{{task_number}}个任务 - + 就选它了 - - 好友拆一拆 + + 好友拆一拆 - @@ -67,66 +73,65 @@ - + - - + + {{item.helpTaskName}} - {{item.zlHelpNum}}/{{item.helpNum}} - 查看礼包 - 领取礼包 + {{item.zlHelpNum}}/{{item.helpNum}} + 查看礼包 + 领取礼包 - - 暂无任务记录 - - + + 暂无任务记录 + + - + - + - + - - - - - {{item.nickName}} - - {{filter.format_time(item.zltime)}} + + + + + {{item.nickName}} + + {{filter.format_time(item.zltime)}} + - - - - 点击加载更多 - - - - - - - 暂无任务记录 + + + 点击加载更多 + + + + + + + 暂无任务记录 + + - - - + @@ -145,14 +150,14 @@ - + - + diff --git a/pages/user/assistance/task_assistance.wxss b/pages/user/assistance/task_assistance.wxss index 30aeed1..d921f10 100644 --- a/pages/user/assistance/task_assistance.wxss +++ b/pages/user/assistance/task_assistance.wxss @@ -1,52 +1,56 @@ -page{ +page { background: #d01119; width: 100%; - height: 100% - + height: 100%; } -.top-back{ + +.top-back { width: 100%; height: 60%; - background-repead:no-repead; - background-size:100% 100%; - + background-repead: no-repead; + background-size: 100% 100%; } -.top-frame{ + +.top-frame { width: 100%; height: auto; - padding-top: 50rpx + padding-top: 50rpx; } -.top-title{ - letter-spacing:10rpx + +.top-title { + letter-spacing: 10rpx; + width: 300rpx; } -.activity-data{ + +.activity-data { padding-top: 10rpx; letter-spacing: 10rpx; - } -.xc-specific-more-frame{ + +.xc-specific-more-frame { width: 100%; height: 40%; - margin-top: 20rpx; } -.task-number{ - margin-top: 50rpx + +.task-number { + margin-top: 50rpx; } -.task_clike{ + +.task_clike { margin: auto; width: 60%; height: 65rpx; border-radius: 50rpx; margin-top: 20rpx; background: #fbda0e; - color:#d01119; + color: #d01119; line-height: 65rpx; letter-spacing: 5rpx; - box-shadow: 0rpx 7rpx 0rpx 0rpx rgb(245, 119, 6); + box-shadow: 0rpx 7rpx 0rpx 0rpx rgb(245, 119, 6); } -/* 底部列表样式 */ +/* 底部列表样式 */ .head { border-bottom: 4rpx solid rgb(253, 193, 7); @@ -73,7 +77,7 @@ page{ } .unfinished { - width:35rpx; + width: 35rpx; height: 35rpx; margin-right: 10rpx; } @@ -110,27 +114,31 @@ page{ .receive { padding-bottom: 50rpx; } -.xc-center-img{ + +.xc-center-img { width: 100%; - height: 100% + height: 100%; } -.xc-left{ +.xc-left { width: 40rpx; height: 40rpx; } -.bcolor { -border-color: #fff; +.bcolor { + border-color: #fff; } -.xc-right{ + +.xc-right { width: 40rpx; height: 40rpx; } -.user_img{ + +.user_img { width: 50rpx; - height: 50rpx; + height: 50rpx; } + .dust { position: fixed; width: 100%; @@ -140,40 +148,43 @@ border-color: #fff; } .closes { - margin-top: 20rpx; + margin-top: 20rpx; } .canvas { position: fixed; z-index: 11; width: 100%; - top:20rpx; + top: 20rpx; } .close { width: 70rpx; height: 70rpx; } -.plan-frame{ - width: 86%; - margin: auto; + +.plan-frame { + width: 86%; + margin: auto; margin-top: 50rpx; - } -.plan-frame .plan_num{ - width: 90%; - background: #ffe7ab; - border-radius: 20rpx; - height: 22rpx; + +.plan-frame .plan_num { + width: 90%; + background: #ffe7ab; + border-radius: 20rpx; + height: 22rpx; margin-right: 10rpx; } -.is_plam{ - border-radius: 20rpx; + +.is_plam { + border-radius: 20rpx; background: #fcc001; - height: 100%; - top: 0rpx; - left: 0rpx; + height: 100%; + top: 0rpx; + left: 0rpx; } + .dust { position: fixed; width: 100%; @@ -183,26 +194,28 @@ border-color: #fff; } .closes { - margin-top: 20rpx; + margin-top: 20rpx; } .canvas { position: fixed; z-index: 20; width: 100%; - top:20rpx; + top: 20rpx; } .close { width: 70rpx; height: 70rpx; } -.select_details{ + +.select_details { width: 100%; height: 50rpx; line-height: 50rpx; text-align: center; - background: #000; - opacity:0.6; filter: alpha(opacity=60); + background: #000; + opacity: 0.6; + filter: alpha(opacity=60); bottom: 0rpx; -} \ No newline at end of file +}