3 lines
14 KiB
JavaScript
3 lines
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ecee2dc"],{"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function n(t,e,r,n,i,a,o){try{var s=t[a](o),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var o=t.apply(e,r);function s(t){n(o,i,a,s,c,"next",t)}function c(t){n(o,i,a,s,c,"throw",t)}s(void 0)}))}}},3603:function(t,e,r){"use strict";r("ec26")},"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,i=n.getDate(),a=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)==a){if(r.substr(8,2)==i)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()),i=(n.getTime()-r.getTime())/864e5;return i},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()),i=0==r.getDay()?7:r.getDay(),a=0==n.getDay()?7:n.getDay(),o=!0,s=(n.getTime()-r.getTime())/864e5;return o=!(s>=7)&&(i==a||!(a<=i)),{is:o,cWeek:a,tWeek:i}};var i=new n;e["a"]=i.getLocalTime.bind(i)},"825a8":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))])}))],2)])})),0)])})),1)],1)},i=[],a=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:{title:"",nickname:"会员昵称:",pay_time:"付款时间:",order_sn:"订单编号:",goodsName:"商品名:",pay_money:"订单金额:"},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(a["a"])().mark((function e(){var r;return Object(a["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:4});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(a["a"])().mark((function e(){var r;return Object(a["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:4,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:4,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)}}},h=l,f=h,d=(r("3603"),r("2877")),p=Object(d["a"])(f,n,i,!1,null,"4add706e",null);e["default"]=p.exports},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=document.documentElement,i=document.body,a={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:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&n.clientHeight?Math.min(i.clientHeight,n.clientHeight):Math.max(i.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(i.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 i}));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 i(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.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 i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),o=new T(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return E()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=x(o,r);if(s){if(s===f)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=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}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 b=g.prototype=d.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 i(a,o,s,c){var u=h(t[a],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){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,c)}))}c(u.arg)}var a;this._invoke=function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.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 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 i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}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,i=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 i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=g,u(b,"constructor",g),u(g,"constructor",p),p.displayName=u(g,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,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,i,a){void 0===a&&(a=Promise);var o=new _(l(e,r,n,i),a);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 i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.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 i=n.arg;k(r)}return i}}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}},e8be:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".page[data-v-4add706e]{background:#fafafa;min-height:100vh;padding-bottom:3.0625rem;text-align:left}.items[data-v-4add706e]{padding:0 .781rem}.items .item .time[data-v-4add706e]{height:2.75rem;line-height:2.75rem;letter-spacing:.019rem;color:#666;font-size:.75rem;text-align:center}.items .item .wrapper[data-v-4add706e]{background-color:#fff;border-radius:.25rem;width:100%;padding:.844rem .875rem .844rem .969rem}.items .item .wrapper .name[data-v-4add706e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#000;font-size:1rem}.items .item .wrapper .c1[data-v-4add706e]{margin-top:.519rem}.items .item .wrapper .ca[data-v-4add706e]{font-size:.75rem;line-height:1.25rem;letter-spacing:.019rem;color:#666;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.items .item .wrapper .botm[data-v-4add706e]{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},ec26:function(t,e,r){var n=r("e8be");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("499e").default;i("abfbf7a6",n,!0,{sourceMap:!1,shadowMode:!1})}}]); |