1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f20c57e"],{"0213":function(t,e,a){var i=a("5da8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("392e12a8",i,!0,{sourceMap:!1,shadowMode:!1})},"5da8":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-b08bc9ac]{background:#fafafa;min-height:100vh;padding-bottom:4.0625rem;text-align:left}.items[data-v-b08bc9ac]{padding:0 .781rem}.items .item .time[data-v-b08bc9ac]{height:2.75rem;line-height:2.75rem;letter-spacing:.019rem;color:#666;font-size:.75rem;text-align:center}.items .item .wrapper[data-v-b08bc9ac]{background-color:#fff;border-radius:.25rem;width:100%;padding:.844rem .875rem 0 .969rem}.items .item .wrapper .name[data-v-b08bc9ac]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#000;font-size:1rem}.items .item .wrapper .c1[data-v-b08bc9ac]{margin-top:.519rem}.items .item .wrapper .ca[data-v-b08bc9ac]{font-size:.75rem;line-height:1.25rem;letter-spacing:.019rem;color:#666}.items .item .wrapper .botm[data-v-b08bc9ac]{margin-top:.813rem;border-top:.031rem solid #f4f4f4;height:1.938rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;letter-spacing:.022rem;color:#666;font-size:.875rem}.items .item .wrapper .anchor[data-v-b08bc9ac],.items .item .wrapper .botm[data-v-b08bc9ac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.items .item .wrapper .anchor[data-v-b08bc9ac]{height:6.531rem;padding:1rem 0 1.531rem 0}.items .item .wrapper .anchor .face img[data-v-b08bc9ac]{width:4rem;height:4rem;background-color:#999}.items .item .wrapper .anchor .desc[data-v-b08bc9ac]{height:4rem;padding-left:.531rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.items .item .wrapper .anchor .desc .name[data-v-b08bc9ac]{letter-spacing:.019rem;color:#000;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.items .item .wrapper .anchor .desc .tips[data-v-b08bc9ac]{letter-spacing:.019rem;font-size:.75rem;color:#f42a2a}",""]),t.exports=e},"6c42":function(t,e,a){"use strict";a("a9e3");function i(){this.weekArr=["周一","周二","周三","周四","周五"]}i.prototype._padLeftZero=function(t){return t=String(t),("00"+t).substr(t.length)},i.prototype.getLocalTime=function(t){var e;e="number"!=typeof parseInt(t)||isNaN(Number(t))?new Date(t):new Date(1e3*parseInt(t));var a=e.getFullYear()+"-"+this._padLeftZero(e.getMonth()+1)+"-"+this._padLeftZero(e.getDate())+" "+this._padLeftZero(e.getHours())+":"+this._padLeftZero(e.getMinutes()+1),i=new Date,s=i.getDate(),r=i.getMonth()+1,n=i.getFullYear(),o="",c=a.substr(11,5);if(1==this.isYesterday(i,e))return o="昨天",o+" "+c;var l=this.isWeek(i,e);if(l.is&&l.cWeek-l.tWeek>=2)return o=this.weekArr[l.tWeek-1],o+" "+c;if(a.substr(0,4)==n)if(a.substr(5,2)==r){if(a.substr(8,2)==s)return c;o=a.substr(5,5)}else o=a.substr(5,5);else o=a.substr(0,7);return o+" "+c},i.prototype.isYesterday=function(t,e){var a=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()),i=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()),s=(i.getTime()-a.getTime())/864e5;return s},i.prototype.isWeek=function(t,e){var a=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()),i=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()),s=0==a.getDay()?7:a.getDay(),r=0==i.getDay()?7:i.getDay(),n=!0,o=(i.getTime()-a.getTime())/864e5;return n=!(o>=7)&&(s==r||!(r<=s)),{is:n,cWeek:r,tWeek:s}};var s=new i;e["a"]=s.getLocalTime.bind(s)},"8c248":function(t,e,a){"use strict";a("0213")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=document.documentElement,s=document.body,r={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},bfc5f:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page"},[a("c-title",{attrs:{text:t.titleName}}),a("div",{staticClass:"items"},t._l(t.listData,(function(e){return a("div",{key:e._id,staticClass:"item type1",on:{click:function(a){return t.goPages(e.url)}}},[a("p",{staticClass:"time"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"name"},[t._v(t._s(e.title))]),a("p",{staticClass:"c1 ca"},[t._v(t._s(e.desc))]),0==e.msg_body.length?a("div",{staticClass:"botm"},[a("span",[t._v("查看详情")]),a("i",{staticClass:"iconfont icon-advertise-next"})]):a("div",{staticClass:"anchor"},[a("div",{staticClass:"face"},[a("img",{attrs:{src:e.msg_body.img,alt:""}})]),a("div",{staticClass:"desc"},[a("p",{staticClass:"name"},[t._v(t._s(e.msg_body.title))]),a("p",{staticClass:"tips"},[t._v(t._s(e.msg_body.desc))])])])])])})),0)],1)},s=[],r=a("c7eb"),n=(a("e7e5"),a("d399")),o=a("1da1"),c=(a("d3b7"),a("159b"),a("99af"),a("ac0d")),l=a("6c42"),d={mixins:[c["a"]],data:function(){return{titleName:"申请",page:1,isLoadMore:!0,total_page:0,listData:[],msg_body:{title:"直播间标题:",desc:"提示语:",img:"直播间封面图:"}}},activated:function(){this.$route.query.pageTitle&&(this.titleName=this.$route.query.pageTitle,this.fun.setWXTitle(this.titleName)),this.getListData()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0},getListData:function(){var t=this;return Object(o["a"])(Object(r["a"])().mark((function e(){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initData(),n["a"].loading({message:"加载中",forbidClick:!0}),e.next=4,$http.get("plugin.instation-message.api.message.get-type-list",{type_id:3});case 4:if(a=e.sent,n["a"].clear(),1===a.result){e.next=9;break}return Object(n["a"])(a.msg),e.abrupt("return");case 9:a.data.data.forEach((function(t){t.created_at=Object(l["a"])(t.created_at)})),t.isLoadMore=!0,t.total_page=a.data.last_page,t.total_page||(t.total_page=0),t.listData=a.data.data;case 14:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.instation-message.api.message.get-type-list",{page:this.page,type_id:3}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;a.forEach((function(t){t.created_at=Object(l["a"])(t.created_at)})),t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))},goPages:function(t){""!=t&&(window.location=t)}}},m=d,p=m,g=(a("8c248"),a("2877")),u=Object(g["a"])(p,i,s,!1,null,"b08bc9ac",null);e["default"]=u.exports}}]); |