pages-activity-details.2f3e351d.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-details"],{"04ed":function(t,e,i){"use strict";var n=i("d7a6"),a=i.n(n);a.a},"0747":function(t,e,i){"use strict";i.r(e);var n=i("de7d"),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"2afe":function(t,e,i){"use strict";i.r(e);var n=i("8774"),a=i("31dc");for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("835d");var s,o=i("f0c5"),l=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"aefb0988",null,!1,n["a"],s);e["default"]=l.exports},"31dc":function(t,e,i){"use strict";i.r(e);var n=i("4767"),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"3d8e":function(t,e,i){"use strict";i.r(e);var n=i("4ee9"),a=i("0747");for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("04ed");var s,o=i("f0c5"),l=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"01dfbd2e",null,!1,n["a"],s);e["default"]=l.exports},4767:function(t,e,i){"use strict";var n=i("4ea4");i("c975"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("1da1")),r={data:function(){return{background:{backgroundColor:"#fff"},notice:"",list_id:"",studentList:[],ids:"",admin_id:"",role_id:""}},onLoad:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.is_weixin()&&e.navTitle(),e.list_id=t.id,console.log(t),i.next=5,e.$u.get("/inform/information/"+t.id).then((function(t){e.notice=t.data}));case 5:console.log(e.notice.admin_id,"admin_id"),e.admin_id=e.notice.admin_id,e.ids=e.vuex_user.id,e.role_id=e.vuex_user.role_id,console.log(e.vuex_user,"拿到所有信息000"),console.log(e.ids,"拿到所有信息1111"),console.log(e.role_id,"拿到所有信息222"),e.getList();case 13:case"end":return i.stop()}}),i)})))()},methods:{is_weixin:function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("micromessenger")},navTitle:function(){var t=document.getElementsByTagName("uni-page-head");t[0].style.display="none"},getList:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$u.get("/inform/information-activity",{information_id:t.list_id}).then((function(e){uni.hideLoading(),console.log(e.data,"报名列表数据"),t.studentList=e.data.list}));case 2:case"end":return e.stop()}}),e)})))()},changeActive:function(){console.log(this.list_id,"学生信息id"),uni.navigateTo({url:"./details_list?student_id="+this.list_id})}}};e.default=r},"4ee9":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.nodes.length?t._e():t._t("default"),i("v-uni-view",{style:t.showAm+(t.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"_top"}},[i("div",{attrs:{id:"rtf"+t.uid}})])],2)},r=[]},6717:function(t,e,i){var n=i("81f7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("4576993a",n,!0,{sourceMap:!1,shadowMode:!1})},"81f7":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\r\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\r\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \r\n */.news_detail[data-v-aefb0988]{padding:16px}.news_detail .title[data-v-aefb0988]{font-size:18px;font-weight:600;line-height:24px;color:#1a1a1a;line-height:24px;opacity:1;text-align:center}.news_detail .person[data-v-aefb0988]{text-align:center;margin-top:8px;font-weight:400;line-height:14px;font-size:12px;color:#858585;opacity:.8}.news_detail .time[data-v-aefb0988]{text-align:center;margin-top:4px;font-weight:400;line-height:14px;font-size:12px;color:#858585;opacity:.8}.news_detail .top[data-v-aefb0988]{margin-top:15px;line-height:24px;font-size:15px}.news_detail .active_someone[data-v-aefb0988]{margin-bottom:80px;border-radius:8px;background:rgba(219,236,228,.3)}.news_detail .active_someone .enptyStatus[data-v-aefb0988]{display:flex;justify-content:center;align-items:center;flex-direction:column;padding:30px 10px}.news_detail .active_someone .enptyStatus uni-image[data-v-aefb0988]{width:80px;height:110px}.news_detail .active_someone .enptyStatus .words[data-v-aefb0988]{color:#ffae21;font-size:14px;padding-top:10px}.news_detail .active_someone .headers[data-v-aefb0988]{height:18px;font-size:13px;color:#138e57;font-weight:500;margin-left:15px;padding-top:11px;margin-bottom:11px}.news_detail .active_someone .bodys[data-v-aefb0988]{margin:10px;max-height:170px;overflow-y:hidden;display:flex;flex-wrap:wrap}.news_detail .active_someone .bodys .sames[data-v-aefb0988]{height:50px;margin:15px 8px;text-align:center}.news_detail .active_someone .bodys .sames .avator[data-v-aefb0988]{width:32px;height:32px;border-radius:50%}.news_detail .active_someone .bodys .sames .names[data-v-aefb0988]{font-size:12px;line-height:17px;color:#858585}.news_detail .active_btn[data-v-aefb0988]{position:fixed;bottom:30px;padding:0 80px;left:16%;height:40px;margin-top:50px;background:#138e57;border-radius:25px;font-size:16px;text-align:center;line-height:40px;color:#fff}',""]),t.exports=e},"835d":function(t,e,i){"use strict";var n=i("6717"),a=i.n(n);a.a},8774:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uParse:i("3d8e").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"news_detail"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(t.notice.title))]),i("v-uni-view",{staticClass:"person"},[t._v("发布人:"+t._s(t.notice.admin_name))]),i("v-uni-view",{staticClass:"time"},[t._v(t._s(t.notice.created_at))]),i("v-uni-view",{staticClass:"top"},[i("u-parse",{attrs:{html:t.notice.body}})],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:this.studentList.length>0&&this.ids==this.admin_id,expression:"(this.studentList.length > 0 && this.ids == this.admin_id)"}],staticClass:"active_someone"},[i("v-uni-view",{staticClass:"headers"},[t._v("他们刚刚报名了活动:")]),i("v-uni-view",{staticClass:"bodys"},t._l(t.studentList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"sames"},[i("v-uni-image",{staticClass:"avator",attrs:{src:e.student?e.student.headimg:"../../static/choose.png",mode:""}}),i("v-uni-view",{staticClass:"names"},[t._v(t._s(e.student.truename))])],1)})),1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:this.studentList.length>0&&this.ids==this.admin_id,expression:"(this.studentList.length > 0 && this.ids == this.admin_id)"}],staticClass:"active_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeActive.apply(void 0,arguments)}}},[t._v("查看报名信息")])],1)},r=[]},b85c:function(t,e,i){"use strict";i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=a(i("06c5"));function a(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(0,n.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){l=!0,s=t},f:function(){try{o||null==i["return"]||i["return"]()}finally{if(l)throw s}}}}},c680:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes _show-data-v-01dfbd2e{0%{opacity:0}100%{opacity:1}}@keyframes _show-data-v-01dfbd2e{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},d7a6:function(t,e,i){var n=i("c680");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("20f01f72",n,!0,{sourceMap:!1,shadowMode:!1})},dc2c:function(t,e,i){i("ac1f"),i("1276");var n={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:" ",emsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:a(" , ,\t,\r,\n,\f"),boolAttrs:a("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:a("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:a("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:a("a,colgroup,fieldset,legend"),selfClosingTags:a("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:a("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function a(t){for(var e=Object.create(null),i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports=n},de7d:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("caad"),i("c975"),i("acd8"),i("e25e"),i("ac1f"),i("2532"),i("466d"),i("5319"),i("841c"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,r=n(i("b85c")),s=uni.getSystemInfoSync(),o=s.windowWidth,l=(s.platform,i("dc2c")),c={name:"parser",data:function(){return{uid:this._uid,showAm:"",nodes:[]}},props:{html:String,autopause:{type:Boolean,default:!0},autoscroll:Boolean,autosetTitle:{type:Boolean,default:!0},domain:String,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},created:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e<i;e++)this.setItem(e,t(this[e],e,this))},this.imgList.setItem=function(t,e){if(void 0!=t&&e){if(0==e.indexOf("http")&&this.includes(e)){for(var i,n=e.split("://")[0],a=n.length;i=e[a];a++){if("/"==i&&"/"!=e[a-1]&&"/"!=e[a+1])break;n+=Math.random()>.5?i.toUpperCase():i}return n+=e.substr(a),this[t]=n}if(this[t]=e,e.includes("data:image")){var r=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!r)return}}}},mounted:function(){var t=this;this.document=document.getElementById("rtf"+this._uid),a&&(this.search=function(e){return a(t,e)}),this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var a,s=this.rtf.getElementsByTagName("style"),c=0;a=s[c++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"500px 0px 500px 0px"}));var d=this,u=this.rtf.getElementsByTagName("title");u.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:u[0].innerText});var f=function(t){var e=t.getAttribute("src");i.domain&&e&&("/"==e[0]?"/"==e[1]?t.src=(i.domain.includes("://")?i.domain.split("://")[0]:"")+":"+e:t.src=i.domain+e:e.includes("://")||0==e.indexOf("data:")||(t.src=i.domain+"/"+e))};this.imgList.length=0;for(var h,p=this.rtf.getElementsByTagName("img"),v=0,g=0;h=p[v];v++)parseInt(h.style.width||h.getAttribute("width"))>o&&(h.style.height="auto"),f(h),h.hasAttribute("ignore")||"A"==h.parentElement.nodeName||(h.i=g++,d.imgList.push(h.getAttribute("original-src")||h.src||h.getAttribute("data-src")),h.onclick=function(t){t.stopPropagation();var e=!0;this.ignore=function(){return e=!1},d.$emit("imgtap",this),e&&uni.previewImage({current:this.i,urls:d.imgList})}),h.onerror=function(){l.errorImg&&(d.imgList[this.i]=this.src=l.errorImg),d.$emit("error",{source:"img",target:this})},d.lazyLoad&&this._observer&&h.src&&0!=h.i&&(h.setAttribute("data-src",h.src),h.removeAttribute("src"),this._observer.observe(h));var m,b=this.rtf.getElementsByTagName("a"),_=(0,r.default)(b);try{for(_.s();!(m=_.n()).done;){var x=m.value;x.onclick=function(t){t.stopPropagation();var e=!0,i=this.getAttribute("href");if(d.$emit("linkpress",{href:i,ignore:function(){return e=!1}}),e&&i)if("#"==i[0])d.useAnchor&&d.navigateTo({id:i.substr(1)});else{if(0==i.indexOf("http")||0==i.indexOf("//"))return!0;uni.navigateTo({url:i})}return!1}}}catch(z){_.e(z)}finally{_.f()}var y=this.rtf.getElementsByTagName("video");d.videoContexts=y;for(var w,T=0;w=y[T++];)f(w),w.style.maxWidth="100%",w.onerror=function(){d.$emit("error",{source:"video",target:this})},w.onplay=function(){if(d.autopause)for(var t,e=0;t=d.videoContexts[e++];)t!=this&&t.pause()};var C,k,A=this.rtf.getElementsByTagName("audio"),L=(0,r.default)(A);try{for(L.s();!(C=L.n()).done;){var S=C.value;f(S),S.onerror=function(){d.$emit("error",{source:"audio",target:this})}}}catch(z){L.e(z)}finally{L.f()}if(this.autoscroll){var I,B=this.rtf.getElementsByTagName("table"),O=(0,r.default)(B);try{for(O.s();!(I=O.n()).done;){var E=I.value,N=document.createElement("div");N.style.overflow="scroll",E.parentNode.replaceChild(N,E),N.appendChild(E)}}catch(z){O.e(z)}finally{O.f()}}e||this.document.appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){i.rect=i.rtf.getBoundingClientRect(),i.rect.height==k&&(i.$emit("ready",i.rect),clearInterval(i._timer)),k=i.rect.height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:_show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;var t="";return t=this.rtf.innerText,t},in:function(t){t.page&&t.selector&&t.scrollTop&&(this._in=t)},navigateTo:function(t){var e=this;if(!this.useAnchor)return t.fail&&t.fail("Anchor is disabled");var i=" ",n=uni.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"#_top")+(t.id?"".concat(i,"#").concat(t.id,",").concat(this._in?this._in.selector:"#_top").concat(i,".").concat(t.id):"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((function(i){if(!i[0])return t.fail&&t.fail("Label not found");var n=i[1].scrollTop+i[0].top-(i[2]?i[2].top:0)+(t.offset||0);e._in?e._in.page[e._in.scrollTop]=n:uni.pageScrollTo({scrollTop:n,duration:300}),t.success&&t.success()}))},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},_handleHtml:function(t,e){if(!e){var i="<style scoped>@keyframes _show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}";for(var n in l.userAgentStyles)i+="".concat(n,"{").concat(l.userAgentStyles[n],"}");for(n in this.tagStyle)i+="".concat(n,"{").concat(this.tagStyle[n],"}");i+="</style>",t=i+t}return t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*o/750+"px"}))),t}}};e.default=c}}]);