| 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 i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,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,i,a,o){try{var c=e[a](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function c(e){r(o,i,a,c,u,"next",e)}function u(e){r(o,i,a,c,u,"throw",e)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML="._cellGroup_i1axj_1{margin:.37333rem!important;overflow:hidden;border-radius:.32rem;color:#666}._cellGroup_i1axj_1 ._image_i1axj_7{width:1.97333rem;height:1.97333rem;flex-shrink:0;margin-right:.4rem}._cellGroup_i1axj_1 ._title_i1axj_13{font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem}._cellGroup_i1axj_1 ._label_i1axj_19{font-size:.34667rem;line-height:.42667rem}._cellGroup_i1axj_1 ._cellTitle_i1axj_23{font-size:.37333rem;line-height:.53333rem;font-weight:600}._cellGroup_i1axj_1 ._button_i1axj_28{border-radius:.21333rem;padding:0 .32rem}._popup_i1axj_32{width:82%;border-radius:.32rem;overflow:hidden;text-align:center}._popupContainer_i1axj_38{padding:.90667rem 0 .8rem}._popupContainer_i1axj_38 ._cert_i1axj_41{width:1.76rem;height:1.65333rem;padding-bottom:.8rem}._popupContainer_i1axj_38 ._award_i1axj_46{width:4.96rem;height:2.82667rem;padding-bottom:.37333rem}._popupContainer_i1axj_38 h3{padding:0 0 .26667rem;font-size:.48rem;font-weight:600;color:#333;line-height:.66667rem}._popupContainer_i1axj_38 p{font-size:.37333rem;color:#666;padding-bottom:1.06667rem}._popupContainer_i1axj_38 ._btnGroup_i1axj_63{display:flex;justify-content:center}._popupContainer_i1axj_38 ._btnGroup_i1axj_63 ._lastBtn_i1axj_67{border:.02667rem solid #999999;background-color:#fff;color:#666}._popupContainer_i1axj_38 ._btnGroup_i1axj_63 .van-button{border-radius:.26667rem;width:60%}._popupContainer_i1axj_38 ._btnMore_i1axj_76 .van-button{width:38%}._popupContainer_i1axj_38 ._btnMore_i1axj_76 .van-button+.van-button{margin-left:.4rem}._popupGift_i1axj_82{background:transparent}._popupContainerGift_i1axj_85{position:relative}._popupContainerGift_i1axj_85 ._giftBg_i1axj_88{width:7.44rem;height:8.21333rem}._popupContainerGift_i1axj_85 ._giftBtn_i1axj_92{position:absolute;bottom:1.36rem;left:50%;transform:translate(-50%);width:3.54667rem;z-index:1}\n",document.head.appendChild(a),System.register(["./ResizeObserver.es-legacy.26eb1cf8.js","./index-legacy.60487b6d.js","./index-legacy.aa58f7fa.js","./index-legacy.5c4870ce.js","./index-legacy.152e9b86.js","./index-legacy.df68e0b0.js","./index-legacy.4673f42b.js","./index-legacy.3e126537.js","./use-tab-status-legacy.2e7d0aaa.js","./index-legacy.db4b384c.js","./index-legacy.e636fde8.js","./index-legacy.568096c4.js","./index-legacy.088735eb.js","./index-legacy.0c774398.js","./index-legacy.df4f1e2f.js","./use-id-legacy.8c265e97.js","./icon_checkbox-legacy.6421631e.js","./icon_checkbox_default-legacy.9f3738fd.js","./icon_checkbox-tenant-legacy.b4d3b7a3.js","./index-legacy.7b0420d6.js","./index-legacy.eb128afc.js"],(function(e){"use strict";var n,r,a,o,c,u,s,l,p,f,_,d,g,m,x,h,j;return{setters:[function(e){n=e.d,r=e.y,a=e.g,o=e.j,c=e.w,u=e.B,s=e.A,l=e.C,p=e.aS,f=e.$},function(e){_=e.C},function(e){d=e.C},function(e){g=e.I},function(e){m=e.L},function(e){x=e.C},function(e){h=e.U},function(e){j=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var b={cellGroup:"_cellGroup_i1axj_1",image:"_image_i1axj_7",title:"_title_i1axj_13",label:"_label_i1axj_19",cellTitle:"_cellTitle_i1axj_23",button:"_button_i1axj_28",popup:"_popup_i1axj_32",popupContainer:"_popupContainer_i1axj_38",cert:"_cert_i1axj_41",award:"_award_i1axj_46",btnGroup:"_btnGroup_i1axj_63",lastBtn:"_lastBtn_i1axj_67",btnMore:"_btnMore_i1axj_76",popupGift:"_popupGift_i1axj_82",popupContainerGift:"_popupContainerGift_i1axj_85",giftBg:"_giftBg_i1axj_88",giftBtn:"_giftBtn_i1axj_92"};e("default",n({name:"award-activity",data:function(){return{status:!1,statusGift:!1,list:[],dataShow:!0,loading:!1,finished:!1,params:{page:1,rows:20},exists:!1,popupShow:!1,receiveRewardId:null}},mounted:function(){var e=this;return i(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 i(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(a.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 i(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(a.platformApi,"/activity/receiveReward/").concat(e.receiveRewardId));case 3:e.statusGift=!0,e.receiveRewardId=null,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]])})))()},onAuthSuccess:function(){var e=this;return i(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 i(regeneratorRuntime.mark((function n(){var i,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=e.params,n.next=4,r.post("".concat(a.platformApi,"/activity/receiveRewardList"),{data:t({},i)});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:b.award},[o(j,null,null),this.dataShow?o(m,{class:b.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(_,{inset:!0,class:b.cellGroup},{default:function(){return[o(d,null,{icon:function(){return o(g,{src:e.imgUrl,class:b.image},null)},title:function(){return o("div",{class:b.title},[e.rewardName])},label:function(){return o("div",{class:b.label},[e.rewardDescribe])}}),o(d,{center:!0,title:"获奖时间:".concat(c(e.winningTime).format("YYYY-MM-DD")),titleClass:b.cellTitle},{value:function(){return o(u,{color:"linear-gradient(180deg, #FF8636 0%, #FF4E19 100%)",size:"small",class:b.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:b.popup},{default:function(){return[o("div",{class:b.popupContainer},[o(g,{src:"./assets/cert.7f558e5e.png",class:b.cert},null),o("h3",null,[s("您还没有实名认证")]),o("p",null,[s("完成实名认证后即可领取奖品")]),o("div",{class:[b.btnGroup,b.btnMore]},[o(u,{type:"primary",block:!0,class:b.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("立即认证")]}})])])]}}),o(p,{show:this.statusGift,"onUpdate:show":function(e){return n.statusGift=e},class:b.popupGift},{default:function(){return[o("div",{class:b.popupContainerGift},[o(g,{src:"./assets/gift-bg.07e4a33f.png",class:b.giftBg},null),o("img",{src:"./assets/gift-btn.267d29d9.png",class:b.giftBtn,onClick:function(){n.statusGift=!1,n.list=[],n.params.page=1,n.getList()}},null)])]}}),o(x,{modelValue:this.popupShow,"onUpdate:modelValue":function(e){return n.popupShow=e}},{default:function(){return[o(h,{exists:n.exists,onSuccess:n.onAuthSuccess},null)]}})])}}))}}}))}();
|