3 lines
13 KiB
JavaScript
3 lines
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c984d9e0"],{"1c5c":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".page[data-v-aaa49a20]{background:#fafafa;min-height:100vh;padding-bottom:3.0625rem;text-align:left}.items[data-v-aaa49a20]{padding:0 .781rem}.items .item .time[data-v-aaa49a20]{height:2.75rem;line-height:2.75rem;letter-spacing:.019rem;color:#666;font-size:.75rem;text-align:center}.items .item .wrapper[data-v-aaa49a20]{background-color:#fff;border-radius:.25rem;width:100%;padding:.844rem .875rem 1.031rem .969rem}.items .item .wrapper .face img[data-v-aaa49a20]{width:20.563rem;height:8.281rem;background-color:#eeecec}.items .item .wrapper .name[data-v-aaa49a20]{margin-top:.813rem;color:#000;font-size:1rem;-webkit-line-clamp:1;line-clamp:1}.items .item .wrapper .desc[data-v-aaa49a20],.items .item .wrapper .name[data-v-aaa49a20]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.items .item .wrapper .desc[data-v-aaa49a20]{margin-top:.625rem;font-size:.75rem;letter-spacing:.019rem;color:#333;-webkit-line-clamp:2;line-clamp:2}",""]),t.exports=e},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("d3b7");function n(t,e,r,n,a,i,o){try{var c=t[i](o),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var o=t.apply(e,r);function c(t){n(o,a,i,c,s,"next",t)}function s(t){n(o,a,i,c,s,"throw",t)}c(void 0)}))}}},"46ab":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("c-title",{attrs:{text:t.titleName}}),r("div",{staticClass:"items"},t._l(t.listData,(function(e){return r("div",{key:e._id,staticClass:"item",on:{click:function(r){return t.goPages(e.url)}}},[r("p",{staticClass:"time"},[t._v(t._s(e.created_at))]),r("div",{staticClass:"wrapper"},[""!=e.msg_img_src?r("div",{staticClass:"face"},[r("img",{attrs:{src:e.msg_img_src,alt:""}})]):t._e(),r("div",{staticClass:"name"},[t._v(t._s(e.title))]),r("div",{staticClass:"desc"},[t._v(t._s(e.desc))])])])})),0)],1)},a=[],i=r("c7eb"),o=(r("e7e5"),r("d399")),c=r("1da1"),s=(r("d3b7"),r("159b"),r("99af"),r("ac0d")),u=r("6c42"),l={mixins:[s["a"]],data:function(){return{titleName:"活动通知",page:1,isLoadMore:!0,total_page:0,listData:[],msg_body:{}}},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(c["a"])(Object(i["a"])().mark((function e(){var r;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initData(),o["a"].loading({message:"加载中",forbidClick:!0}),e.next=4,$http.get("plugin.instation-message.api.message.get-type-list",{type_id:8});case 4:if(r=e.sent,o["a"].clear(),1===r.result){e.next=9;break}return Object(o["a"])(r.msg),e.abrupt("return");case 9:r.data.data.forEach((function(t){t.created_at=Object(u["a"])(t.created_at)})),t.isLoadMore=!0,t.total_page=r.data.last_page,t.total_page||(t.total_page=0),t.listData=r.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:8}).then((function(e){if(t.isLoadMore=!0,1===e.result){var r=e.data.data;r.forEach((function(t){t.created_at=Object(u["a"])(t.created_at)})),t.listData=t.listData.concat(r)}else t.page=t.page-1,t.isLoadMore=!1})))},goPages:function(t){""!=t&&(window.location=t)}}},h=l,f=h,d=(r("6367"),r("2877")),p=Object(d["a"])(f,n,a,!1,null,"aaa49a20",null);e["default"]=p.exports},6367:function(t,e,r){"use strict";r("6908")},6908:function(t,e,r){var n=r("1c5c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("499e").default;a("f352f79e",n,!0,{sourceMap:!1,shadowMode:!1})},"6c42":function(t,e,r){"use strict";r("a9e3");function n(){this.weekArr=["周一","周二","周三","周四","周五"]}n.prototype._padLeftZero=function(t){return t=String(t),("00"+t).substr(t.length)},n.prototype.getLocalTime=function(t){var e;e="number"!=typeof parseInt(t)||isNaN(Number(t))?new Date(t):new Date(1e3*parseInt(t));var r=e.getFullYear()+"-"+this._padLeftZero(e.getMonth()+1)+"-"+this._padLeftZero(e.getDate())+" "+this._padLeftZero(e.getHours())+":"+this._padLeftZero(e.getMinutes()+1),n=new Date,a=n.getDate(),i=n.getMonth()+1,o=n.getFullYear(),c="",s=r.substr(11,5);if(1==this.isYesterday(n,e))return c="昨天",c+" "+s;var u=this.isWeek(n,e);if(u.is&&u.cWeek-u.tWeek>=2)return c=this.weekArr[u.tWeek-1],c+" "+s;if(r.substr(0,4)==o)if(r.substr(5,2)==i){if(r.substr(8,2)==a)return s;c=r.substr(5,5)}else c=r.substr(5,5);else c=r.substr(0,7);return c+" "+s},n.prototype.isYesterday=function(t,e){var r=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()),n=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()),a=(n.getTime()-r.getTime())/864e5;return a},n.prototype.isWeek=function(t,e){var r=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()),n=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()),a=0==r.getDay()?7:r.getDay(),i=0==n.getDay()?7:n.getDay(),o=!0,c=(n.getTime()-r.getTime())/864e5;return o=!(c>=7)&&(a==i||!(i<=a)),{is:o,cWeek:i,tWeek:a}};var a=new n;e["a"]=a.getLocalTime.bind(a)},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=document.documentElement,a=document.body,i={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return n&&n.scrollTop?t=n.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&n.clientHeight?Math.min(a.clientHeight,n.clientHeight):Math.max(a.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,n.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(){}}}},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("53ca");function a(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(T){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),o=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return M()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=L(o,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,o),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(T){return{type:"throw",arg:T}}}t.wrap=l;var f={};function d(){}function p(){}function g(){}var m={};u(m,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==e&&r.call(y,o)&&(m=y);var w=g.prototype=d.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function a(i,o,c,s){var u=h(t[i],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Object(n["a"])(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,c,s)}),(function(t){a("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return a("throw",t,c,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function D(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=g,u(w,"constructor",g),u(g,"constructor",p),p.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new _(l(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},b(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=D,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:D(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}}}]); |