12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cf2a9b8"],{"2f21":function(t,s,a){"use strict";var e=a("79e5");t.exports=function(t,s){return!!t&&e((function(){s?t.call(null,(function(){}),1):t.call(null)}))}},"55dd":function(t,s,a){"use strict";var e=a("5ca1"),i=a("d8e8"),r=a("4bf8"),n=a("79e5"),l=[].sort,o=[1,2,3];e(e.P+e.F*(n((function(){o.sort(void 0)}))||!n((function(){o.sort(null)}))||!a("2f21")(l)),"Array",{sort:function(t){return void 0===t?l.call(r(this)):l.call(r(this),i(t))}})},7142:function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"main"},[a("van-tabs",{attrs:{"title-active-color":"#388bff",color:"#388bff",swipeable:"",sticky:""},model:{value:t.orderStatusindex,callback:function(s){t.orderStatusindex=s},expression:"orderStatusindex"}},[a("van-tab",{attrs:{title:"全部",name:"0"}},[a("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了~~"},on:{load:t.onLoad},model:{value:t.loading,callback:function(s){t.loading=s},expression:"loading"}},t._l(t.obtainuserorder,(function(s,e){return a("div",{key:e},[a("div",{staticClass:"aLlorders"},[a("div",{staticClass:"aLlorders-t",on:{click:function(a){return t.jumpDetail(s)}}},[a("div",{staticClass:"aLlorders-img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.memIngProduct.pics[0].picUrl,expression:"item.memIngProduct.pics[0].picUrl"}]})]),a("div",{staticClass:"aLlorders-gm"},[a("h3",{staticClass:"ellips2"},[t._v(t._s(s.memIngProduct.ProductName))]),a("span",{staticClass:"dsh"},[t._v(t._s(t.statusTips[s.orderState]))]),a("div",[a("span",{staticClass:"integral-l"},[t._v(t._s(s.memIngOrdersPay.integral)+"积分+¥"+t._s(t._f("fixed")(s.memIngOrdersPay.payPirce)))]),a("span",{staticClass:"integral-r"},[t._v("x"+t._s(s.amount))])])])]),a("div",{staticClass:"aLlorders-b"},[t._v("\n 合计:\n "),a("span",{staticClass:"ellips"},[t._v(t._s(s.memIngOrdersPay.integral*s.amount)+"积分+¥"+t._s(s.memIngOrdersPay.payPirce*s.amount))])])])])})),0)],1),a("van-tab",{attrs:{title:"待支付",name:"1"}},[a("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了~~"},on:{load:t.onLoad},model:{value:t.loading,callback:function(s){t.loading=s},expression:"loading"}},t._l(t.obtainuserorder,(function(s,e){return 1==s.orderState?a("div",{key:e},[a("div",{staticClass:"aLlorders"},[a("div",{staticClass:"aLlorders-t",on:{click:function(a){return t.jumpDetail(s)}}},[a("div",{staticClass:"aLlorders-img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.memIngProduct.pics[0].picUrl,expression:"item.memIngProduct.pics[0].picUrl"}]})]),a("div",{staticClass:"aLlorders-gm"},[a("h3",{staticClass:"ellips2"},[t._v(t._s(s.memIngProduct.ProductName))]),a("span",{staticClass:"dsh"},[t._v(t._s(t.statusTips[s.orderState]))]),a("div",[a("span",{staticClass:"integral-l"},[t._v(t._s(s.memIngOrdersPay.integral)+"积分+¥"+t._s((s.memIngOrdersPay.payPirce/100).toFixed(2)))]),a("span",{staticClass:"integral-r"},[t._v("x"+t._s(s.amount))])])])]),a("div",{staticClass:"aLlorders-b"},[t._v("\n 合计:\n "),a("span",{staticClass:"ellips"},[t._v(t._s(s.memIngOrdersPay.integral*s.amount)+"积分+¥"+t._s(s.memIngOrdersPay.payPirce*s.amount))])])])]):t._e()})),0)],1),a("van-tab",{attrs:{title:"待收货",name:"2"}},[a("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了~~"},on:{load:t.onLoad},model:{value:t.loading,callback:function(s){t.loading=s},expression:"loading"}},t._l(t.obtainuserorder,(function(s,e){return 3==s.orderState?a("div",{key:e},[a("div",{staticClass:"aLlorders"},[a("div",{staticClass:"aLlorders-t",on:{click:function(a){return t.jumpDetail(s)}}},[a("div",{staticClass:"aLlorders-img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.memIngProduct.pics[0].picUrl,expression:"item.memIngProduct.pics[0].picUrl"}]})]),a("div",{staticClass:"aLlorders-gm"},[a("h3",{staticClass:"ellips2"},[t._v(t._s(s.memIngProduct.ProductName))]),a("span",{staticClass:"dsh"},[t._v(t._s(t.statusTips[s.orderState]))]),a("div",[a("span",{staticClass:"integral-l"},[t._v(t._s(s.memIngOrdersPay.integral)+"积分+¥"+t._s((s.memIngOrdersPay.payPirce/100).toFixed(2)))]),a("span",{staticClass:"integral-r"},[t._v("x"+t._s(s.amount))])])])]),a("div",{staticClass:"aLlorders-b"},[t._v("\n 合计:\n "),a("span",{staticClass:"ellips"},[t._v(t._s(s.memIngOrdersPay.integral*s.amount)+"积分+¥"+t._s(s.memIngOrdersPay.payPirce*s.amount))])])])]):t._e()})),0)],1),a("van-tab",{attrs:{title:"已完成",name:"3"}},[a("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了~~"},on:{load:t.onLoad},model:{value:t.loading,callback:function(s){t.loading=s},expression:"loading"}},t._l(t.obtainuserorder,(function(s,e){return 5==s.orderState?a("div",{key:e},[a("div",{staticClass:"aLlorders"},[a("div",{staticClass:"aLlorders-t",on:{click:function(a){return t.jumpDetail(s)}}},[a("div",{staticClass:"aLlorders-img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.memIngProduct.pics[0].picUrl,expression:"item.memIngProduct.pics[0].picUrl"}]})]),a("div",{staticClass:"aLlorders-gm"},[a("h3",{staticClass:"ellips2"},[t._v(t._s(s.memIngProduct.ProductName))]),a("span",{staticClass:"dsh"},[t._v(t._s(t.statusTips[s.orderState]))]),a("div",[a("span",{staticClass:"integral-l"},[t._v(t._s(s.memIngOrdersPay.integral)+"积分+¥"+t._s((s.memIngOrdersPay.payPirce/100).toFixed(2)))]),a("span",{staticClass:"integral-r"},[t._v("x"+t._s(s.amount))])])])]),a("div",{staticClass:"aLlorders-b"},[t._v("\n 合计:\n "),a("span",{staticClass:"ellips"},[t._v(t._s(s.memIngOrdersPay.integral*s.amount)+"积分+¥"+t._s(s.memIngOrdersPay.payPirce*s.amount))])])])]):t._e()})),0)],1)],1)],1)},i=[],r=(a("55dd"),{name:"IntegralOrder",data:function(){return{pageIndex:1,sizeIndex:10,loading:!1,finished:!1,orderStatusindex:0,shippingNo:"",deliveryType:"",statusTips:{1:"待支付",2:"待审核",3:"待发货",5:"已完成",6:"取消订单"},obtainuserorder:[],orderProducts:[],pageData:{page:1,size:10}}},created:function(){},filters:{fixed:function(t){return(t/100).toFixed(2)}},methods:{onLoad:function(){this.finished||this.getorderlist()},getorderlist:function(){var t=this,s=this.pageData;this.$http.orderList(s).then((function(s){t.loading=!1,t.obtainuserorder=t.obtainuserorder.concat(s.data.content),t.obtainuserorder.sort(t.rule("orderState")),t.obtainuserorder.length==s.data.totalElements&&(t.finished=!0),t.pageData.page++}))},jumpDetail:function(t){this.$router.push({path:"/Integralinfo",query:{ordersCode:t.ordersCode}})},rule:function(t){return function(s,a){var e=s[t],i=a[t];return e-i}}},mounted:function(){document.querySelector(".main").style.minHeight=window.screen.height+"px"}}),n=r,l=(a("e47e"),a("2877")),o=Object(l["a"])(n,e,i,!1,null,null,null);s["default"]=o.exports},"87ec":function(t,s,a){},e47e:function(t,s,a){"use strict";var e=a("87ec"),i=a.n(e);i.a}}]);
- //# sourceMappingURL=chunk-3cf2a9b8.bc76e349.js.map
|