3 lines
14 KiB
JavaScript
3 lines
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e300ae82"],{"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 s=t[i](o),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).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 s(t){n(o,a,i,s,c,"next",t)}function c(t){n(o,a,i,s,c,"throw",t)}s(void 0)}))}}},3814:function(t,e,r){"use strict";r("62b6")},5090:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".page[data-v-c781aff4]{background:#fafafa;min-height:100vh;padding-bottom:3.0625rem;text-align:left}.items[data-v-c781aff4]{padding:0 .781rem}.items .item .time[data-v-c781aff4]{height:2.75rem;line-height:2.75rem;letter-spacing:.019rem;color:#666;font-size:.75rem;text-align:center}.items .item .wrapper[data-v-c781aff4]{background-color:#fff;border-radius:.25rem;width:100%;padding:.844rem .875rem 0 .969rem}.items .item .wrapper .name[data-v-c781aff4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#000;font-size:1rem}.items .item .wrapper .c1[data-v-c781aff4]{margin-top:.519rem}.items .item .wrapper .ca[data-v-c781aff4]{font-size:.75rem;line-height:1.25rem;letter-spacing:.019rem;color:#666}.items .item .wrapper .botm[data-v-c781aff4]{margin-top:.813rem;border-top:.031rem solid #f4f4f4;height:1.938rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-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}",""]),t.exports=e},"62b6":function(t,e,r){var n=r("5090");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("499e").default;a("de9bce10",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(),s="",c=r.substr(11,5);if(1==this.isYesterday(n,e))return s="昨天",s+" "+c;var u=this.isWeek(n,e);if(u.is&&u.cWeek-u.tWeek>=2)return s=this.weekArr[u.tWeek-1],s+" "+c;if(r.substr(0,4)==o)if(r.substr(5,2)==i){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},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,s=(n.getTime()-r.getTime())/864e5;return o=!(s>=7)&&(a==i||!(i<=a)),{is:o,cWeek:i,tWeek:a}};var a=new n;e["a"]=a.getLocalTime.bind(a)},"8dd9":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("van-tabs",{on:{click:t.changeTags},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.subTypeList,(function(e){return r("van-tab",{key:e.sub_type,attrs:{title:e.sub_title}},[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:"name"},[t._v(t._s(e.title))]),r("p",{staticClass:"c1 ca"},[t._v(t._s(e.desc))]),t._l(e.msg_body,(function(e,n){return r("p",{key:n,staticClass:"c2 ca"},[t._v(t._s(t.msg_body[n])+t._s(e))])})),r("div",{staticClass:"botm"},[r("span",[t._v("查看详情")]),r("i",{staticClass:"iconfont icon-advertise-next"})])],2)])})),0)])})),1)],1)},a=[],i=r("c7eb"),o=(r("e7e5"),r("d399")),s=r("1da1"),c=(r("d3b7"),r("159b"),r("99af"),r("ac0d")),u=r("6c42"),l={mixins:[c["a"]],data:function(){return{titleName:"资产通知",active:0,page:1,isLoadMore:!0,total_page:0,listData:[],msg_body:{changeTime:"时间:",changeType:"类型:",changeNum:"变动金额:",afterChange:"变动后:",order_sn:"订单编号:",order_amount:"订单金额:",mall_amount:"商城销售额:",amount:"分红结算金额:",dividend_amount:"分红奖励金额:"},subTypeList:[]}},activated:function(){this.$route.query.pageTitle&&(this.titleName=this.$route.query.pageTitle,this.fun.setWXTitle(this.titleName)),this.active=0,this.getSubType()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0},getSubType:function(){var t=this;return Object(s["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 o["a"].loading({message:"加载中",forbidClick:!0}),e.next=3,$http.get("plugin.instation-message.api.message.get-sub-type",{type_id:5});case 3:if(r=e.sent,o["a"].clear(),1===r.result){e.next=8;break}return Object(o["a"])(r.msg),e.abrupt("return");case 8:t.subTypeList=r.data,t.getListData();case 10:case"end":return e.stop()}}),e)})))()},getListData:function(){var t=this;return Object(s["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:5,sub_type:t.subTypeList[t.active].sub_type});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:5,sub_type:this.subTypeList[this.active].sub_type}).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})))},changeTags:function(){this.getListData()},goPages:function(t){""!=t&&(window.location=t)}}},f=l,h=f,p=(r("3814"),r("2877")),d=Object(p["a"])(h,n,a,!1,null,"c781aff4",null);e["default"]=d.exports},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",s=i.asyncIterator||"@@asyncIterator",c=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(j){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),o=new T(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 E()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=x(o,r);if(s){if(s===h)continue;return s}}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 c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}t.wrap=l;var h={};function p(){}function d(){}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 b=g.prototype=p.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function a(i,o,s,c){var u=f(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==Object(n["a"])(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}))}c(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 x(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,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;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,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,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:E}}function E(){return{value:void 0,done:!0}}return d.prototype=g,u(b,"constructor",g),u(g,"constructor",d),d.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(_.prototype),u(_.prototype,s,(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()}))},w(b),u(b,c,"Generator"),u(b,o,(function(){return this})),u(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 n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=D,T.prototype={constructor:T,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 s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)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,h):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),h},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),h}},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),h}},t}}}]); |