Commit 27fb0421 by 无尘

feat: 增加防抖

parent 67fd89e7
.van-list__error-text,.van-list__finished-text,.van-list__loading-text{color:#969799;font-size:.34667rem;line-height:1.33333rem;text-align:center}.van-list__loading{text-align:center}.van-list__loading-icon,.van-list__loading-text{display:inline-block;vertical-align:middle}.van-list__loading-icon{width:.42667rem;height:.42667rem;margin-right:.13333rem}.recorde-list-cell+.recorde-list-cell[data-v-3ca107a8]{margin-top:.26667rem}.recorde-list-cell_title[data-v-3ca107a8]{width:100%;height:1.12rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_title .van-icon-shop-o[data-v-3ca107a8]{vertical-align:-.02667rem}.recorde-list-cell_title .recorde-list-cell_txt[data-v-3ca107a8]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_sub[data-v-3ca107a8]{height:1.12rem}.recorde-list-cell_left[data-v-3ca107a8]{min-width:70%}.recorde-list-cell_left .list-cell_left_name[data-v-3ca107a8]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;box-orient:vertical;word-break:break-all;overflow:hidden}.recorde-list-cell_sku[data-v-3ca107a8]{height:1.12rem}.van-icon-cross[data-v-3ca107a8]{vertical-align:-.05333rem}
\ No newline at end of file
.van-list__error-text,.van-list__finished-text,.van-list__loading-text{color:#969799;font-size:.34667rem;line-height:1.33333rem;text-align:center}.van-list__loading{text-align:center}.van-list__loading-icon,.van-list__loading-text{display:inline-block;vertical-align:middle}.van-list__loading-icon{width:.42667rem;height:.42667rem;margin-right:.13333rem}@font-face{font-family:DINPro;src:url(../fonts/DINPro-Bold.05078759.otf);font-weight:700;font-style:normal}.point-header[data-v-2b798360]{width:100%;padding:.4rem 0 .4rem .82667rem;background:url(../img/banner_bg.27a0cef7.png) no-repeat 50%;background-size:100%;font-family:DINPro}.point-body[data-v-2b798360]{position:relative}.point-list-cell[data-v-2b798360]{width:100%;padding:.4rem}
\ No newline at end of file
.van-list__error-text,.van-list__finished-text,.van-list__loading-text{color:#969799;font-size:.34667rem;line-height:1.33333rem;text-align:center}.van-list__loading{text-align:center}.van-list__loading-icon,.van-list__loading-text{display:inline-block;vertical-align:middle}.van-list__loading-icon{width:.42667rem;height:.42667rem;margin-right:.13333rem}@font-face{font-family:DINPro;src:url(../fonts/DINPro-Bold.05078759.otf);font-weight:700;font-style:normal}.point-header[data-v-322b4032]{width:100%;padding:.4rem 0 .4rem .82667rem;background:url(../img/banner_bg.27a0cef7.png) no-repeat 50%;background-size:100%;font-family:DINPro}.point-body[data-v-322b4032]{position:relative}.point-list-cell[data-v-322b4032]{width:100%;padding:.4rem}
\ No newline at end of file
.van-list__error-text,.van-list__finished-text,.van-list__loading-text{color:#969799;font-size:.34667rem;line-height:1.33333rem;text-align:center}.van-list__loading{text-align:center}.van-list__loading-icon,.van-list__loading-text{display:inline-block;vertical-align:middle}.van-list__loading-icon{width:.42667rem;height:.42667rem;margin-right:.13333rem}.recorde-list-cell+.recorde-list-cell[data-v-76eb0134]{margin-top:.26667rem}.recorde-list-cell_title[data-v-76eb0134]{width:100%;height:1.12rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_title .van-icon-shop-o[data-v-76eb0134]{vertical-align:-.02667rem}.recorde-list-cell_title .recorde-list-cell_txt[data-v-76eb0134]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_sub[data-v-76eb0134]{height:1.12rem}.recorde-list-cell_left[data-v-76eb0134]{min-width:70%}.recorde-list-cell_left .list-cell_left_name[data-v-76eb0134]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;box-orient:vertical;word-break:break-all;overflow:hidden}.recorde-list-cell_sku[data-v-76eb0134]{height:1.12rem}.van-icon-cross[data-v-76eb0134]{vertical-align:-.05333rem}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title></title><link href=css/chunk-22470e30.9fc010f7.css rel=prefetch><link href=css/chunk-5cad7295.e5c9a83c.css rel=prefetch><link href=css/chunk-648fab48.303b7f6a.css rel=prefetch><link href=css/chunk-6ec92bd0.3cba777f.css rel=prefetch><link href=css/chunk-8ba63460.244ad228.css rel=prefetch><link href=css/chunk-bed4f306.0ca02bea.css rel=prefetch><link href=js/chunk-22470e30.b1a54365.js rel=prefetch><link href=js/chunk-5cad7295.26799f90.js rel=prefetch><link href=js/chunk-648fab48.fdaf3aa2.js rel=prefetch><link href=js/chunk-6ec92bd0.6f3667d0.js rel=prefetch><link href=js/chunk-8ba63460.40418c7a.js rel=prefetch><link href=js/chunk-bed4f306.15ca1e47.js rel=prefetch><link href=css/app.bd3aa437.css rel=preload as=style><link href=js/app.6d7c2895.js rel=preload as=script><link href=js/chunk-vendors.dfa201dc.js rel=preload as=script><link href=css/app.bd3aa437.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.dfa201dc.js></script><script src=js/app.6d7c2895.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title></title><link href=css/chunk-22470e30.9fc010f7.css rel=prefetch><link href=css/chunk-365b3b2c.ae91f878.css rel=prefetch><link href=css/chunk-5a5b396e.338bd6d5.css rel=prefetch><link href=css/chunk-6772cdc3.1634cccf.css rel=prefetch><link href=css/chunk-6ec92bd0.3cba777f.css rel=prefetch><link href=css/chunk-8ba63460.244ad228.css rel=prefetch><link href=js/chunk-22470e30.1fd5f76f.js rel=prefetch><link href=js/chunk-365b3b2c.dc5072a9.js rel=prefetch><link href=js/chunk-5a5b396e.b6f75cf3.js rel=prefetch><link href=js/chunk-6772cdc3.7f051018.js rel=prefetch><link href=js/chunk-6ec92bd0.6f3667d0.js rel=prefetch><link href=js/chunk-8ba63460.40418c7a.js rel=prefetch><link href=css/app.bd3aa437.css rel=preload as=style><link href=js/app.8318b3f4.js rel=preload as=script><link href=js/chunk-vendors.dfa201dc.js rel=preload as=script><link href=css/app.bd3aa437.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.dfa201dc.js></script><script src=js/app.8318b3f4.js></script></body></html>
\ No newline at end of file
(function(e){function n(n){for(var r,a,u=n[0],i=n[1],l=n[2],d=0,f=[];d<u.length;d++)a=u[d],o[a]&&f.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);s&&s(n);while(f.length)f.shift()();return c.push.apply(c,l||[]),t()}function t(){for(var e,n=0;n<c.length;n++){for(var t=c[n],r=!0,a=1;a<t.length;a++){var u=t[a];0!==o[u]&&(r=!1)}r&&(c.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},a={app:0},o={app:0},c=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-6ec92bd0":"6f3667d0","chunk-22470e30":"b1a54365","chunk-5cad7295":"26799f90","chunk-648fab48":"fdaf3aa2","chunk-8ba63460":"40418c7a","chunk-bed4f306":"15ca1e47"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-6ec92bd0":1,"chunk-22470e30":1,"chunk-5cad7295":1,"chunk-648fab48":1,"chunk-8ba63460":1,"chunk-bed4f306":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise(function(n,t){for(var r="css/"+({}[e]||e)+"."+{"chunk-6ec92bd0":"3cba777f","chunk-22470e30":"9fc010f7","chunk-5cad7295":"e5c9a83c","chunk-648fab48":"303b7f6a","chunk-8ba63460":"244ad228","chunk-bed4f306":"0ca02bea"}[e]+".css",o=i.p+r,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var l=c[u],d=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(d===r||d===o))return n()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){l=f[u],d=l.getAttribute("data-href");if(d===r||d===o)return n()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=n,s.onerror=function(n){var r=n&&n.target&&n.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");c.request=r,delete a[e],s.parentNode.removeChild(s),t(c)},s.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(s)}).then(function(){a[e]=0}));var r=o[e];if(0!==r)if(r)n.push(r[2]);else{var c=new Promise(function(n,t){r=o[e]=[n,t]});n.push(r[2]=c);var l,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=u(e),l=function(n){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src,c=new Error("Loading chunk "+e+" failed.\n("+r+": "+a+")");c.type=r,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){l({type:"timeout",target:d})},12e4);d.onerror=d.onload=l,document.head.appendChild(d)}return Promise.all(n)},i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],d=l.push.bind(l);l.push=n,l=l.slice();for(var f=0;f<l.length;f++)n(l[f]);var s=d;c.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"034f":function(e,n,t){"use strict";var r=t("64a9"),a=t.n(r);a.a},4360:function(e,n,t){"use strict";t("cadf"),t("551c"),t("097d");var r=t("2b0e"),a=t("2f62");r["a"].use(a["a"]),n["a"]=new a["a"].Store({state:{bodyH:document.documentElement.clientHeight,reqLoading:!1,memberId:"ff80808163a6ab7a0163a6abd0710000"},mutations:{setReqLoading:function(e,n){e.reqLoading=n},setMemberId:function(e,n){e.memberId=n}},actions:{SetLoading:function(e,n){var t=e.commit;t("setReqLoading",n)},modifyMemberId:function(e,n){var t=e.commit;t("setMemberId",n)}}})},"4dcb":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("cadf"),t("551c"),t("097d"),t("db4d"),t("5cfb");var r=t("2b0e"),a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},o=[],c=(t("034f"),t("2877")),u={},i=Object(c["a"])(u,a,o,!1,null,null,null);i.options.__file="App.vue";var l=i.exports,d=t("4360"),f=(t("ac6a"),t("8c4f"));r["a"].use(f["a"]);var s=[{path:"*",redirect:"/index"},{name:"index",path:"/index",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-22470e30")]).then(t.bind(null,"37f9"))},meta:{title:"首页"}},{name:"point",path:"/point",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-648fab48")]).then(t.bind(null,"d2e9"))},meta:{title:"积分明细"}},{name:"cards",path:"/cards",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-8ba63460")]).then(t.bind(null,"db31"))},meta:{title:"卡券包"}},{name:"records",path:"/records",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-bed4f306")]).then(t.bind(null,"2c44"))},meta:{title:"近一年消费记录"}},{name:"pointMall",path:"/pointMall",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-5cad7295")]).then(t.bind(null,"8d7c"))},meta:{title:"积分商城"}}];s.forEach(function(e){e.path=e.path||"/"+(e.name||"")});var h=new f["a"]({mode:"history",base:"/fwhweb/peacebird",routes:s});h.beforeEach(function(e,n,t){var r=e.meta&&e.meta.title;r&&(document.title=r),t()});t("a342"),t("4dcb");var p=t("1368"),m=t.n(p);t("1368").polyfill(),m.a.polyfill(),new r["a"]({router:h,store:d["a"],el:"#app",render:function(e){return e(l)}})},"64a9":function(e,n,t){},a342:function(e,n,t){}});
//# sourceMappingURL=app.6d7c2895.js.map
\ No newline at end of file
(function(e){function n(n){for(var r,c,u=n[0],i=n[1],l=n[2],d=0,f=[];d<u.length;d++)c=u[d],a[c]&&f.push(a[c][0]),a[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);s&&s(n);while(f.length)f.shift()();return o.push.apply(o,l||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,c=1;c<t.length;c++){var u=t[c];0!==a[u]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},c={app:0},a={app:0},o=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-6ec92bd0":"6f3667d0","chunk-22470e30":"1fd5f76f","chunk-365b3b2c":"dc5072a9","chunk-5a5b396e":"b6f75cf3","chunk-6772cdc3":"7f051018","chunk-8ba63460":"40418c7a"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-6ec92bd0":1,"chunk-22470e30":1,"chunk-365b3b2c":1,"chunk-5a5b396e":1,"chunk-6772cdc3":1,"chunk-8ba63460":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise(function(n,t){for(var r="css/"+({}[e]||e)+"."+{"chunk-6ec92bd0":"3cba777f","chunk-22470e30":"9fc010f7","chunk-365b3b2c":"ae91f878","chunk-5a5b396e":"338bd6d5","chunk-6772cdc3":"1634cccf","chunk-8ba63460":"244ad228"}[e]+".css",a=i.p+r,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var l=o[u],d=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(d===r||d===a))return n()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){l=f[u],d=l.getAttribute("data-href");if(d===r||d===a)return n()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=n,s.onerror=function(n){var r=n&&n.target&&n.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.request=r,delete c[e],s.parentNode.removeChild(s),t(o)},s.href=a;var h=document.getElementsByTagName("head")[0];h.appendChild(s)}).then(function(){c[e]=0}));var r=a[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(function(n,t){r=a[e]=[n,t]});n.push(r[2]=o);var l,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=u(e),l=function(n){d.onerror=d.onload=null,clearTimeout(f);var t=a[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,o=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");o.type=r,o.request=c,t[1](o)}a[e]=void 0}};var f=setTimeout(function(){l({type:"timeout",target:d})},12e4);d.onerror=d.onload=l,document.head.appendChild(d)}return Promise.all(n)},i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],d=l.push.bind(l);l.push=n,l=l.slice();for(var f=0;f<l.length;f++)n(l[f]);var s=d;o.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"034f":function(e,n,t){"use strict";var r=t("64a9"),c=t.n(r);c.a},4360:function(e,n,t){"use strict";t("cadf"),t("551c"),t("097d");var r=t("2b0e"),c=t("2f62");r["a"].use(c["a"]),n["a"]=new c["a"].Store({state:{bodyH:document.documentElement.clientHeight,reqLoading:!1,memberId:"ff80808163a6ab7a0163a6abd0710000"},mutations:{setReqLoading:function(e,n){e.reqLoading=n},setMemberId:function(e,n){e.memberId=n}},actions:{SetLoading:function(e,n){var t=e.commit;t("setReqLoading",n)},modifyMemberId:function(e,n){var t=e.commit;t("setMemberId",n)}}})},"4dcb":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("cadf"),t("551c"),t("097d"),t("db4d"),t("5cfb");var r=t("2b0e"),c=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},a=[],o=(t("034f"),t("2877")),u={},i=Object(o["a"])(u,c,a,!1,null,null,null);i.options.__file="App.vue";var l=i.exports,d=t("4360"),f=(t("ac6a"),t("8c4f"));r["a"].use(f["a"]);var s=[{path:"*",redirect:"/index"},{name:"index",path:"/index",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-22470e30")]).then(t.bind(null,"37f9"))},meta:{title:"首页"}},{name:"point",path:"/point",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-6772cdc3")]).then(t.bind(null,"d2e9"))},meta:{title:"积分明细"}},{name:"cards",path:"/cards",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-8ba63460")]).then(t.bind(null,"db31"))},meta:{title:"卡券包"}},{name:"records",path:"/records",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-5a5b396e")]).then(t.bind(null,"2c44"))},meta:{title:"近一年消费记录"}},{name:"pointMall",path:"/pointMall",component:function(){return Promise.all([t.e("chunk-6ec92bd0"),t.e("chunk-365b3b2c")]).then(t.bind(null,"8d7c"))},meta:{title:"积分商城"}}];s.forEach(function(e){e.path=e.path||"/"+(e.name||"")});var h=new f["a"]({mode:"history",base:"/fwhweb/peacebird",routes:s});h.beforeEach(function(e,n,t){var r=e.meta&&e.meta.title;r&&(document.title=r),t()});t("a342"),t("4dcb");var p=t("1368"),b=t.n(p);t("1368").polyfill(),b.a.polyfill(),new r["a"]({router:h,store:d["a"],el:"#app",render:function(e){return e(l)}})},"64a9":function(e,n,t){},a342:function(e,n,t){}});
//# sourceMappingURL=app.8318b3f4.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-648fab48"],{"023d":function(t,e,n){"use strict";var i=n("a142");e["a"]={getScrollEventTarget:function(t,e){void 0===e&&(e=window);var n=t;while(n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e){var i=this.getComputedStyle(n),r=i.overflowY;if("scroll"===r||"auto"===r)return n;n=n.parentNode}return e},getScrollTop:function(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset},setScrollTop:function(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)},getElementTop:function(t){return(t===window?0:t.getBoundingClientRect().top)+this.getScrollTop(window)},getVisibleHeight:function(t){return t===window?t.innerHeight:t.getBoundingClientRect().height},getComputedStyle:!i["e"]&&document.defaultView.getComputedStyle.bind(document.defaultView)}},"14e0":function(t,e,n){var i=n("63b6"),r=n("5d6b");i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},2994:function(t,e,n){"use strict";n("68ef"),n("c0c2")},"2bdd":function(t,e,n){"use strict";var i=n("a142"),r=n("023d"),a=n("543e"),o=n("db78"),s=Object(i["f"])("list"),l=s[0],c=s[1],u=s[2];e["a"]=l({model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:Number,default:300}},mounted:function(){this.scroller=r["a"].getScrollEventTarget(this.$el),this.handler(!0),this.immediateCheck&&this.$nextTick(this.check)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{loading:function(){this.$nextTick(this.check)},finished:function(){this.$nextTick(this.check)}},methods:{check:function(){if(!(this.loading||this.finished||this.error)){var t=this.$el,e=this.scroller,n=r["a"].getVisibleHeight(e);if(n&&"none"!==r["a"].getComputedStyle(t).display&&null!==t.offsetParent){var i=r["a"].getScrollTop(e),a=i+n,o=!1;if(t===e)o=e.scrollHeight-a<this.offset;else{var s=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);o=s-n<this.offset}o&&(this.$emit("input",!0),this.$emit("load"))}}},clickErrorText:function(){this.$emit("update:error",!1),this.$nextTick(this.check)},handler:function(t){this.binded!==t&&(this.binded=t,(t?o["b"]:o["a"])(this.scroller,"scroll",this.check))}},render:function(t){return t("div",{class:c()},[this.$slots.default,this.loading&&t("div",{class:c("loading")},[this.$slots.loading||[t(a["a"],{class:c("loading-icon")}),t("span",{class:c("loading-text")},[this.loadingText||u("loading")])]]),this.finished&&this.finishedText&&t("div",{class:c("finished-text")},[this.finishedText]),this.error&&this.errorText&&t("div",{on:{click:this.clickErrorText},class:c("error-text")},[this.errorText])])}})},"3a3d":function(t,e,n){n("14e0"),t.exports=n("584a").Number.parseInt},"466f":function(t,e,n){"use strict";n("6b54"),n("cadf"),n("551c"),n("097d");var i=function(t){return t=t.toString(),t.substr(0,3)+"****"+t.substr(7,11)},r=function(t){var e=(t||0).toString(),n="";while(e.length>3)n=","+e.slice(-3)+n,e=e.slice(0,e.length-3);return e&&(n=e+n),n};function a(t,e){function n(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var i=new Date(t),r=i.getFullYear(),a=i.getMonth()+1,o=i.getDate();return[r,a,o].map(n).join(e||"-")}return"--"}function o(t,e){function n(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var i=new Date(t),r=i.getFullYear(),a=i.getMonth()+1,o=i.getDate(),s=i.getHours(),l=i.getMinutes(),c=i.getSeconds();return[r,a,o].map(n).join(e||"-")+" "+[s,l,c].map(n).join(":")}return"--"}e["a"]={formatPhone:i,toThousands:r,timeToDateTime:a,timeToDate:o}},"5d6b":function(t,e,n){var i=n("e53d").parseInt,r=n("a1ce").trim,a=n("e692"),o=/^[-+]?0[xX]/;t.exports=8!==i(a+"08")||22!==i(a+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(o.test(n)?16:10))}:i},"70f1":function(t,e,n){t.exports=n("3a3d")},a1ce:function(t,e,n){var i=n("63b6"),r=n("25eb"),a=n("294c"),o=n("e692"),s="["+o+"]",l="​…",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(t,e,n){var r={},s=a(function(){return!!o[t]()||l[t]()!=l}),c=r[t]=s?e(f):o[t];n&&(r[n]=c),i(i.P+i.F*s,"String",r)},f=d.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},c0c2:function(t,e,n){},d0b4:function(t,e,n){"use strict";var i=n("faa5"),r=n.n(i);r.a},d2e9:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"point-contain"},[i("div",{staticClass:"point-header border-box"},[i("p",{staticClass:"font-13 color-cfa972"},[t._v("可用积分")]),i("div",{staticClass:"point-number font-50 color-cfa972"},[t._v(t._s(t.accumulatPoints))])]),i("div",{staticClass:"point-body",style:{"min-height":t.$store.state.bodyH-113+"px"}},[t.list.length?i("van-list",{attrs:{finished:t.finished,"immediate-check":"false","finished-text":" "},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,function(e,n){return i("div",{key:n+e.memberIntegralName,staticClass:"point-list-cell border-box flex border-bottom-1"},[i("div",{staticClass:"point-list-cell_left flex-1"},[i("div",{staticClass:"list-cell_left_name font-15 color-232326"},[t._v(t._s(e.memberIntegralName))]),i("div",{staticClass:"list-cell_left_brand font-12 m-t-6 color-232326"},[t._v(t._s(e.brandName))]),i("div",{staticClass:"list-cell_left_date font-12 m-t-8 color-848689"},[t._v(t._s(e.createTime))])]),i("div",{staticClass:"point-list-cell_right flex-1 text-right"},[i("div",{staticClass:"list-cell_right_num font-18 color-000"},[t._v(t._s(e.intervalHistory))])])])}),0):t._e(),t.list.length?t._e():i("div",{staticClass:"no-recorde-data no-data-contain"},[i("img",{attrs:{src:n("e189"),alt:"card-no-data"}}),i("p",{staticClass:"font-16 color-848689"},[t._v("暂无积分明细")])])],1)])},r=[],a=n("70f1"),o=n.n(a),s=(n("ac6a"),n("96cf"),n("3b8d")),l=n("795b"),c=n.n(l),u=n("bd86"),d=(n("2994"),n("2bdd")),f=(n("cadf"),n("551c"),n("097d"),n("466f")),h=n("0c6d"),g=function(t){return Object(h["a"])("/gicfwh/load-group-interal-record",t)},p={name:"point",components:Object(u["a"])({},d["a"].name,d["a"]),data:function(){return{accumulatPoints:"0",list:[],loading:!1,finished:!1,currentPage:1,pageSize:5,totalCount:0,totalPage:0}},computed:{},methods:{wait:function(t){return new c.a(function(e){return setTimeout(e,t)})},onLoad:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.wait(1e3);case 3:if(!(e.currentPage>=e.totalPage)){t.next=7;break}return e.loading=!1,e.finished=!0,t.abrupt("return",!1);case 7:return e.currentPage=e.currentPage+1,t.next=10,e.getData();case 10:e.loading=!1,e.list.length>=e.totalCount&&(e.finished=!0);case 12:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),getData:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e,n,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,n={currentPage:e.currentPage,pageSize:e.pageSize},t.next=4,g(n);case 4:i=t.sent,0==i.errorCode&&(e.accumulatPoints=String(i.result.accumulatPoints).length<4?i.result.accumulatPoints:f["a"].toThousands(i.result.accumulatPoints),i.result.page.result.length&&i.result.page.result.forEach(function(t){t.intervalHistory=o()(t.intervalHistory)>0?"+"+o()(t.intervalHistory):t.intervalHistory,t.createTime=f["a"].timeToDate(t.createTime),e.list.push(t)}),e.currentPage=i.result.page.currentPage,e.totalPage=i.result.page.totalPage,e.totalCount=i.result.page.totalCount);case 6:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){var t=this;t.getData()}},m=p,v=(n("d0b4"),n("2877")),b=Object(v["a"])(m,i,r,!1,null,"2b798360",null);b.options.__file="index.vue";e["default"]=b.exports},e189:function(t,e,n){t.exports=n.p+"img/data-null-icon.c2c4cad8.png"},e692:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},faa5:function(t,e,n){}}]);
//# sourceMappingURL=chunk-648fab48.fdaf3aa2.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6772cdc3"],{"023d":function(t,e,n){"use strict";var i=n("a142");e["a"]={getScrollEventTarget:function(t,e){void 0===e&&(e=window);var n=t;while(n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e){var i=this.getComputedStyle(n),r=i.overflowY;if("scroll"===r||"auto"===r)return n;n=n.parentNode}return e},getScrollTop:function(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset},setScrollTop:function(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)},getElementTop:function(t){return(t===window?0:t.getBoundingClientRect().top)+this.getScrollTop(window)},getVisibleHeight:function(t){return t===window?t.innerHeight:t.getBoundingClientRect().height},getComputedStyle:!i["e"]&&document.defaultView.getComputedStyle.bind(document.defaultView)}},"14e0":function(t,e,n){var i=n("63b6"),r=n("5d6b");i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},2994:function(t,e,n){"use strict";n("68ef"),n("c0c2")},"2bdd":function(t,e,n){"use strict";var i=n("a142"),r=n("023d"),a=n("543e"),o=n("db78"),s=Object(i["f"])("list"),c=s[0],l=s[1],u=s[2];e["a"]=c({model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:Number,default:300}},mounted:function(){this.scroller=r["a"].getScrollEventTarget(this.$el),this.handler(!0),this.immediateCheck&&this.$nextTick(this.check)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{loading:function(){this.$nextTick(this.check)},finished:function(){this.$nextTick(this.check)}},methods:{check:function(){if(!(this.loading||this.finished||this.error)){var t=this.$el,e=this.scroller,n=r["a"].getVisibleHeight(e);if(n&&"none"!==r["a"].getComputedStyle(t).display&&null!==t.offsetParent){var i=r["a"].getScrollTop(e),a=i+n,o=!1;if(t===e)o=e.scrollHeight-a<this.offset;else{var s=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);o=s-n<this.offset}o&&(this.$emit("input",!0),this.$emit("load"))}}},clickErrorText:function(){this.$emit("update:error",!1),this.$nextTick(this.check)},handler:function(t){this.binded!==t&&(this.binded=t,(t?o["b"]:o["a"])(this.scroller,"scroll",this.check))}},render:function(t){return t("div",{class:l()},[this.$slots.default,this.loading&&t("div",{class:l("loading")},[this.$slots.loading||[t(a["a"],{class:l("loading-icon")}),t("span",{class:l("loading-text")},[this.loadingText||u("loading")])]]),this.finished&&this.finishedText&&t("div",{class:l("finished-text")},[this.finishedText]),this.error&&this.errorText&&t("div",{on:{click:this.clickErrorText},class:l("error-text")},[this.errorText])])}})},"3a3d":function(t,e,n){n("14e0"),t.exports=n("584a").Number.parseInt},"466f":function(t,e,n){"use strict";n("6b54"),n("cadf"),n("551c"),n("097d");var i=function(t){return t=t.toString(),t.substr(0,3)+"****"+t.substr(7,11)},r=function(t){var e=(t||0).toString(),n="";while(e.length>3)n=","+e.slice(-3)+n,e=e.slice(0,e.length-3);return e&&(n=e+n),n};function a(t,e){function n(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var i=new Date(t),r=i.getFullYear(),a=i.getMonth()+1,o=i.getDate();return[r,a,o].map(n).join(e||"-")}return"--"}function o(t,e){function n(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var i=new Date(t),r=i.getFullYear(),a=i.getMonth()+1,o=i.getDate(),s=i.getHours(),c=i.getMinutes(),l=i.getSeconds();return[r,a,o].map(n).join(e||"-")+" "+[s,c,l].map(n).join(":")}return"--"}function s(t,e){var n;e=e||200;return function(){var i=this,r=arguments;n&&clearTimeout(n),n=setTimeout(function(){n=null,t.apply(i,r)},e)}}function c(t,e){var n,i;e=e||200;return function(){var r=this,a=arguments,o=+new Date;n&&o-n<e?(clearTimeout(i),i=setTimeout(function(){n=o,t.apply(r,a)},e)):(n=o,t.apply(r,a))}}e["b"]={formatPhone:i,toThousands:r,timeToDateTime:a,timeToDate:o,debounce:s,throttle:c}},5815:function(t,e,n){"use strict";var i=n("a6cc"),r=n.n(i);r.a},"5d6b":function(t,e,n){var i=n("e53d").parseInt,r=n("a1ce").trim,a=n("e692"),o=/^[-+]?0[xX]/;t.exports=8!==i(a+"08")||22!==i(a+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(o.test(n)?16:10))}:i},"70f1":function(t,e,n){t.exports=n("3a3d")},a1ce:function(t,e,n){var i=n("63b6"),r=n("25eb"),a=n("294c"),o=n("e692"),s="["+o+"]",c="​…",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(t,e,n){var r={},s=a(function(){return!!o[t]()||c[t]()!=c}),l=r[t]=s?e(f):o[t];n&&(r[n]=l),i(i.P+i.F*s,"String",r)},f=d.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},a6cc:function(t,e,n){},c0c2:function(t,e,n){},d2e9:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"point-contain"},[i("div",{staticClass:"point-header border-box"},[i("p",{staticClass:"font-13 color-cfa972"},[t._v("可用积分")]),i("div",{staticClass:"point-number font-50 color-cfa972"},[t._v(t._s(t.accumulatPoints))])]),i("div",{staticClass:"point-body",style:{"min-height":t.$store.state.bodyH-113+"px"}},[t.list.length?i("van-list",{attrs:{finished:t.finished,"immediate-check":"false","finished-text":" "},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,function(e,n){return i("div",{key:n+e.memberIntegralName,staticClass:"point-list-cell border-box flex border-bottom-1"},[i("div",{staticClass:"point-list-cell_left flex-1"},[i("div",{staticClass:"list-cell_left_name font-15 color-232326"},[t._v(t._s(e.memberIntegralName))]),i("div",{staticClass:"list-cell_left_brand font-12 m-t-6 color-232326"},[t._v(t._s(e.brandName))]),i("div",{staticClass:"list-cell_left_date font-12 m-t-8 color-848689"},[t._v(t._s(e.createTime))])]),i("div",{staticClass:"point-list-cell_right flex-1 text-right"},[i("div",{staticClass:"list-cell_right_num font-18 color-000"},[t._v(t._s(e.intervalHistory))])])])}),0):t._e(),t.list.length?t._e():i("div",{staticClass:"no-recorde-data no-data-contain"},[i("img",{attrs:{src:n("e189"),alt:"card-no-data"}}),i("p",{staticClass:"font-16 color-848689"},[t._v("暂无积分明细")])])],1)])},r=[],a=n("70f1"),o=n.n(a),s=(n("ac6a"),n("96cf"),n("3b8d")),c=n("795b"),l=n.n(c),u=n("bd86"),d=(n("2994"),n("2bdd")),f=(n("cadf"),n("551c"),n("097d"),n("466f")),h=n("0c6d"),g=function(t){return Object(h["a"])("/gicfwh/load-group-interal-record",t)},p={name:"point",components:Object(u["a"])({},d["a"].name,d["a"]),data:function(){return{accumulatPoints:"0",list:[],loading:!1,finished:!1,currentPage:1,pageSize:5,totalCount:0,totalPage:0}},computed:{},methods:{wait:function(t){return new l.a(function(e){return setTimeout(e,t)})},onLoad:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.wait(1e3);case 3:if(!(e.currentPage>=e.totalPage)){t.next=7;break}return e.loading=!1,e.finished=!0,t.abrupt("return",!1);case 7:return e.currentPage=e.currentPage+1,t.next=10,e.getData();case 10:e.loading=!1,e.list.length>=e.totalCount&&(e.finished=!0);case 12:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),getData:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e,n,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,n={currentPage:e.currentPage,pageSize:e.pageSize},t.next=4,g(n);case 4:i=t.sent,0==i.errorCode&&(e.accumulatPoints=String(i.result.accumulatPoints).length<4?i.result.accumulatPoints:f["b"].toThousands(i.result.accumulatPoints),i.result.page.result.length&&i.result.page.result.forEach(function(t){t.intervalHistory=o()(t.intervalHistory)>0?"+"+o()(t.intervalHistory):t.intervalHistory,t.createTime=f["b"].timeToDate(t.createTime),e.list.push(t)}),e.currentPage=i.result.page.currentPage,e.totalPage=i.result.page.totalPage,e.totalCount=i.result.page.totalCount);case 6:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){var t=this;t.getData()}},m=p,v=(n("5815"),n("2877")),b=Object(v["a"])(m,i,r,!1,null,"322b4032",null);b.options.__file="index.vue";e["default"]=b.exports},e189:function(t,e,n){t.exports=n.p+"img/data-null-icon.c2c4cad8.png"},e692:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-6772cdc3.7f051018.js.map
\ No newline at end of file
......@@ -71,9 +71,50 @@ function timeToDate(timestamp, sym) {
return '--';
}
// 防抖
function debounce(fn, delay) {
var delay = delay || 200;
var timer;
// console.log(fn)
return function () {
var that = this;
var args = arguments;
if (timer) {
clearTimeout(timer);
}
timer = setTimeout(function () {
timer = null;
fn.apply(that, args);
}, delay);
};
}
// 节流
function throttle(fn, interval) {
var last;
var timer;
var interval = interval || 200;
return function () {
var that = this;
var args = arguments;
var now = +new Date();
if (last && now - last < interval) {
clearTimeout(timer);
timer = setTimeout(function () {
last = now;
fn.apply(that, args);
}, interval);
} else {
last = now;
fn.apply(that, args);
}
};
}
export default {
formatPhone,
toThousands,
timeToDateTime,
timeToDate
timeToDate,
debounce,
throttle
}
......@@ -152,7 +152,7 @@
</template>
<script>
import { Swipe, SwipeItem, Icon, List, Toast } from 'vant'; //Toast
// import publicMethod from '@/assets/js/public.js';
import { debounce } from '@/assets/js/public.js';
import { getUserData, getSignData, postTokenData, getBrandData, getCardData, getGoodsData } from '@/api/pointMall.js';
export default {
......@@ -275,13 +275,13 @@ export default {
/**
* 签到
*/
toSign() {
toSign: debounce(function() {
const that = this;
if (that.userData.signFlag) {
return false;
}
that.postSign();
},
},500),
/**
* post 签到
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment