index-legacy.92139330.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 o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,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,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,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.fba2875c.js","./index-legacy.f231f1c5.js","./index-legacy.7dcec7b3.js","./index-legacy.d92f7da7.js","./index-legacy.a7012d0a.js","./index-legacy.2049c355.js","./index-legacy.8ed66537.js","./index-legacy.e7460ea1.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.a8eec4ea.js","./index-legacy.fc77fe4f.js","./index-legacy.45490234.js","./index-legacy.32d1c54d.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js","./icon_checkbox_default-legacy.e33240bc.js","./icon_checkbox-tenant-legacy.2501219f.js","./index-legacy.21d121b2.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js"],(function(e){"use strict";var n,r,i,a,c,u,s,l,p,d,f,m,_,g,h,b,w,v;return{setters:[function(e){n=e.d,r=e.w,i=e.g,a=e.j,c=e.u,u=e.B,s=e.z,l=e.C,p=e.aR,d=e.F,f=e.Z},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 o(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 o(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 o(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 o(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 o(regeneratorRuntime.mark((function n(){var o,a,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o=e.params,n.next=4,r.post("".concat(i.platformApi,"/activity/receiveRewardList"),{data:t({},o)});case 4:if(a=n.sent,e.loading=!1,c=a.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 a("div",{class:y.award},[a(v,null,null),this.dataShow?a(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 a(m,{inset:!0,class:y.cellGroup},{default:function(){return[a(_,null,{icon:function(){return a(g,{src:e.imgUrl,class:y.image},null)},title:function(){return a("div",{class:y.title},[e.rewardName])},label:function(){return a("div",{class:y.label},[e.rewardDescribe])}}),a(_,{center:!0,title:"获奖时间:".concat(c(e.winningTime).format("YYYY-MM-DD")),titleClass:y.cellTitle},{value:function(){return a(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]}})):a(l,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无数据"},null),a(p,{show:this.status,"onUpdate:show":function(e){return n.status=e},class:y.popup},{default:function(){return[a("div",{class:y.popupContainer},["auth"===n.type&&a(d,null,[a(g,{src:"./assets/cert.7f558e5e.png",class:y.cert},null),a("h3",null,[s("您还没有实名认证")]),a("p",null,[s("完成实名认证后即可领取奖品")]),a("div",{class:[y.btnGroup,y.btnMore]},[a(u,{type:"primary",block:!0,class:y.lastBtn,onClick:function(){n.status=!1}},{default:function(){return[s("以后再说")]}}),a(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&&a(d,null,[a(g,{src:"./assets/award.2f8938c1.png",class:y.award},null),a("h3",null,[s("奖品领取成功!")]),a("p",null,[s("请耐心等待,活动奖品将会到达~")]),a("div",{class:[y.btnGroup]},[a(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("我知道了")]}})])])])]}}),a(b,{modelValue:this.popupShow,"onUpdate:modelValue":function(e){return n.popupShow=e}},{default:function(){return[a(w,{exists:n.exists,onSuccess:n.onAuthSuccess},null)]}})])}}))}}}))}();