(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-orders-order"],{2653:function(t,e,i){"use strict";(function(t){var a=i("4ea4");i("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i("b911"),n=a(i("65df")),o={data:function(){return{mask_show:!1,orderList:[[],[],[],[]],show_:!0,list:[{name:"待支付"},{name:"待消费"},{name:"已完成"},{name:"全部订单"}],current:3,swiperCurrent:3,tabsHeight:0,dx:0,loadStatus:["loadmore","loadmore","loadmore","loadmore"]}},created:function(){},onLoad:function(){this.getOrderList(0),this.getOrderList(1),this.getOrderList(2),this.getOrderList(3)},mounted:function(){},computed:{},methods:{reachBottom:function(){var e=this;t.log("reachBottom"),2!=this.current&&(this.loadStatus.splice(this.current,1,"loading"),setTimeout((function(){e.getOrderList(e.current)}),1200))},getOrderList:function(e){var i=this;this.show_=!0,t.log("getOrderList");var a=n.default.get("user.mobile");this.$u.get(s.VUE_APP_URL+"/getOrdersByMobile?mobile="+a,{status:0==e?"0":1==e?"2":2==e?"4":"0,2,4"}).then((function(t){i.show_=!1;for(var a=0;a<t.data.length;a++){var s=t.data[a];0==s.status?s.status="待付款":2==s.status?s.status="待消费":3==s.status?s.status="支付失败":4==s.status&&(s.status="已结束")}i.orderList[e]=t.data,i.loadStatus.splice(i.current,1,"loadmore")}))},change:function(e){t.log("change"),this.swiperCurrent=e,this.getOrderList(e)},transition:function(e){var i=e.detail.dx;t.log("transition"),this.$refs.tabs.setDx(i)},animationfinish:function(e){var i=e.detail.current;t.log("animationfinish"),this.$refs.tabs.setFinishCurrent(i),this.swiperCurrent=i,this.current=i},openinfo:function(e){t.log(e),uni.navigateTo({url:"./order_detail?orderId="+e,success:function(t){},fail:function(){},complete:function(){}})}}};e.default=o}).call(this,i("5a52")["default"])},2800:function(t,e,i){var a=i("8e83");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("1da0fd13",a,!0,{sourceMap:!1,shadowMode:!1})},"2f0d":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-mask[data-v-97c7ea6a]{position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.u-mask-show[data-v-97c7ea6a]{opacity:1}.u-mask-zoom[data-v-97c7ea6a]{-webkit-transform:scale(1.2);transform:scale(1.2)}',""]),t.exports=e},"367f":function(t,e,i){var a=i("2f0d");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("3ed48acb",a,!0,{sourceMap:!1,shadowMode:!1})},"45b1":function(t,e,i){"use strict";var a=i("367f"),s=i.n(a);s.a},"4fcb4":function(t,e,i){"use strict";var a=i("2800"),s=i.n(a);s.a},"51c9":function(t,e,i){"use strict";i.r(e);var a=i("ecde"),s=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},5853:function(t,e,i){"use strict";i.r(e);var a=i("cb1e"),s=i("5a14");for(var n in s)"default"!==n&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("4fcb4"),i("698b");var o,r=i("f0c5"),c=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"9d0ce74a",null,!1,a["a"],o);e["default"]=c.exports},"5a14":function(t,e,i){"use strict";i.r(e);var a=i("2653"),s=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"664e":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.order[data-v-9d0ce74a]{width:%?710?%;background-color:#fff;margin:%?20?% auto;border-radius:%?20?%;box-sizing:border-box;padding:%?15?%;font-size:%?28?%}.order .item[data-v-9d0ce74a]{display:-webkit-box;display:-webkit-flex;display:flex;margin:%?8?% 0 0}.order .item .left[data-v-9d0ce74a]{margin-right:%?20?%}.order .item .left uni-image[data-v-9d0ce74a]{width:%?200?%;height:%?130?%;border-radius:%?10?%}.order .item .content[data-v-9d0ce74a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin:%?10?% 0 0 %?20?%;width:%?504?%}.order .item .content .dinggou[data-v-9d0ce74a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.order .item .content .dinggou .jiage[data-v-9d0ce74a]{display:-webkit-box;display:-webkit-flex;display:flex}.order .item .content .dinggou .yuding[data-v-9d0ce74a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;margin:0 %?20?% %?10?% 0;border:%?1?% solid #ff850d;border-radius:%?14?%;font-size:%?24?%;width:%?120?%;text-align:center;color:#ff850d}.wrap[data-v-9d0ce74a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:calc(100vh - var(--window-top));width:100%}.swiper-box[data-v-9d0ce74a]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.swiper-item[data-v-9d0ce74a]{height:100%}',""]),t.exports=e},"698b":function(t,e,i){"use strict";var a=i("f756"),s=i.n(a);s.a},"8ce3":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-mask",class:{"u-mask-zoom":t.zoom,"u-mask-show":t.show},style:[t.maskStyle,t.zoomStyle],attrs:{"hover-stop-propagation":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},n=[]},"8e83":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"\nbody.?%PAGE?%[data-v-9d0ce74a]{background-color:#f2f2f2}",""]),t.exports=e},b911:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AppId=e.WECHAT_AUTH_BACK_URL=e.WECHAT_LOGIN=e.VUE_APP_URL=void 0;var a="https://www.yushangcc.com";e.VUE_APP_URL=a;var s=!0;e.WECHAT_LOGIN=s;var n="WECHAT_AUTH_BACK_URL";e.WECHAT_AUTH_BACK_URL=n;var o="wx98188fbf500bdf33";e.AppId=o},cb1e:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={uMask:i("e128").default,uTabsSwiper:i("696a").default,uLoading:i("b8fe").default,uLoadmore:i("f052").default},s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("u-mask",{attrs:{show:t.mask_show},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.mask_show=!1}}},[i("v-uni-view",{staticClass:"warp"},[i("v-uni-view",{staticClass:"rect",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e)}}})],1)],1),i("v-uni-view",{staticClass:"wrap"},[i("v-uni-view",{staticClass:"u-tabs-box"},[i("u-tabs-swiper",{ref:"tabs",attrs:{activeColor:"#f29100",list:t.list,current:t.current,"is-scroll":!1,swiperWidth:"750"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticStyle:{display:"flex","justify-content":"center"}},[i("u-loading",{attrs:{show:t.show_,size:"68",mode:"flower"}})],1),i("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.swiperCurrent},on:{transition:function(e){arguments[0]=e=t.$handleEvent(e),t.transition.apply(void 0,arguments)},animationfinish:function(e){arguments[0]=e=t.$handleEvent(e),t.animationfinish.apply(void 0,arguments)}}},[i("v-uni-swiper-item",{staticClass:"swiper-item"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[0],(function(e,a){return i("v-uni-view",{key:e.id,staticClass:"order",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openinfo(e.id)}}},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:e.img,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",[t._v(t._s(e.venueName))]),i("v-uni-view",{staticClass:"jiage",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v("数量 "+t._s(e.numbers)+"，总价"),i("font",{staticStyle:{color:"#ff850d"}},[t._v("￥"+t._s(e.totalAmount))])],1)],1),i("v-uni-view",{staticClass:"dinggou",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v(t._s(e.createDate))]),i("v-uni-view",{staticClass:"yuding"},[t._v(t._s(e.status))])],1)],1)],1)],1)})),i("u-loadmore",{attrs:{status:t.loadStatus[0],bgColor:"#f2f2f2"}})],2)],1)],1),i("v-uni-swiper-item",{staticClass:"swiper-item"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[1],(function(e,a){return i("v-uni-view",{key:e.id,staticClass:"order",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openinfo(e.id)}}},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:e.img,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",[t._v(t._s(e.venueName))]),i("v-uni-view",{staticClass:"jiage",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v("数量 "+t._s(e.numbers)+"，总价"),i("font",{staticStyle:{color:"#ff850d"}},[t._v("￥"+t._s(e.totalAmount))])],1)],1),i("v-uni-view",{staticClass:"dinggou",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v(t._s(e.createDate))]),i("v-uni-view",{staticClass:"yuding"},[t._v(t._s(e.status))])],1)],1)],1)],1)})),i("u-loadmore",{attrs:{status:t.loadStatus[1],bgColor:"#f2f2f2"}})],2)],1)],1),i("v-uni-swiper-item",{staticClass:"swiper-item"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[2],(function(e,a){return i("v-uni-view",{key:e.id,staticClass:"order",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openinfo(e.id)}}},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:e.img,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",[t._v(t._s(e.venueName))]),i("v-uni-view",{staticClass:"jiage",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v("数量 "+t._s(e.numbers)+"，总价"),i("font",{staticStyle:{color:"#ff850d"}},[t._v("￥"+t._s(e.totalAmount))])],1)],1),i("v-uni-view",{staticClass:"dinggou",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v(t._s(e.createDate))]),i("v-uni-view",{staticClass:"yuding"},[t._v(t._s(e.status))])],1)],1)],1)],1)})),i("u-loadmore",{attrs:{status:t.loadStatus[2],bgColor:"#f2f2f2"}})],2)],1)],1),i("v-uni-swiper-item",{staticClass:"swiper-item"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",width:"100%"},attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"page-box"},[t._l(t.orderList[3],(function(e,a){return i("v-uni-view",{key:e.id,staticClass:"order",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openinfo(e.id)}}},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:e.img,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",[t._v(t._s(e.venueName))]),i("v-uni-view",{staticClass:"jiage",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v("数量 "+t._s(e.numbers)+"，总价"),i("font",{staticStyle:{color:"#ff850d"}},[t._v("￥"+t._s(e.totalAmount))])],1)],1),i("v-uni-view",{staticClass:"dinggou",staticStyle:{"font-size":"24rpx"}},[i("v-uni-view",[t._v(t._s(e.createDate))]),i("v-uni-view",{staticClass:"yuding"},[t._v(t._s(e.status))])],1)],1)],1)],1)})),i("u-loadmore",{attrs:{status:t.loadStatus[3],bgColor:"#f2f2f2"}})],2)],1)],1)],1)],1)],1)},n=[]},e128:function(t,e,i){"use strict";i.r(e);var a=i("8ce3"),s=i("51c9");for(var n in s)"default"!==n&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("45b1");var o,r=i("f0c5"),c=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"97c7ea6a",null,!1,a["a"],o);e["default"]=c.exports},ecde:function(t,e,i){"use strict";var a=i("4ea4");i("a9e3"),i("b64b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(i("5530")),n={name:"u-mask",props:{show:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},customStyle:{type:Object,default:function(){return{}}},zoom:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},maskClickAble:{type:Boolean,default:!0}},data:function(){return{zoomStyle:{transform:""},scale:"scale(1.2, 1.2)"}},watch:{show:function(t){t&&this.zoom?this.zoomStyle.transform="scale(1, 1)":!t&&this.zoom&&(this.zoomStyle.transform=this.scale)}},computed:{maskStyle:function(){var t={backgroundColor:"rgba(0, 0, 0, 0.6)"};return this.show?t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.mask:t.zIndex=-1,t.transition="all ".concat(this.duration/1e3,"s ease-in-out"),Object.keys(this.customStyle).length&&(t=(0,s.default)((0,s.default)({},t),this.customStyle)),t}},methods:{click:function(){this.maskClickAble&&this.$emit("click")}}};e.default=n},f756:function(t,e,i){var a=i("664e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("49dc5c30",a,!0,{sourceMap:!1,shadowMode:!1})}}]);