3 lines
15 KiB
JavaScript
3 lines
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38976cec"],{"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("d3b7");function i(t,e,r,i,a,n,o){try{var s=t[n](o),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(i,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,n){var o=t.apply(e,r);function s(t){i(o,a,n,s,c,"next",t)}function c(t){i(o,a,n,s,c,"throw",t)}s(void 0)}))}}},"604d":function(t,e,r){var i=r("959d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("499e").default;a("e688dbbe",i,!0,{sourceMap:!1,shadowMode:!1})},"6c42":function(t,e,r){"use strict";r("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 r=e.getFullYear()+"-"+this._padLeftZero(e.getMonth()+1)+"-"+this._padLeftZero(e.getDate())+" "+this._padLeftZero(e.getHours())+":"+this._padLeftZero(e.getMinutes()+1),i=new Date,a=i.getDate(),n=i.getMonth()+1,o=i.getFullYear(),s="",c=r.substr(11,5);if(1==this.isYesterday(i,e))return s="昨天",s+" "+c;var l=this.isWeek(i,e);if(l.is&&l.cWeek-l.tWeek>=2)return s=this.weekArr[l.tWeek-1],s+" "+c;if(r.substr(0,4)==o)if(r.substr(5,2)==n){if(r.substr(8,2)==a)return c;s=r.substr(5,5)}else s=r.substr(5,5);else s=r.substr(0,7);return s+" "+c},i.prototype.isYesterday=function(t,e){var r=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()),i=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()),a=(i.getTime()-r.getTime())/864e5;return a},i.prototype.isWeek=function(t,e){var r=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()),i=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()),a=0==r.getDay()?7:r.getDay(),n=0==i.getDay()?7:i.getDay(),o=!0,s=(i.getTime()-r.getTime())/864e5;return o=!(s>=7)&&(a==n||!(n<=a)),{is:o,cWeek:n,tWeek:a}};var a=new i;e["a"]=a.getLocalTime.bind(a)},"7f8c":function(t,e,r){"use strict";r("604d")},"959d":function(t,e,r){var i=r("24fb");e=i(!1),e.push([t.i,".page[data-v-27ef8382]{background:#fafafa;min-height:100vh;padding-bottom:3.0625rem;text-align:left}.items[data-v-27ef8382]{padding:0 .781rem}.items .item .time[data-v-27ef8382]{height:2.75rem;line-height:2.75rem;letter-spacing:.019rem;color:#666;font-size:.75rem;text-align:center}.items .item .wrapper[data-v-27ef8382]{background-color:#fff;border-radius:.25rem;width:100%;padding:.844rem .875rem 0 .969rem}.items .item .wrapper .head[data-v-27ef8382]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.items .item .wrapper .head .face[data-v-27ef8382]{width:1.5rem;height:1.5rem;background-color:#eee}.items .item .wrapper .head .face img[data-v-27ef8382]{width:1.5rem;height:1.5rem;border-radius:50%}.items .item .wrapper .head .name[data-v-27ef8382]{margin-left:.438rem;font-size:.875rem;color:#000;letter-spacing:.022rem}.items .item .wrapper .head .label[data-v-27ef8382]{margin-left:.594rem;padding:.088rem .469rem .129rem .375rem;letter-spacing:.019rem;color:#fff;background-color:#43d9b0;border-radius:.563rem;font-size:.75rem}.items .item .wrapper .c1[data-v-27ef8382]{margin-top:.519rem}.items .item .wrapper .ca[data-v-27ef8382]{font-size:.75rem;line-height:1.25rem;letter-spacing:.019rem;color:#666}.items .item .wrapper .anchor[data-v-27ef8382]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:6.531rem;padding:1rem 0 1.531rem 0}.items .item .wrapper .anchor .face[data-v-27ef8382]{width:4rem;height:4rem;background-color:#eee}.items .item .wrapper .anchor .face img[data-v-27ef8382]{width:4rem;height:4rem}.items .item .wrapper .anchor .desc[data-v-27ef8382]{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-27ef8382]{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-27ef8382]{letter-spacing:.019rem;font-size:.75rem;color:#f42a2a}",""]),t.exports=e},"96a7":function(t,e,r){"use strict";r.r(e);var i=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"},[r("div",{staticClass:"head"},[r("div",{staticClass:"face"},[r("img",{attrs:{src:e.platform_img,alt:""}})]),r("p",{staticClass:"name"},[t._v(t._s(e.title))]),r("div",{staticClass:"label"},[t._v(t._s(e.platform))])]),r("p",{staticClass:"c1 ca"},[t._v(t._s(e.desc))]),e.msg_body&&0!=e.msg_body.length?r("div",{staticClass:"anchor"},[r("div",{staticClass:"face"},[r("img",{attrs:{src:e.msg_body.img,alt:""}})]),r("div",{staticClass:"desc"},[r("p",{staticClass:"name"},[t._v(t._s(e.msg_body.title))]),e.msg_body.desc?r("p",{staticClass:"tips"},[t._v(t._s(e.msg_body.desc))]):r("p",{staticClass:"tips"},[t._v("点击查看")])])]):t._e()])])})),0)],1)},a=[],n=r("c7eb"),o=(r("e7e5"),r("d399")),s=r("1da1"),c=(r("d3b7"),r("159b"),r("99af"),r("ac0d")),l=r("6c42"),u={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(s["a"])(Object(n["a"])().mark((function e(){var r;return Object(n["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:1});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(l["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:1}).then((function(e){if(t.isLoadMore=!0,1===e.result){var r=e.data.data;r.forEach((function(t){t.created_at=Object(l["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)}}},f=u,d=f,h=(r("7f8c"),r("2877")),p=Object(h["a"])(d,i,a,!1,null,"27ef8382",null);e["default"]=p.exports},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var i=document.documentElement,a=document.body,n={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:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&i.clientHeight?Math.min(a.clientHeight,i.clientHeight):Math.max(a.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(a.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(){}}}},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 i=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,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(M){l=function(t,e,r){return t[e]=r}}function u(t,e,r,i){var a=e&&e.prototype instanceof h?e:h,n=Object.create(a.prototype),o=new E(i||[]);return n._invoke=function(t,e,r){var i="suspendedStart";return function(a,n){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw n;return j()}for(r.method=a,r.arg=n;;){var o=r.delegate;if(o){var s=_(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var c=f(t,e,r);if("normal"===c.type){if(i=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),n}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(M){return{type:"throw",arg:M}}}t.wrap=u;var d={};function h(){}function p(){}function m(){}var g={};l(g,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==e&&r.call(y,o)&&(g=y);var b=m.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function a(n,o,s,c){var l=f(t[n],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==Object(i["a"])(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return a("throw",t,s,c)}))}c(l.arg)}var n;this._invoke=function(t,r){function i(){return new e((function(e,i){a(t,r,e,i)}))}return n=n?n.then(i,i):i()}}function _(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,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var a=i.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,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 i=-1,a=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=m,l(b,"constructor",m),l(m,"constructor",p),p.displayName=l(m,c,"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,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,i,a,n){void 0===n&&(n=Promise);var o=new x(u(e,r,i,a),n);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),l(b,c,"Generator"),l(b,o,(function(){return this})),l(b,"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 i=e.pop();if(i in t)return r.value=i,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(L),!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 i(r,i){return o.type="throw",o.arg=t,e.next=r,i&&(e.method="next",e.arg=void 0),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),c=r.call(n,"finallyLoc");if(s&&c){if(this.prev<n.catchLoc)return i(n.catchLoc,!0);if(this.prev<n.finallyLoc)return i(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return i(n.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return i(n.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,d):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),d},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),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var a=i.arg;L(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),d}},t}}}]); |