Commit 99951396 by 无尘

fix: 修改接口返回数据

parent 4b9cd986
.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-d7c3e27a]{margin-top:.26667rem}.recorde-list-cell_title[data-v-d7c3e27a]{width:100%;height:1.12rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_title .van-icon-shop-o[data-v-d7c3e27a]{vertical-align:-.02667rem}.recorde-list-cell_title .recorde-list-cell_txt[data-v-d7c3e27a]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_sub[data-v-d7c3e27a]{height:1.12rem}.recorde-list-cell_left[data-v-d7c3e27a]{min-width:70%}.recorde-list-cell_left .list-cell_left_name[data-v-d7c3e27a]{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-d7c3e27a]{height:1.12rem}.van-icon-cross[data-v-d7c3e27a]{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-57355451]{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-57355451]{position:relative}.point-list-cell[data-v-57355451]{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-3aec656a]{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-3aec656a]{position:relative}.point-list-cell[data-v-3aec656a]{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-68cb6392]{margin-top:.26667rem}.recorde-list-cell_title[data-v-68cb6392]{width:100%;height:1.12rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_title .van-icon-shop-o[data-v-68cb6392]{vertical-align:-.02667rem}.recorde-list-cell_title .recorde-list-cell_txt[data-v-68cb6392]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recorde-list-cell_sub[data-v-68cb6392]{height:1.12rem}.recorde-list-cell_left[data-v-68cb6392]{min-width:70%}.recorde-list-cell_left .list-cell_left_name[data-v-68cb6392]{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-68cb6392]{height:1.12rem}.van-icon-cross[data-v-68cb6392]{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-132a6dc5.720462c8.css rel=prefetch><link href=css/chunk-1579179a.352872b4.css rel=prefetch><link href=css/chunk-630c80cf.7cf29d84.css rel=prefetch><link href=css/chunk-6e279502.5a6d5b5c.css rel=prefetch><link href=css/chunk-779e6e30.be7eb860.css rel=prefetch><link href=js/chunk-132a6dc5.d34b95bc.js rel=prefetch><link href=js/chunk-1579179a.4b654d51.js rel=prefetch><link href=js/chunk-630c80cf.cbf09350.js rel=prefetch><link href=js/chunk-6e279502.955733bb.js rel=prefetch><link href=js/chunk-779e6e30.f0b42150.js rel=prefetch><link href=css/app.e356cd6b.css rel=preload as=style><link href=js/app.d73b1097.js rel=preload as=script><link href=js/chunk-vendors.428c58b2.js rel=preload as=script><link href=css/app.e356cd6b.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.428c58b2.js></script><script src=js/app.d73b1097.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-132a6dc5.720462c8.css rel=prefetch><link href=css/chunk-727b1cfe.4bca793f.css rel=prefetch><link href=css/chunk-779e6e30.be7eb860.css rel=prefetch><link href=css/chunk-7fffeaa1.5964e486.css rel=prefetch><link href=css/chunk-9fccd01e.b18fdca1.css rel=prefetch><link href=js/chunk-132a6dc5.d34b95bc.js rel=prefetch><link href=js/chunk-727b1cfe.439a820b.js rel=prefetch><link href=js/chunk-779e6e30.f0b42150.js rel=prefetch><link href=js/chunk-7fffeaa1.92f683c4.js rel=prefetch><link href=js/chunk-9fccd01e.34cc8958.js rel=prefetch><link href=css/app.e356cd6b.css rel=preload as=style><link href=js/app.7d14fc75.js rel=preload as=script><link href=js/chunk-vendors.428c58b2.js rel=preload as=script><link href=css/app.e356cd6b.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.428c58b2.js></script><script src=js/app.7d14fc75.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1579179a"],{2994:function(t,e,i){"use strict";i("68ef"),i("c0c2")},"2bdd":function(t,e,i){"use strict";var s=i("a142"),r=i("023d"),a=i("543e"),n=i("db78"),o=Object(s["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 s=r["a"].getScrollTop(e),a=s+i,n=!1;if(t===e)n=e.scrollHeight-a<this.offset;else{var o=r["a"].getElementTop(t)-r["a"].getElementTop(e)+r["a"].getVisibleHeight(t);n=o-i<this.offset}n&&(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?n["b"]:n["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||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 s,r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"recorde-contian bg-f4f5f6",style:{"min-height":t.$store.state.bodyH+"px"}},[s("div",{staticClass:"list-contian"},[t.list.length?s("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 s("div",{key:i+e.storeName,staticClass:"recorde-list-cell bg-fff border-box"},[s("div",{staticClass:"recorde-list-cell_title flex flex-align-center font-12 border-bottom-1 padding-lr-12 border-box"},[s("div",{staticClass:"recorde-list-cell_txt w-0 flex-1"},[s("van-icon",{staticClass:"m-r-4",attrs:{name:"shop-o"}}),t._v(t._s(e.storeName))],1)]),t._l(e.goodsList,function(e,i){return s("div",{key:i,staticClass:"recorde-list-cell_list"},[s("div",{staticClass:"flex border-box padding-lr-12 p-t-10"},[s("div",{staticClass:"recorde-list-cell_left flex-1"},[s("div",{staticClass:"list-cell_left_name font-12 color-232326"},[t._v(t._s(e.productName))])]),s("div",{staticClass:"recorde-list-cell_right flex-1 text-right"},[s("div",{staticClass:"list-cell_right_num font-13 color-232326 "},[t._v(t._s(e.payPrice))]),s("div",{staticClass:"list-cell_right_num font-13 color-848689 "},[s("s",[t._v(t._s(e.unitPrice))])])])]),s("div",{staticClass:"recorde-list-cell_sku flex flex-align-center border-bottom-1 border-box padding-lr-12"},[s("div",{staticClass:"flex-1 font-12 color-848689"},t._l(e.attrColorSize,function(e,i){return s("span",{key:i,class:[i>0?"p-l-8":""]},[t._v(t._s(e.key)+": "+t._s(e.value)+" ")])}),0),s("div",{staticClass:"flex-1 font-12 color-848689 text-right"},[s("van-icon",{attrs:{name:"cross"}}),t._v(t._s(e.number))],1)])])}),s("div",{staticClass:"recorde-list-cell_sub flex flex-align-center border-box padding-lr-12"},[s("div",{staticClass:"list-cell_sub_date flex-1 font-12 color-232326"},[t._v(t._s(e.receiptsDate)+" 购买")]),s("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():s("div",{staticClass:"no-recorde-data no-data-contain"},[s("img",{attrs:{src:i("2ecf"),alt:"record-no-data"}}),s("p",{staticClass:"font-16 color-848689"},[t._v("暂无消费记录")])])])},a=[],n=(i("96cf"),i("3b8d")),o=i("bd86"),l=(i("c3a6"),i("ad06")),c=(i("2994"),i("2bdd")),d=(i("cadf"),i("551c"),i("097d"),i("0c6d")),u=function(t){return Object(d["a"])("/gicfwh/load-group-order-record",t)},f={name:"record",components:(s={},Object(o["a"])(s,c["a"].name,c["a"]),Object(o["a"])(s,l["a"].name,l["a"]),s),data:function(){return{currentPage:1,pageSize:5,list:[{storeName:"MG江苏南京秦淮区大洋百货新街口店(MATERIAL GIRL)333333",goodsList:[{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]},{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]}],receiptsDate:"2018-12-06",itemNum:"1",paidAmount:"12345.90"},{storeName:"MG江苏南京秦淮区大洋百货新街口店(MATERIAL GIRL)333333",goodsList:[{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]},{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]}],receiptsDate:"2018-12-06",itemNum:"1",paidAmount:"12345.90"}],loading:!1,finished:!1}},computed:{},methods:{onLoad:function(){var t=this;setTimeout(function(){for(var e=0;e<10;e++);t.loading=!1,t.list.length>=1&&(t.finished=!0)},500)},getData:function(){var t=Object(n["a"])(regeneratorRuntime.mark(function t(){var e,i,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this,i={memberId:e.$store.state.memberId,currentPage:e.currentPage,pageSize:e.pageSize},t.next=4,u(i);case 4:s=t.sent,0==s.errorCode&&(e.list=s.result);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()}},h=f,g=(i("81fc"),i("2877")),m=Object(g["a"])(h,r,a,!1,null,"d7c3e27a",null);m.options.__file="index.vue";e["default"]=m.exports},"2ecf":function(t,e,i){t.exports=i.p+"img/store-record-null-icon.0fe1a17f.png"},"81fc":function(t,e,i){"use strict";var s=i("a66c"),r=i.n(s);r.a},a66c:function(t,e,i){},c0c2:function(t,e,i){},c3a6:function(t,e,i){"use strict";i("68ef")}}]);
//# sourceMappingURL=chunk-1579179a.4b654d51.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-630c80cf"],{2994:function(t,e,i){"use strict";i("68ef"),i("c0c2")},"2bdd":function(t,e,i){"use strict";var n=i("a142"),s=i("023d"),a=i("543e"),o=i("db78"),r=Object(n["f"])("list"),l=r[0],c=r[1],d=r[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=s["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=s["a"].getVisibleHeight(e);if(i&&"none"!==s["a"].getComputedStyle(t).display&&null!==t.offsetParent){var n=s["a"].getScrollTop(e),a=n+i,o=!1;if(t===e)o=e.scrollHeight-a<this.offset;else{var r=s["a"].getElementTop(t)-s["a"].getElementTop(e)+s["a"].getVisibleHeight(t);o=r-i<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||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])])}})},c0c2:function(t,e,i){},d2e9:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"point-contain"},[n("div",{staticClass:"point-header border-box"},[n("p",{staticClass:"font-13 color-cfa972"},[t._v("可用积分")]),n("div",{staticClass:"point-number font-50 color-cfa972"},[t._v(t._s(t.accumulatPoints))])]),n("div",{staticClass:"point-body",style:{"min-height":t.$store.state.bodyH-113+"px"}},[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.memberIntegralName,staticClass:"point-list-cell border-box flex border-bottom-1"},[n("div",{staticClass:"point-list-cell_left flex-1"},[n("div",{staticClass:"list-cell_left_name font-15 color-232326"},[t._v(t._s(e.memberIntegralName))]),n("div",{staticClass:"list-cell_left_brand font-12 m-t-6 color-232326"},[t._v(t._s(e.brandName))]),n("div",{staticClass:"list-cell_left_date font-12 m-t-8 color-848689"},[t._v(t._s(e.createTime))])]),n("div",{staticClass:"point-list-cell_right flex-1 text-right"},[n("div",{staticClass:"list-cell_right_num font-18 color-000"},[t._v("+"+t._s(e.intervalHistory))])])])}),0):t._e(),t.list.length?t._e():n("div",{staticClass:"no-recorde-data no-data-contain"},[n("img",{attrs:{src:i("e189"),alt:"card-no-data"}}),n("p",{staticClass:"font-16 color-848689"},[t._v("暂无积分明细")])])],1)])},s=[],a=(i("96cf"),i("3b8d")),o=i("bd86"),r=(i("2994"),i("2bdd")),l=(i("cadf"),i("551c"),i("097d"),i("0c6d")),c=function(t){return Object(l["a"])("/gicfwh/load-group-interal-record",t)},d={name:"point",components:Object(o["a"])({},r["a"].name,r["a"]),data:function(){return{accumulatPoints:"10,000",list:[{memberIntegralName:"今日签到",brandName:"[MATERIAL GIRL]",createTime:"2018-12-06 10:32",intervalHistory:"5"}],loading:!1,finished:!1,currentPage:1,pageSize:5}},computed:{},methods:{onLoad:function(){var t=this,e=this;setTimeout(function(){for(var i=0;i<10;i++)t.list.push({memberIntegralName:"今日签到",brandName:"[MATERIAL GIRL]",createTime:"2018-12-06 10:32",intervalHistory:"5"});e.loading=!1,e.list.length>=50&&(e.finished=!0)},500)},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={memberId:e.$store.state.memberId,currentPage:e.currentPage,pageSize:e.pageSize},t.next=4,c(i);case 4:n=t.sent,0==n.errorCode&&(e.list=n.result);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()}},h=d,f=(i("f48a"),i("2877")),u=Object(f["a"])(h,n,s,!1,null,"57355451",null);u.options.__file="index.vue";e["default"]=u.exports},e189:function(t,e,i){t.exports=i.p+"img/data-null-icon.c2c4cad8.png"},ef7f:function(t,e,i){},f48a:function(t,e,i){"use strict";var n=i("ef7f"),s=i.n(n);s.a}}]);
//# sourceMappingURL=chunk-630c80cf.cbf09350.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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-727b1cfe"],{2994:function(t,e,i){"use strict";i("68ef"),i("c0c2")},"2bdd":function(t,e,i){"use strict";var n=i("a142"),a=i("023d"),s=i("543e"),r=i("db78"),o=Object(n["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=a["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=a["a"].getVisibleHeight(e);if(i&&"none"!==a["a"].getComputedStyle(t).display&&null!==t.offsetParent){var n=a["a"].getScrollTop(e),s=n+i,r=!1;if(t===e)r=e.scrollHeight-s<this.offset;else{var o=a["a"].getElementTop(t)-a["a"].getElementTop(e)+a["a"].getVisibleHeight(t);r=o-i<this.offset}r&&(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?r["b"]:r["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(s["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])])}})},"466f":function(t,e,i){"use strict";i("6b54");var n=function(t){return t=t.toString(),t.substr(0,3)+"****"+t.substr(7,11)},a=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};e["a"]={formatPhone:n,toThousands:a}},"6d2b":function(t,e,i){"use strict";var n=i("79a5"),a=i.n(n);a.a},"79a5":function(t,e,i){},c0c2:function(t,e,i){},d2e9:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"point-contain"},[n("div",{staticClass:"point-header border-box"},[n("p",{staticClass:"font-13 color-cfa972"},[t._v("可用积分")]),n("div",{staticClass:"point-number font-50 color-cfa972"},[t._v(t._s(t.accumulatPoints))])]),n("div",{staticClass:"point-body",style:{"min-height":t.$store.state.bodyH-113+"px"}},[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.memberIntegralName,staticClass:"point-list-cell border-box flex border-bottom-1"},[n("div",{staticClass:"point-list-cell_left flex-1"},[n("div",{staticClass:"list-cell_left_name font-15 color-232326"},[t._v(t._s(e.memberIntegralName))]),n("div",{staticClass:"list-cell_left_brand font-12 m-t-6 color-232326"},[t._v(t._s(e.brandName))]),n("div",{staticClass:"list-cell_left_date font-12 m-t-8 color-848689"},[t._v(t._s(e.createTime))])]),n("div",{staticClass:"point-list-cell_right flex-1 text-right"},[n("div",{staticClass:"list-cell_right_num font-18 color-000"},[t._v("+"+t._s(e.intervalHistory))])])])}),0):t._e(),t.list.length?t._e():n("div",{staticClass:"no-recorde-data no-data-contain"},[n("img",{attrs:{src:i("e189"),alt:"card-no-data"}}),n("p",{staticClass:"font-16 color-848689"},[t._v("暂无积分明细")])])],1)])},a=[],s=(i("ac6a"),i("96cf"),i("3b8d")),r=i("795b"),o=i.n(r),c=i("bd86"),l=(i("2994"),i("2bdd")),u=(i("cadf"),i("551c"),i("097d"),i("466f")),d=i("0c6d"),h=function(t){return Object(d["a"])("/gicfwh/load-group-interal-record",t)},f={name:"point",components:Object(c["a"])({},l["a"].name,l["a"]),data:function(){return{accumulatPoints:"0",list:[],loading:!1,finished:!1,currentPage:1,pageSize:5,totalCount:0}},computed:{},methods:{wait:function(t){return new o.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:return t.next=5,e.getData();case 5:e.currentPage=e.currentPage+1,e.loading=!1,e.list.length>=e.totalCount&&(e.finished=!0);case 8: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,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,h(i);case 4:n=t.sent,0==n.errorCode&&(e.accumulatPoints=String(n.result.accumulatPoints).length<4?n.result.accumulatPoints:u["a"].toThousands(n.result.accumulatPoints),n.result.page.result.forEach(function(t){e.list.push(t)}),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()}},g=f,p=(i("6d2b"),i("2877")),m=Object(p["a"])(g,n,a,!1,null,"3aec656a",null);m.options.__file="index.vue";e["default"]=m.exports},e189:function(t,e,i){t.exports=i.p+"img/data-null-icon.c2c4cad8.png"}}]);
//# sourceMappingURL=chunk-727b1cfe.439a820b.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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fccd01e"],{2994:function(t,e,i){"use strict";i("68ef"),i("c0c2")},"2bdd":function(t,e,i){"use strict";var s=i("a142"),a=i("023d"),r=i("543e"),n=i("db78"),l=Object(s["f"])("list"),o=l[0],c=l[1],d=l[2];e["a"]=o({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=a["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=a["a"].getVisibleHeight(e);if(i&&"none"!==a["a"].getComputedStyle(t).display&&null!==t.offsetParent){var s=a["a"].getScrollTop(e),r=s+i,n=!1;if(t===e)n=e.scrollHeight-r<this.offset;else{var l=a["a"].getElementTop(t)-a["a"].getElementTop(e)+a["a"].getVisibleHeight(t);n=l-i<this.offset}n&&(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?n["b"]:n["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(r["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 s,a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"recorde-contian bg-f4f5f6",style:{"min-height":t.$store.state.bodyH+"px"}},[s("div",{staticClass:"list-contian"},[t.list.length?s("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 s("div",{key:i+e.storeName,staticClass:"recorde-list-cell bg-fff border-box"},[s("div",{staticClass:"recorde-list-cell_title flex flex-align-center font-12 border-bottom-1 padding-lr-12 border-box"},[s("div",{staticClass:"recorde-list-cell_txt w-0 flex-1"},[s("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 s("div",{key:i,staticClass:"recorde-list-cell_list"},[s("div",{staticClass:"flex border-box padding-lr-12 p-t-10"},[s("div",{staticClass:"recorde-list-cell_left flex-1"},[s("div",{staticClass:"list-cell_left_name font-12 color-232326"},[t._v(t._s(e.productName))])]),s("div",{staticClass:"recorde-list-cell_right flex-1 text-right"},[s("div",{staticClass:"list-cell_right_num font-13 color-232326 "},[t._v(t._s(e.payPrice))]),s("div",{staticClass:"list-cell_right_num font-13 color-848689 "},[s("s",[t._v(t._s(e.unitPrice))])])])]),s("div",{staticClass:"recorde-list-cell_sku flex flex-align-center border-bottom-1 border-box padding-lr-12"},[s("div",{staticClass:"flex-1 font-12 color-848689"},t._l(e.attrColorSize,function(e,i){return s("span",{key:i,class:[i>0?"p-l-8":""]},[t._v(t._s(e.key)+": "+t._s(e.value)+" ")])}),0),s("div",{staticClass:"flex-1 font-12 color-848689 text-right"},[s("van-icon",{attrs:{name:"cross"}}),t._v(t._s(e.number))],1)])])}),s("div",{staticClass:"recorde-list-cell_sub flex flex-align-center border-box padding-lr-12"},[s("div",{staticClass:"list-cell_sub_date flex-1 font-12 color-232326"},[t._v(t._s(e.receiptsDate)+" 购买")]),s("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():s("div",{staticClass:"no-recorde-data no-data-contain"},[s("img",{attrs:{src:i("2ecf"),alt:"record-no-data"}}),s("p",{staticClass:"font-16 color-848689"},[t._v("暂无消费记录")])])])},r=[],n=(i("96cf"),i("3b8d")),l=i("bd86"),o=(i("c3a6"),i("ad06")),c=(i("2994"),i("2bdd")),d=(i("cadf"),i("551c"),i("097d"),i("0c6d")),u=function(t){return Object(d["a"])("/gicfwh/load-group-order-record",t)},f={name:"record",components:(s={},Object(l["a"])(s,c["a"].name,c["a"]),Object(l["a"])(s,o["a"].name,o["a"]),s),data:function(){return{currentPage:1,pageSize:5,totalCount:0,list:[{storeName:"MG江苏南京秦淮区大洋百货新街口店(MATERIAL GIRL)333333",receiptsDate:"2018-12-06",itemNum:"1",paidAmount:"12345.90",list:[{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]},{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]}]},{storeName:"MG江苏南京秦淮区大洋百货新街口店(MATERIAL GIRL)333333",receiptsDate:"2018-12-06",itemNum:"1",paidAmount:"12345.90",list:[{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]},{productName:"哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333",payPrice:"1059.99",unitPrice:"1899.00",number:"1",attrColorSize:[{key:"尺码",value:"元气绿"},{key:"颜色",value:"M"}]}]}],loading:!1,finished:!1}},computed:{},methods:{onLoad:function(){var t=this;setTimeout(function(){for(var e=0;e<10;e++);t.loading=!1,t.list.length>=1&&(t.finished=!0)},500)},getData:function(){var t=Object(n["a"])(regeneratorRuntime.mark(function t(){var e,i,s;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,u(i);case 4:s=t.sent,0==s.errorCode&&(e.list=s.result.page.result,e.currentPage=s.result.page.currentPage,e.totalCount=s.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()}},h=f,g=(i("fa92"),i("2877")),p=Object(g["a"])(h,a,r,!1,null,"68cb6392",null);p.options.__file="index.vue";e["default"]=p.exports},"2ecf":function(t,e,i){t.exports=i.p+"img/store-record-null-icon.0fe1a17f.png"},"66a7":function(t,e,i){},c0c2:function(t,e,i){},c3a6:function(t,e,i){"use strict";i("68ef")},fa92:function(t,e,i){"use strict";var s=i("66a7"),a=i.n(s);a.a}}]);
//# sourceMappingURL=chunk-9fccd01e.34cc8958.js.map
\ No newline at end of file
......@@ -35,7 +35,7 @@
<div class="clique-swiper">
<van-swipe class="goods-swipe" :autoplay="3000" :height="140" indicator-color="#232326">
<van-swipe-item v-for="thumb in banners.thumb" :key="thumb">
<img :src="thumb" >
<img :src="thumb" alt="img" style="width: 100%;"/>
</van-swipe-item>
</van-swipe>
</div>
......@@ -74,6 +74,7 @@
<script>
import { Swipe, SwipeItem, Icon } from 'vant';
import JsBarcode from 'jsbarcode';
import publicMethod from '@/assets/js/public.js';
import { getIndexData } from '@/api/index.js';
export default {
......@@ -88,8 +89,8 @@ export default {
userData: {
cardNum: '122223334444f', // 集团卡号
phoneNumber: '18790876890', // 手机号码
accumulatPoints: '10,000', // 可用积分
orderCount: 2, // 订单数量
accumulatPoints: '0', // 可用积分
orderCount: 0, // 订单数量
memberId: '', // 会员id
cardFlag: false, // 是否有集团卡
},
......@@ -206,6 +207,7 @@ export default {
}
let resData = await getIndexData(param);
if (resData.errorCode == 0) {
resData.result.accumulatPoints = String(resData.result.accumulatPoints).length < 4? resData.result.accumulatPoints: publicMethod.toThousands(resData.result.accumulatPoints);
that.userData = resData.result;
that.barcode(that.userData.cardNum);
}
......
......@@ -32,6 +32,7 @@
<script>
import { List } from 'vant';
import publicMethod from '@/assets/js/public.js';
import { getPointData } from '@/api/point.js';
export default {
name: "point",
......@@ -41,19 +42,20 @@ export default {
data() {
return {
accumulatPoints: '10,000',
accumulatPoints: '0',
list: [
{
/* {
memberIntegralName: '今日签到',
brandName: '[MATERIAL GIRL]',
createTime: '2018-12-06 10:32',
intervalHistory: '5'
}
} */
],
loading: false,
finished: false,
currentPage: 1,
pageSize: 5
pageSize: 5,
totalCount: 0
};
},
......@@ -62,26 +64,26 @@ export default {
},
methods: {
onLoad() {
/**
* sleep
*/
wait(ms) {
return new Promise(r => setTimeout(r, ms));
},
async onLoad() {
const that = this;
// 异步更新数据
setTimeout(() => {
for (let i = 0; i < 10; i++) {
this.list.push({
memberIntegralName: '今日签到',
brandName: '[MATERIAL GIRL]',
createTime: '2018-12-06 10:32',
intervalHistory: '5'
});
}
await that.wait(1000);
await that.getData();
that.currentPage = that.currentPage + 1;
// 加载状态结束
that.loading = false;
// 数据全部加载完成
if (that.list.length >= 50) {
if (that.list.length >= that.totalCount) {
that.finished = true;
}
}, 500);
},
/**
......@@ -90,13 +92,18 @@ export default {
async getData() {
const that = this;
let param = {
memberId: that.$store.state.memberId,
// memberId: that.$store.state.memberId,
currentPage: that.currentPage,
pageSize: that.pageSize
}
let resData = await getPointData(param);
if (resData.errorCode == 0) {
that.list = resData.result;
that.accumulatPoints = String(resData.result.accumulatPoints).length < 4? resData.result.accumulatPoints: publicMethod.toThousands(resData.result.accumulatPoints);
resData.result.page.result.forEach(ele => {
that.list.push(ele);
});
that.currentPage = resData.result.page.currentPage;
that.totalCount = resData.result.page.totalCount;
}
}
},
......
......@@ -12,7 +12,7 @@
class="recorde-list-cell_title flex flex-align-center font-12 border-bottom-1 padding-lr-12 border-box">
<div class="recorde-list-cell_txt w-0 flex-1"><van-icon name="shop-o" class="m-r-4" />{{ item.storeName }}</div>
</div>
<div class="recorde-list-cell_list" v-for="(childItem,key) in item.goodsList" :key="key">
<div class="recorde-list-cell_list" v-for="(childItem,key) in item.list" :key="key">
<div class="flex border-box padding-lr-12 p-t-10">
<div class="recorde-list-cell_left flex-1">
<div class="list-cell_left_name font-12 color-232326">{{ childItem.productName }}</div>
......@@ -57,10 +57,14 @@ export default {
return {
currentPage: 1,
pageSize: 5,
totalCount: 0,
list: [
{
storeName: 'MG江苏南京秦淮区大洋百货新街口店(MATERIAL GIRL)333333',
goodsList: [
receiptsDate: '2018-12-06',
itemNum: '1',
paidAmount: '12345.90',
list: [
{
productName: '哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333',
payPrice: '1059.99',
......@@ -93,14 +97,14 @@ export default {
},
]
}
],
receiptsDate: '2018-12-06',
itemNum: '1',
paidAmount: '12345.90'
]
},
{
storeName: 'MG江苏南京秦淮区大洋百货新街口店(MATERIAL GIRL)333333',
goodsList: [
receiptsDate: '2018-12-06',
itemNum: '1',
paidAmount: '12345.90',
list: [
{
productName: '哥斯拉加厚白色鸭绒羽绒服女中长款2018冬装新款绿连帽外套太平鸟333333',
payPrice: '1059.99',
......@@ -133,10 +137,7 @@ export default {
},
]
}
],
receiptsDate: '2018-12-06',
itemNum: '1',
paidAmount: '12345.90'
]
}
],
loading: false,
......@@ -172,13 +173,16 @@ export default {
async getData() {
const that = this;
let param = {
memberId: that.$store.state.memberId,
// memberId: that.$store.state.memberId,
currentPage: that.currentPage,
pageSize: that.pageSize
}
let resData = await getRecordData(param);
if (resData.errorCode == 0) {
that.list = resData.result;
that.list = resData.result.page.result;
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