承接微信小程序开发。扫码加微信。需要做红包功能的可以找我,收费卖源码,也承接开发。此博文仅示例。流程效果图:
图片1触发wx.sendBizRedPacket({})吊起图片2,点击开,出现图片3,关闭以后出现图片4。


wx.sendBizRedPacket({})说明及示例:
wx.sendBizRedPacket({timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:function(res){console.log('红包success')leturl=config.HTTP_Prize_URL+'/v1/sign_tmp/sendSuccess.do';letdata={minipid:that.data.minipid,date:that.data.date}console.log('红包成功以后接口请求参数数据:'+JSON.stringify(data))util.request(url,'post',data,'正在加载数据',function(res){console.log('红包成功以后接口返回结果:'+JSON.stringify(res.data))})wx.reLaunch({url:'../my_prize/my_prize_2?reward='+res.data.body.reward,})},fail:function(res){console.log('红包fail')},complete:function(res){console.log('红包complete')//wx.showModal({//title:'红包complete',//content:'红包complete',//})}})













