pages-activity-details.9de18fd2.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-details"],{"0692":function(t,e,i){"use strict";var n=i("c988"),a=i.n(n);a.a},"2ee2":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c975");var a=n(i("c7eb")),r=n(i("1da1")),s={data:function(){return{background:{backgroundColor:"#fff"},notice:"",list_id:"",studentList:[],ids:"",admin_id:"",role_id:""}},onLoad:function(t){var e=this;return(0,r.default)((0,a.default)().mark((function i(){return(0,a.default)().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,r.default)((0,a.default)().mark((function e(){return(0,a.default)().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=s},"2f7b":function(t,e){var i={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:n(" , ,\t,\r,\n,\f"),boolAttrs:n("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:n("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:n("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:n("a,colgroup,fieldset,legend"),selfClosingTags:n("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:n("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 n(t){for(var e=Object.create(null),i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports=i},"4df3":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.news_detail[data-v-d52daacc]{padding:16px}.news_detail .title[data-v-d52daacc]{font-size:18px;font-weight:600;line-height:24px;color:#1a1a1a;line-height:24px;opacity:1;text-align:center}.news_detail .person[data-v-d52daacc]{text-align:center;margin-top:8px;font-weight:400;line-height:14px;font-size:12px;color:#858585;opacity:.8}.news_detail .time[data-v-d52daacc]{text-align:center;margin-top:4px;font-weight:400;line-height:14px;font-size:12px;color:#858585;opacity:.8}.news_detail .top[data-v-d52daacc]{margin-top:15px;line-height:24px;font-size:15px}.news_detail .active_someone[data-v-d52daacc]{margin-bottom:80px;border-radius:8px;background:rgba(219,236,228,.3)}.news_detail .active_someone .enptyStatus[data-v-d52daacc]{display:flex;justify-content:center;align-items:center;flex-direction:column;padding:30px 10px}.news_detail .active_someone .enptyStatus uni-image[data-v-d52daacc]{width:80px;height:110px}.news_detail .active_someone .enptyStatus .words[data-v-d52daacc]{color:#ffae21;font-size:14px;padding-top:10px}.news_detail .active_someone .headers[data-v-d52daacc]{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-d52daacc]{margin:10px;max-height:170px;overflow-y:hidden;display:flex;flex-wrap:wrap}.news_detail .active_someone .bodys .sames[data-v-d52daacc]{height:50px;margin:15px 8px;text-align:center}.news_detail .active_someone .bodys .sames .avator[data-v-d52daacc]{width:32px;height:32px;border-radius:50%}.news_detail .active_someone .bodys .sames .names[data-v-d52daacc]{font-size:12px;line-height:17px;color:#858585}.news_detail .active_btn[data-v-d52daacc]{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},"5a18":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("b85c"));i("c975"),i("caad"),i("2532"),i("ac1f"),i("466d"),i("841c"),i("5319"),i("e25e"),i("14d9"),i("99af"),i("acd8");var r=uni.getSystemInfoSync(),s=r.windowWidth,o=(r.platform,i("2f7b")),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(){this.document=document.getElementById("rtf"+this._uid),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 r,c=this.rtf.getElementsByTagName("style"),d=0;r=c[d++];)r.innerHTML=r.innerHTML.replace(/body/g,"#rtf"+this._uid),r.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 l=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"))>s&&(h.style.height="auto"),f(h),h.hasAttribute("ignore")||"A"==h.parentElement.nodeName||(h.i=g++,l.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},l.$emit("imgtap",this),e&&uni.previewImage({current:this.i,urls:l.imgList})}),h.onerror=function(){o.errorImg&&(l.imgList[this.i]=this.src=o.errorImg),l.$emit("error",{source:"img",target:this})},l.lazyLoad&&this._observer&&h.src&&0!=h.i&&(h.setAttribute("data-src",h.src),h.removeAttribute("src"),this._observer.observe(h));var m,_=this.rtf.getElementsByTagName("a"),b=(0,a.default)(_);try{for(b.s();!(m=b.n()).done;){var x=m.value;x.onclick=function(t){t.stopPropagation();var e=!0,i=this.getAttribute("href");if(l.$emit("linkpress",{href:i,ignore:function(){return e=!1}}),e&&i)if("#"==i[0])l.useAnchor&&l.navigateTo({id:i.substr(1)});else{if(0==i.indexOf("http")||0==i.indexOf("//"))return!0;uni.navigateTo({url:i})}return!1}}}catch(N){b.e(N)}finally{b.f()}var y=this.rtf.getElementsByTagName("video");l.videoContexts=y;for(var w,T=0;w=y[T++];)f(w),w.style.maxWidth="100%",w.onerror=function(){l.$emit("error",{source:"video",target:this})},w.onplay=function(){if(l.autopause)for(var t,e=0;t=l.videoContexts[e++];)t!=this&&t.pause()};var C,k,A=this.rtf.getElementsByTagName("audio"),L=(0,a.default)(A);try{for(L.s();!(C=L.n()).done;){var O=C.value;f(O),O.onerror=function(){l.$emit("error",{source:"audio",target:this})}}}catch(N){L.e(N)}finally{L.f()}if(this.autoscroll){var S,I=this.rtf.getElementsByTagName("table"),B=(0,a.default)(I);try{for(B.s();!(S=B.n()).done;){var E=S.value,M=document.createElement("div");M.style.overflow="scroll",E.parentNode.replaceChild(M,E),M.appendChild(E)}}catch(N){B.e(N)}finally{B.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=uni.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"#_top")+(t.id?"".concat(" ","#").concat(t.id,",").concat(this._in?this._in.selector:"#_top").concat(" ",".").concat(t.id):"")).boundingClientRect();this._in?i.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():i.selectViewport().scrollOffset(),i.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 o.userAgentStyles)i+="".concat(n,"{").concat(o.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)*s/750+"px"}))),t}}};e.default=c},"8e2e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[this.nodes.length?this._e():this._t("default"),e("v-uni-view",{style:this.showAm+(this.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"_top"}},[e("div",{attrs:{id:"rtf"+this.uid}})])],2)},a=[]},9422:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes _show-data-v-f207f29a{0%{opacity:0}100%{opacity:1}}@keyframes _show-data-v-f207f29a{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},"9df4":function(t,e,i){"use strict";i.r(e);var n=i("5a18"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},ada4:function(t,e,i){"use strict";var n=i("c447"),a=i.n(n);a.a},b85c:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){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,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){c=!0,s=t},f:function(){try{o||null==i["return"]||i["return"]()}finally{if(c)throw s}}}},i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("d9e2"),i("d401");var n=function(t){return t&&t.__esModule?t:{default:t}}(i("06c5"))},c447:function(t,e,i){var n=i("9422");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("94e66384",n,!0,{sourceMap:!1,shadowMode:!1})},c988:function(t,e,i){var n=i("4df3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5183823c",n,!0,{sourceMap:!1,shadowMode:!1})},d0e3: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("d9bc").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.headimg,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=[]},d4eb:function(t,e,i){"use strict";i.r(e);var n=i("2ee2"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},d9bc:function(t,e,i){"use strict";i.r(e);var n=i("8e2e"),a=i("9df4");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("ada4");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"f207f29a",null,!1,n["a"],void 0);e["default"]=o.exports},e0f7:function(t,e,i){"use strict";i.r(e);var n=i("d0e3"),a=i("d4eb");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("0692");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"d52daacc",null,!1,n["a"],void 0);e["default"]=o.exports}}]);