index-legacy.42676b18.js 8.6 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,a,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function c(e){r(o,a,i,c,u,"next",e)}function u(e){r(o,a,i,c,u,"throw",e)}c(void 0)}))}}var i=document.createElement("style");i.innerHTML="._cellGroup_1m609_1{margin:.37333rem!important;overflow:hidden;border-radius:.32rem;color:#666}._cellGroup_1m609_1 ._image_1m609_7{width:1.97333rem;height:1.97333rem;flex-shrink:0;margin-right:.4rem}._cellGroup_1m609_1 ._title_1m609_13{font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem}._cellGroup_1m609_1 ._label_1m609_19{font-size:.34667rem;line-height:.42667rem}._cellGroup_1m609_1 ._cellTitle_1m609_23{font-size:.37333rem;line-height:.53333rem;font-weight:600}._cellGroup_1m609_1 ._button_1m609_28{border-radius:.21333rem;padding:0 .32rem}._popup_1m609_32{width:82%;border-radius:.32rem;overflow:hidden;text-align:center}._popupContainer_1m609_38{padding:.90667rem 0 .8rem}._popupContainer_1m609_38 ._cert_1m609_41{width:1.76rem;height:1.65333rem;padding-bottom:.8rem}._popupContainer_1m609_38 ._award_1m609_46{width:4.96rem;height:2.82667rem;padding-bottom:.37333rem}._popupContainer_1m609_38 h3{padding:0 0 .26667rem;font-size:.48rem;font-weight:600;color:#333;line-height:.66667rem}._popupContainer_1m609_38 p{font-size:.37333rem;color:#666;padding-bottom:1.06667rem}._popupContainer_1m609_38 ._btnGroup_1m609_63{display:flex;justify-content:center}._popupContainer_1m609_38 ._btnGroup_1m609_63 ._lastBtn_1m609_67{border:.02667rem solid #999999;background-color:#fff;color:#666}._popupContainer_1m609_38 ._btnGroup_1m609_63 .van-button{border-radius:.26667rem;width:60%}._popupContainer_1m609_38 ._btnMore_1m609_76 .van-button{width:38%}._popupContainer_1m609_38 ._btnMore_1m609_76 .van-button+.van-button{margin-left:.4rem}\n",document.head.appendChild(i),System.register(["./index-legacy.b2528a15.js","./index-legacy.a7e74731.js","./index-legacy.207dc8c2.js","./index-legacy.ca42ae97.js","./index-legacy.9cbe7ce8.js","./index-legacy.5f62c00f.js","./index-legacy.0d47d1e6.js","./index-legacy.81a64bb6.js","./use-tab-status-legacy.5c2c2da3.js","./index-legacy.c610561c.js","./index-legacy.fafbdfb8.js","./index-legacy.d3645f16.js","./index-legacy.987f23f1.js","./index-legacy.7d3d7cf1.js","./index-legacy.ab501af1.js","./use-id-legacy.4f071235.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.5af656e4.js","./index-legacy.f75b8290.js","./use-height-legacy.2a153aaf.js"],(function(e){"use strict";var n,r,i,o,c,u,s,l,p,d,f,m,_,g,h,b,w,v;return{setters:[function(e){n=e.d,r=e.e,i=e.s,o=e.i,c=e.x,u=e.B,s=e.A,l=e.C,p=e.aT,d=e.F,f=e.$},function(e){m=e.C},function(e){_=e.C},function(e){g=e.I},function(e){h=e.L},function(e){b=e.C},function(e){w=e.U},function(e){v=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var y={cellGroup:"_cellGroup_1m609_1",image:"_image_1m609_7",title:"_title_1m609_13",label:"_label_1m609_19",cellTitle:"_cellTitle_1m609_23",button:"_button_1m609_28",popup:"_popup_1m609_32",popupContainer:"_popupContainer_1m609_38",cert:"_cert_1m609_41",award:"_award_1m609_46",btnGroup:"_btnGroup_1m609_63",lastBtn:"_lastBtn_1m609_67",btnMore:"_btnMore_1m609_76"};e("default",n({name:"award-activity",data:function(){return{status:!1,type:"auth",list:[],dataShow:!0,loading:!1,finished:!1,params:{page:1,rows:20},exists:!1,popupShow:!1,receiveRewardId:null}},mounted:function(){var e=this;return a(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getList();case 1:case"end":return t.stop()}}),t)})))()},methods:{getUserRegisterProtocol:function(){var e=this;return a(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.get(i.platformApi+"/sysUserContractRecord/checkContractSign",{params:{contractType:"REGISTER"}});case 3:n=t.sent,e.exists=n.data,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onGetAward:function(){var e=this;return a(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.post("".concat(i.platformApi,"/activity/receiveReward/").concat(e.receiveRewardId));case 3:e.status=!0,e.type="success",e.receiveRewardId=null,t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},onAuthSuccess:function(){var e=this;return a(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.popupShow=!1,e.status=!1,t.next=4,e.getUserRegisterProtocol();case 4:e.onGetAward();case 5:case"end":return t.stop()}}),t)})))()},getList:function(){var e=this;return a(regeneratorRuntime.mark((function n(){var a,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,a=e.params,n.next=4,r.post("".concat(i.platformApi,"/activity/receiveRewardList"),{data:t({},a)});case 4:if(o=n.sent,e.loading=!1,c=o.data||{},!(e.list.length>0&&1===c.pageNo)){n.next=9;break}return n.abrupt("return");case 9:e.list=e.list.concat(c.rows||[]),e.finished=c.pageNo>=c.totalPage,e.params.page=c.pageNo+1,e.dataShow=e.list.length>0,n.next=19;break;case 15:n.prev=15,n.t0=n.catch(0),e.dataShow=!1,e.finished=!0;case 19:case"end":return n.stop()}}),n,null,[[0,15]])})))()}},render:function(){var e,t,n=this;return o("div",{class:y.award},[o(v,null,null),this.dataShow?o(h,{class:y.videoList,loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:" ",immediateCheck:!1,onLoad:this.getList},(t=e=this.list.map((function(e){return o(m,{inset:!0,class:y.cellGroup},{default:function(){return[o(_,null,{icon:function(){return o(g,{src:e.imgUrl,class:y.image},null)},title:function(){return o("div",{class:y.title},[e.rewardName])},label:function(){return o("div",{class:y.label},[e.rewardDescribe])}}),o(_,{center:!0,title:"获奖时间:".concat(c(e.winningTime).format("YYYY-MM-DD")),titleClass:y.cellTitle},{value:function(){return o(u,{color:"linear-gradient(180deg, #FF8636 0%, #FF4E19 100%)",size:"small",class:y.button,onClick:function(){n.receiveRewardId=e.receiveRewardId,n.onGetAward()}},{default:function(){return[s("立即领取")]}})}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)?e:{default:function(){return[e]}})):o(l,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无数据"},null),o(p,{show:this.status,"onUpdate:show":function(e){return n.status=e},class:y.popup},{default:function(){return[o("div",{class:y.popupContainer},["auth"===n.type&&o(d,null,[o(g,{src:"./assets/cert.7f558e5e.png",class:y.cert},null),o("h3",null,[s("您还没有实名认证")]),o("p",null,[s("完成实名认证后即可领取奖品")]),o("div",{class:[y.btnGroup,y.btnMore]},[o(u,{type:"primary",block:!0,class:y.lastBtn,onClick:function(){n.status=!1}},{default:function(){return[s("以后再说")]}}),o(u,{type:"primary",block:!0,color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",onClick:function(){n.popupShow=!0}},{default:function(){return[s("立即认证")]}})])]),"success"===n.type&&o(d,null,[o(g,{src:"./assets/award.2f8938c1.png",class:y.award},null),o("h3",null,[s("奖品领取成功!")]),o("p",null,[s("请耐心等待,活动奖品将会到达~")]),o("div",{class:[y.btnGroup]},[o(u,{type:"primary",block:!0,color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",onClick:function(){n.status=!1,n.list=[],n.params.page=1,n.getList()}},{default:function(){return[s("我知道了")]}})])])])]}}),o(b,{modelValue:this.popupShow,"onUpdate:modelValue":function(e){return n.popupShow=e}},{default:function(){return[o(w,{exists:n.exists,onSuccess:n.onAuthSuccess},null)]}})])}}))}}}))}();