Commit 746156a6 by 无尘

fix: 修改接口

parent 1d4f8739
.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-061cf215]{margin-top:.26667rem}.recorde-list-cell_title[data-v-061cf215]{width:100%;height:1.12rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_title .van-icon-shop-o[data-v-061cf215]{vertical-align:-.02667rem}.recorde-list-cell_title .recorde-list-cell_txt[data-v-061cf215]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_sub[data-v-061cf215]{height:1.12rem}.recorde-list-cell_left[data-v-061cf215]{min-width:70%}.recorde-list-cell_left .list-cell_left_name[data-v-061cf215]{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-061cf215]{height:1.12rem}.van-icon-cross[data-v-061cf215]{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}.recorde-list-cell+.recorde-list-cell[data-v-c1685c24]{margin-top:.26667rem}.recorde-list-cell_title[data-v-c1685c24]{width:100%;height:1.12rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_title .van-icon-shop-o[data-v-c1685c24]{vertical-align:-.02667rem}.recorde-list-cell_title .recorde-list-cell_txt[data-v-c1685c24]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_sub[data-v-c1685c24]{height:1.12rem}.recorde-list-cell_left[data-v-c1685c24]{min-width:70%}.recorde-list-cell_left .list-cell_left_name[data-v-c1685c24]{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-c1685c24]{height:1.12rem}.van-icon-cross[data-v-c1685c24]{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-24f06d03]{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-24f06d03]{position:relative}.point-list-cell[data-v-24f06d03]{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-4ad80eec]{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-4ad80eec]{position:relative}.point-list-cell[data-v-4ad80eec]{width:100%;padding:.4rem}
\ 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-006266a2.4b8e5a29.css rel=prefetch><link href=css/chunk-41d0cdd7.c57ad67b.css rel=prefetch><link href=css/chunk-4d446ff8.613edf34.css rel=prefetch><link href=css/chunk-5ea3ec95.732cd13c.css rel=prefetch><link href=css/chunk-6075e5c8.213de925.css rel=prefetch><link href=css/chunk-79d39695.a67484b8.css rel=prefetch><link href=js/chunk-006266a2.5066b888.js rel=prefetch><link href=js/chunk-41d0cdd7.8abce837.js rel=prefetch><link href=js/chunk-4d446ff8.f52bb224.js rel=prefetch><link href=js/chunk-5ea3ec95.5ea59361.js rel=prefetch><link href=js/chunk-6075e5c8.6b05b4c6.js rel=prefetch><link href=js/chunk-79d39695.6fb78189.js rel=prefetch><link href=css/app.26b754ca.css rel=preload as=style><link href=js/app.a7460bc2.js rel=preload as=script><link href=js/chunk-vendors.63e5230c.js rel=preload as=script><link href=css/app.26b754ca.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.63e5230c.js></script><script src=js/app.a7460bc2.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-08be3014.c48503d9.css rel=prefetch><link href=css/chunk-41d0cdd7.c57ad67b.css rel=prefetch><link href=css/chunk-4c7cc6d8.66637aa5.css rel=prefetch><link href=css/chunk-4d446ff8.613edf34.css rel=prefetch><link href=css/chunk-5ea3ec95.732cd13c.css rel=prefetch><link href=css/chunk-6075e5c8.213de925.css rel=prefetch><link href=js/chunk-08be3014.2f48ffe1.js rel=prefetch><link href=js/chunk-41d0cdd7.8abce837.js rel=prefetch><link href=js/chunk-4c7cc6d8.d65b3015.js rel=prefetch><link href=js/chunk-4d446ff8.f52bb224.js rel=prefetch><link href=js/chunk-5ea3ec95.48c08be3.js rel=prefetch><link href=js/chunk-6075e5c8.6b05b4c6.js rel=prefetch><link href=css/app.26b754ca.css rel=preload as=style><link href=js/app.af917e28.js rel=preload as=script><link href=js/chunk-vendors.63e5230c.js rel=preload as=script><link href=css/app.26b754ca.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.63e5230c.js></script><script src=js/app.af917e28.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-006266a2"],{"155c":function(t,e,i){},2994:function(t,e,i){"use strict";i("68ef"),i("c0c2")},"2bdd":function(t,e,i){"use strict";var n=i("a142"),r=i("023d"),s=i("543e"),a=i("db78"),o=Object(n["f"])("list"),l=o[0],c=o[1],d=o[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,i=r["a"].getVisibleHeight(e);if(i&&"none"!==r["a"].getComputedStyle(t).display&&null!==t.offsetParent){var n=r["a"].getScrollTop(e),s=n+i,a=!1;if(t===e)a=e.scrollHeight-s<this.offset;else{var o=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);a=o-i<this.offset}a&&(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?a["b"]:a["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(s["a"],{class:c("loading-icon")}),t("span",{class:c("loading-text")},[this.loadingText||d("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])])}})},"2c44":function(t,e,i){"use strict";i.r(e);var n,r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"recorde-contian bg-f4f5f6",style:{"min-height":t.$store.state.bodyH+"px"}},[n("div",{staticClass:"list-contian"},[t.list.length?n("van-list",{attrs:{finished:t.finished,"finished-text":" "},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,function(e,i){return n("div",{key:i+e.storeName,staticClass:"recorde-list-cell bg-fff border-box"},[n("div",{staticClass:"recorde-list-cell_title flex flex-align-center font-12 border-bottom-1 padding-lr-12 border-box"},[n("div",{staticClass:"recorde-list-cell_txt w-0 flex-1"},[n("van-icon",{staticClass:"m-r-4",attrs:{name:"shop-o"}}),t._v(t._s(e.storeName))],1)]),t._l(e.list,function(e,i){return n("div",{key:i,staticClass:"recorde-list-cell_list"},[n("div",{staticClass:"flex border-box padding-lr-12 p-t-10"},[n("div",{staticClass:"recorde-list-cell_left flex-1"},[n("div",{staticClass:"list-cell_left_name font-12 color-232326"},[t._v(t._s(e.productName))])]),n("div",{staticClass:"recorde-list-cell_right flex-1 text-right"},[n("div",{staticClass:"list-cell_right_num font-13 color-232326 "},[t._v(t._s(e.payPrice))]),n("div",{staticClass:"list-cell_right_num font-13 color-848689 "},[n("s",[t._v(t._s(e.unitPrice))])])])]),n("div",{staticClass:"recorde-list-cell_sku flex flex-align-center border-bottom-1 border-box padding-lr-12"},[n("div",{staticClass:"flex-1 font-12 color-848689"},t._l(e.attrColorSize,function(e,i){return n("span",{key:i,class:[i>0?"p-l-8":""]},[t._v(t._s(e.key)+": "+t._s(e.value)+" ")])}),0),n("div",{staticClass:"flex-1 font-12 color-848689 text-right"},[n("van-icon",{attrs:{name:"cross"}}),t._v(t._s(e.number))],1)])])}),n("div",{staticClass:"recorde-list-cell_sub flex flex-align-center border-box padding-lr-12"},[n("div",{staticClass:"list-cell_sub_date flex-1 font-12 color-232326"},[t._v(t._s(e.receiptsDate)+" 购买")]),n("div",{staticClass:"list-cell_sub_all flex-1 font-12 color-232326 text-right"},[t._v("共"+t._s(e.itemNum)+"件商品 实付款: "+t._s(e.paidAmount))])])],2)}),0):t._e()],1),t.list.length?t._e():n("div",{staticClass:"no-recorde-data no-data-contain"},[n("img",{attrs:{src:i("2ecf"),alt:"record-no-data"}}),n("p",{staticClass:"font-16 color-848689"},[t._v("暂无消费记录")])])])},s=[],a=(i("ac6a"),i("96cf"),i("3b8d")),o=i("795b"),l=i.n(o),c=i("bd86"),d=(i("c3a6"),i("ad06")),u=(i("2994"),i("2bdd")),f=(i("cadf"),i("551c"),i("097d"),i("466f")),h=i("0c6d"),g=function(t){return Object(h["a"])("/gicfwh/load-group-order-record",t)},p={name:"record",components:(n={},Object(c["a"])(n,u["a"].name,u["a"]),Object(c["a"])(n,d["a"].name,d["a"]),n),data:function(){return{currentPage:1,pageSize:5,totalCount:0,totalPage:0,list:[],loading:!1,finished:!1}},computed:{},methods:{wait:function(t){return new l.a(function(e){return setTimeout(e,t)})},onLoad:function(){var t=Object(a["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(a["a"])(regeneratorRuntime.mark(function t(){var e,i,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,i={currentPage:e.currentPage,pageSize:e.pageSize},t.next=4,g(i);case 4:n=t.sent,0==n.errorCode&&(n.result.page.result.forEach(function(t){t.receiptsDate=f["a"].timeToDateTime(t.receiptsDate)}),e.list=n.result.page.result||[],e.totalPage=n.result.page.totalPage,e.currentPage=n.result.page.currentPage,e.totalCount=n.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()}},v=p,m=(i("d4b4"),i("2877")),x=Object(m["a"])(v,r,s,!1,null,"061cf215",null);x.options.__file="index.vue";e["default"]=x.exports},"2ecf":function(t,e,i){t.exports=i.p+"img/store-record-null-icon.0fe1a17f.png"},"466f":function(t,e,i){"use strict";i("6b54"),i("cadf"),i("551c"),i("097d");var n=function(t){return t=t.toString(),t.substr(0,3)+"****"+t.substr(7,11)},r=function(t){var e=(t||0).toString(),i="";while(e.length>3)i=","+e.slice(-3)+i,e=e.slice(0,e.length-3);return e&&(i=e+i),i};function s(t,e){function i(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var n=new Date(t),r=n.getFullYear(),s=n.getMonth()+1,a=n.getDate();return[r,s,a].map(i).join(e||"-")}return"--"}function a(t,e){function i(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var n=new Date(t),r=n.getFullYear(),s=n.getMonth()+1,a=n.getDate(),o=n.getHours(),l=n.getMinutes(),c=n.getSeconds();return[r,s,a].map(i).join(e||"-")+" "+[o,l,c].map(i).join(":")}return"--"}e["a"]={formatPhone:n,toThousands:r,timeToDateTime:s,timeToDate:a}},c0c2:function(t,e,i){},c3a6:function(t,e,i){"use strict";i("68ef")},d4b4:function(t,e,i){"use strict";var n=i("155c"),r=i.n(n);r.a}}]);
//# sourceMappingURL=chunk-006266a2.5066b888.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08be3014"],{2994:function(t,e,i){"use strict";i("68ef"),i("c0c2")},"2bdd":function(t,e,i){"use strict";var n=i("a142"),r=i("023d"),s=i("543e"),a=i("db78"),o=Object(n["f"])("list"),l=o[0],c=o[1],d=o[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,i=r["a"].getVisibleHeight(e);if(i&&"none"!==r["a"].getComputedStyle(t).display&&null!==t.offsetParent){var n=r["a"].getScrollTop(e),s=n+i,a=!1;if(t===e)a=e.scrollHeight-s<this.offset;else{var o=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);a=o-i<this.offset}a&&(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?a["b"]:a["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(s["a"],{class:c("loading-icon")}),t("span",{class:c("loading-text")},[this.loadingText||d("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])])}})},"2c44":function(t,e,i){"use strict";i.r(e);var n,r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"recorde-contian bg-f4f5f6",style:{"min-height":t.$store.state.bodyH+"px"}},[n("div",{staticClass:"list-contian"},[t.list.length?n("van-list",{attrs:{finished:t.finished,"finished-text":" "},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,function(e,i){return n("div",{key:i+e.storeName,staticClass:"recorde-list-cell bg-fff border-box"},[n("div",{staticClass:"recorde-list-cell_title flex flex-align-center font-12 border-bottom-1 padding-lr-12 border-box"},[n("div",{staticClass:"recorde-list-cell_txt w-0 flex-1"},[n("van-icon",{staticClass:"m-r-4",attrs:{name:"shop-o"}}),t._v(t._s(e.storeName))],1)]),t._l(e.list,function(e,i){return n("div",{key:i,staticClass:"recorde-list-cell_list"},[n("div",{staticClass:"flex border-box padding-lr-12 p-t-10"},[n("div",{staticClass:"recorde-list-cell_left flex-1"},[n("div",{staticClass:"list-cell_left_name font-12 color-232326"},[t._v(t._s(e.productName))])]),n("div",{staticClass:"recorde-list-cell_right flex-1 text-right"},[n("div",{staticClass:"list-cell_right_num font-13 color-232326 "},[t._v(t._s(e.payPrice))]),n("div",{staticClass:"list-cell_right_num font-13 color-848689 "},[n("s",[t._v(t._s(e.unitPrice))])])])]),n("div",{staticClass:"recorde-list-cell_sku flex flex-align-center border-bottom-1 border-box padding-lr-12"},[n("div",{staticClass:"flex-1 font-12 color-848689"},t._l(e.attrColorSize,function(e,i){return n("span",{key:i,class:[i>0?"p-l-8":""]},[t._v(t._s(e.key)+": "+t._s(e.value)+" ")])}),0),n("div",{staticClass:"flex-1 font-12 color-848689 text-right"},[n("van-icon",{attrs:{name:"cross"}}),t._v(t._s(e.number))],1)])])}),n("div",{staticClass:"recorde-list-cell_sub flex flex-align-center border-box padding-lr-12"},[n("div",{staticClass:"list-cell_sub_date flex-1 font-12 color-232326"},[t._v(t._s(e.receiptsDate)+" 购买")]),n("div",{staticClass:"list-cell_sub_all flex-1 font-12 color-232326 text-right"},[t._v("共"+t._s(e.itemNum)+"件商品 实付款: "+t._s(e.paidAmount))])])],2)}),0):t._e()],1),t.list.length?t._e():n("div",{staticClass:"no-recorde-data no-data-contain"},[n("img",{attrs:{src:i("2ecf"),alt:"record-no-data"}}),n("p",{staticClass:"font-16 color-848689"},[t._v("暂无消费记录")])])])},s=[],a=(i("ac6a"),i("96cf"),i("3b8d")),o=i("795b"),l=i.n(o),c=i("bd86"),d=(i("c3a6"),i("ad06")),u=(i("2994"),i("2bdd")),f=(i("cadf"),i("551c"),i("097d"),i("466f")),h=i("0c6d"),g=function(t){return Object(h["a"])("/gicfwh/load-group-order-record",t)},p={name:"record",components:(n={},Object(c["a"])(n,u["a"].name,u["a"]),Object(c["a"])(n,d["a"].name,d["a"]),n),data:function(){return{currentPage:1,pageSize:5,totalCount:0,totalPage:0,list:[],loading:!1,finished:!1}},computed:{},methods:{wait:function(t){return new l.a(function(e){return setTimeout(e,t)})},onLoad:function(){var t=Object(a["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(a["a"])(regeneratorRuntime.mark(function t(){var e,i,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,i={currentPage:e.currentPage,pageSize:e.pageSize},t.next=4,g(i);case 4:n=t.sent,0==n.errorCode&&(n.result.page.result.length&&n.result.page.result.forEach(function(t){t.receiptsDate=f["a"].timeToDateTime(t.receiptsDate),e.list.push(t)}),e.totalPage=n.result.page.totalPage,e.currentPage=n.result.page.currentPage,e.totalCount=n.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()}},v=p,m=(i("521e"),i("2877")),x=Object(m["a"])(v,r,s,!1,null,"c1685c24",null);x.options.__file="index.vue";e["default"]=x.exports},"2ecf":function(t,e,i){t.exports=i.p+"img/store-record-null-icon.0fe1a17f.png"},"466f":function(t,e,i){"use strict";i("6b54"),i("cadf"),i("551c"),i("097d");var n=function(t){return t=t.toString(),t.substr(0,3)+"****"+t.substr(7,11)},r=function(t){var e=(t||0).toString(),i="";while(e.length>3)i=","+e.slice(-3)+i,e=e.slice(0,e.length-3);return e&&(i=e+i),i};function s(t,e){function i(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var n=new Date(t),r=n.getFullYear(),s=n.getMonth()+1,a=n.getDate();return[r,s,a].map(i).join(e||"-")}return"--"}function a(t,e){function i(t){return t=t.toString(),t[1]?t:"0"+t}if(null!=t){var n=new Date(t),r=n.getFullYear(),s=n.getMonth()+1,a=n.getDate(),o=n.getHours(),l=n.getMinutes(),c=n.getSeconds();return[r,s,a].map(i).join(e||"-")+" "+[o,l,c].map(i).join(":")}return"--"}e["a"]={formatPhone:n,toThousands:r,timeToDateTime:s,timeToDate:a}},"521e":function(t,e,i){"use strict";var n=i("8e93"),r=i.n(n);r.a},"8e93":function(t,e,i){},c0c2:function(t,e,i){},c3a6:function(t,e,i){"use strict";i("68ef")}}]);
//# sourceMappingURL=chunk-08be3014.2f48ffe1.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c7cc6d8"],{"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"),s=n("db78"),o=Object(i["f"])("list"),c=o[0],l=o[1],u=o[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,s=!1;if(t===e)s=e.scrollHeight-a<this.offset;else{var o=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);s=o-n<this.offset}s&&(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?s["b"]:s["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,s=i.getDate();return[r,a,s].map(n).join(e||"-")}return"--"}function s(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,s=i.getDate(),o=i.getHours(),c=i.getMinutes(),l=i.getSeconds();return[r,a,s].map(n).join(e||"-")+" "+[o,c,l].map(n).join(":")}return"--"}e["a"]={formatPhone:i,toThousands:r,timeToDateTime:a,timeToDate:s}},"5bf5":function(t,e,n){},"5d6b":function(t,e,n){var i=n("e53d").parseInt,r=n("a1ce").trim,a=n("e692"),s=/^[-+]?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||(s.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"),s=n("e692"),o="["+s+"]",c="​…",l=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),d=function(t,e,n){var r={},o=a(function(){return!!s[t]()||c[t]()!=c}),l=r[t]=o?e(f):s[t];n&&(r[n]=l),i(i.P+i.F*o,"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},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,"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"),s=n.n(a),o=(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(o["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(o["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=s()(t.intervalHistory)>0?"+"+s()(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("f36f"),n("2877")),b=Object(v["a"])(m,i,r,!1,null,"4ad80eec",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"},f36f:function(t,e,n){"use strict";var i=n("5bf5"),r=n.n(i);r.a}}]);
//# sourceMappingURL=chunk-4c7cc6d8.d65b3015.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79d39695"],{"0f4f":function(t,e,n){"use strict";var i=n("ef58"),r=n.n(i);r.a},"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"),s=n("db78"),o=Object(i["f"])("list"),c=o[0],l=o[1],u=o[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,s=!1;if(t===e)s=e.scrollHeight-a<this.offset;else{var o=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);s=o-n<this.offset}s&&(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?s["b"]:s["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,s=i.getDate();return[r,a,s].map(n).join(e||"-")}return"--"}function s(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,s=i.getDate(),o=i.getHours(),c=i.getMinutes(),l=i.getSeconds();return[r,a,s].map(n).join(e||"-")+" "+[o,c,l].map(n).join(":")}return"--"}e["a"]={formatPhone:i,toThousands:r,timeToDateTime:a,timeToDate:s}},"5d6b":function(t,e,n){var i=n("e53d").parseInt,r=n("a1ce").trim,a=n("e692"),s=/^[-+]?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||(s.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"),s=n("e692"),o="["+s+"]",c="​…",l=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),d=function(t,e,n){var r={},o=a(function(){return!!s[t]()||c[t]()!=c}),l=r[t]=o?e(f):s[t];n&&(r[n]=l),i(i.P+i.F*o,"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},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,"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"),s=n.n(a),o=(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(o["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(o["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.forEach(function(t){t.intervalHistory=s()(t.intervalHistory)>0?"+"+s()(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("0f4f"),n("2877")),b=Object(v["a"])(m,i,r,!1,null,"24f06d03",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"},ef58:function(t,e,n){}}]);
//# sourceMappingURL=chunk-79d39695.6fb78189.js.map
\ No newline at end of file
......@@ -10,5 +10,5 @@ export const getUserData = data => postRequest('/gicfwh/get-member-info-for-inte
export const postTokenData = data => postRequest('/gicfwh/loginForDemo', data);
export const getCardData = data => postRequest('/gicfwh/virtualGoodsList', data);
export const getSignData = data => postRequest('/gicfwh/tpn-member-sign', data);
export const getBrandData = data => postRequest('/gicfwh/virtualGoodsBrand', data);
export const getBrandData = data => postRequest('https://svip.yueshiwl.com/capi/demo/virtualGoodsBrand', data);
export const getGoodsData = data => postRequest('/gicfwh/entityGoodsList', data);
......@@ -107,11 +107,13 @@ export default {
let resData = await getPointData(param);
if (resData.errorCode == 0) {
that.accumulatPoints = String(resData.result.accumulatPoints).length < 4? resData.result.accumulatPoints: publicMethod.toThousands(resData.result.accumulatPoints);
resData.result.page.result.forEach(ele => {
ele.intervalHistory = Number.parseInt(ele.intervalHistory)>0? '+'+ Number.parseInt(ele.intervalHistory): ele.intervalHistory;
ele.createTime = publicMethod.timeToDate(ele.createTime);
that.list.push(ele);
});
if (resData.result.page.result.length) {
resData.result.page.result.forEach(ele => {
ele.intervalHistory = Number.parseInt(ele.intervalHistory)>0? '+'+ Number.parseInt(ele.intervalHistory): ele.intervalHistory;
ele.createTime = publicMethod.timeToDate(ele.createTime);
that.list.push(ele);
});
}
that.currentPage = resData.result.page.currentPage;
that.totalPage = resData.result.page.totalPage;
that.totalCount = resData.result.page.totalCount;
......
......@@ -114,20 +114,27 @@
</div>
<div class="point-mall-goods_body border-box">
<div class="point-mall-goods_list">
<ul class="point-goods-list_ul">
<template v-for="(item, index) in goodsData">
<li :key="index" class="point-goods-list_li border-box" @click="toDetail(item)">
<div class="point-mall-goods_cell">
<p class="font-12 color-757575 border-dashed">每人限兑:{{item.exchangeLimit || 1}}</p>
<p class="font-12 color-757575">剩余{{item.stock}}</p>
<div class="m-t-6 m-b-6"><img class="goods-pic" :src="item.thumbnail" alt=""/></div>
<p class="font-10 color-b3b3b3 good-title-hidden">{{item.goodsTitle}}</p>
<p class="font-11 color-c9b799"><span class="point-border">积分{{item.defaultConsumptionIntegra}}</span></p>
<p class="font-11 color-757575"><span>吊牌价</span><span class="line-through">{{item.marketPrice}}</span></p>
</div>
</li>
</template>
</ul>
<van-list
v-if="!!goodsData.length"
v-model="loading"
:finished="finished"
finished-text=" "
@load="onLoad">
<ul class="point-goods-list_ul">
<template v-for="(item, index) in goodsData">
<li :key="index" class="point-goods-list_li border-box" @click="toDetail(item)">
<div class="point-mall-goods_cell">
<p class="font-12 color-757575 border-dashed">每人限兑:{{item.exchangeLimit || 1}}</p>
<p class="font-12 color-757575">剩余{{item.stock}}</p>
<div class="m-t-6 m-b-6"><img class="goods-pic" :src="item.thumbnail" alt=""/></div>
<p class="font-10 color-b3b3b3 good-title-hidden">{{item.goodsTitle}}</p>
<p class="font-11 color-c9b799"><span class="point-border">积分{{item.defaultConsumptionIntegra}}</span></p>
<p class="font-11 color-757575"><span>吊牌价</span><span class="line-through">{{item.marketPrice}}</span></p>
</div>
</li>
</template>
</ul>
</van-list>
</div>
</div>
</div>
......@@ -145,7 +152,7 @@ export default {
[Swipe.name]: Swipe,
[SwipeItem.name]: SwipeItem,
[Icon.name]: Icon,
[List.name]: List,
[List.name]: List
},
data() {
return {
......@@ -423,7 +430,12 @@ export default {
}
let resData = await getGoodsData(param);
if (resData.errorCode == 0) {
that.goodsData = resData.data;
if (resData.data.goodsResponses.length) {
resData.data.goodsResponses.forEach(ele => {
that.goodsData.push(ele)
})
that.totalCount = resData.data.total;
}
}else {
Toast(resData.errorMessage);
}
......
......@@ -192,10 +192,12 @@ export default {
}
let resData = await getRecordData(param);
if (resData.errorCode == 0) {
resData.result.page.result.forEach(ele => {
ele.receiptsDate = publicMethod.timeToDateTime(ele.receiptsDate);
});
that.list = resData.result.page.result || [];
if (resData.result.page.result.length) {
resData.result.page.result.forEach(ele => {
ele.receiptsDate = publicMethod.timeToDateTime(ele.receiptsDate);
that.list.push(ele);
});
}
that.totalPage = resData.result.page.totalPage;
that.currentPage = resData.result.page.currentPage;
that.totalCount = resData.result.page.totalCount;
......
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