(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order_detail-order_detail"],{"0280":function(e,t,o){"use strict";o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"tki-qrcode"},[t("v-uni-canvas",{staticClass:"tki-qrcode-canvas",style:{width:this.cpSize+"px",height:this.cpSize+"px"},attrs:{"canvas-id":this.cid}}),t("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],style:{width:this.cpSize+"px",height:this.cpSize+"px"},attrs:{src:this.result}})],1)},n=[]},"02f9":function(e,t,o){"use strict";o("6a54");var r=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o("2634")),a=r(o("2fdc"));o("4100"),o("c223"),o("f7a5"),o("bf0f"),o("2797"),o("64aa"),o("fd3c"),o("aa9c"),o("5c47"),o("a1c1"),o("7a76"),o("c9b5");var i=o("b96c"),s=r(o("2334")),d=o("2947"),l=o("d9e9"),c=r(o("cabf")),u={components:{uImage:c.default},name:"OrderDetail",mixins:[s.default],data:function(){return{showQR:!1,pageStatus:l.PageStatusEnum["LOADING"],order_id:"",orderInfo:{delivery_content1:[]},goodsList:[],addressInfo:{},orderButtons:[],showCountDown:!0,orderStatus:{0:{name:"等待买家付款"},1:{name:"等待商家发货",desc:"您的商品正在打包中,请耐心等待…"},2:{name:"待收货",desc:"您的商品正在路中,请耐心等待…"},3:{name:"已完成",desc:"商品已签收,期待再次购买!"},4:{name:"订单已关闭",desc:""}},selffetchStatus:{2:{name:"待取货",desc:"请前往指定门店取货"},3:{name:"已完成",desc:"交易已完成,感谢您的购买!"},4:{name:"订单已关闭",desc:""}},afterSaleStatus:{1:{name:"申请售后",href:"/bundle/pages/post_after_sale/post_after_sale"},2:{name:"售后中",href:"/bundle/pages/after_sale_detail/after_sale_detail"},3:{name:"售后成功",href:"/bundle/pages/after_sale_detail/after_sale_detail"},4:{name:"售后失败",href:"/bundle/pages/after_sale_detail/after_sale_detail"}},teamStatus:{0:"拼团中",1:"拼团成功",2:"拼团失败"}}},computed:{OrderTypeEnum:function(){return l.OrderTypeEnum},orderAction:function(){return this.orderStatus[this.orderInfo.order_status]||{}},shopOpenTime:function(){var e;if(this.orderInfo.selffetch_shop){var t=["周一","周二","周三","周四","周五","周六","周日"],o="",r=null===(e=this.orderInfo.selffetch_shop)||void 0===e?void 0:e.weekdays.split(",").sort(),n=r.length;return 7==r.length?o="每日".concat(this.orderInfo.selffetch_shop.business_start_time.slice(0,5),"-").concat(this.orderInfo.selffetch_shop.business_end_time.slice(0,5)):(r.forEach((function(e,r){for(var a=1;a<=7;a++)e==a&&(o+=t[a-1]+"".concat(r==n-1?"":"、"))})),o+="".concat(this.orderInfo.selffetch_shop.business_start_time.slice(0,5),"-").concat(this.orderInfo.selffetch_shop.business_end_time.slice(0,5))),o}}},methods:{handleImage:function(){uni.previewImage({urls:[this.orderInfo.selffetch_shop.image]})},handleLocation:function(){uni.openLocation({latitude:Number(this.orderInfo.selffetch_shop.latitude),longitude:Number(this.orderInfo.selffetch_shop.longitude),address:this.orderInfo.selffetch_shop.detailed_address,name:this.orderInfo.selffetch_shop.name,fail:function(e){console.log(e)}})},handlePhone:function(){uni.makePhoneCall({phoneNumber:this.orderInfo.selffetch_shop.mobile})},handleshowQR:function(){if(!this.orderInfo.order_status)return this.$toast({title:"付款后可查看"});this.showQR=!0,this.$nextTick((function(){var e=this.$refs["qrcode"];e._makeCode()}))},handletemplateCopy:function(e){var t=e.map((function(e){return e.name+":"+e.content})),o="";t.forEach((function(e){o+=e})),(0,d.copy)(o)},handleCopy:d.copy,refreshOrderData:function(){var e=this;return(0,i.apiOrderDetail)({id:this.order_id}).then((function(t){var o;return e.orderInfo=t,e.addressInfo=t.address,e.goodsList=t.order_goods,e.orderButtons=null!==(o=e.getOrderStatusButtons(t.btn))&&void 0!==o?o:[],Promise.resolve(t)})).then((function(e){e.delivery_type})).catch((function(e){return Promise.reject(e)}))},getPaywayName:function(e){switch(e){case 1:return"余额支付";case 2:return"微信支付";case 3:return"支付宝支付";case 5:return"线下支付"}},getCountDownSegment:function(e){var t=(new Date).getTime()/1e3;return e-t<=0&&(this.showCountDown=!1),e-t},goGoodsDetail:function(e){this.$Router.push({path:"/pages/goods_detail/goods_detail",query:{id:e}})},goAfterSale:function(e,t){this.$Router.push({path:e,query:{id:t}})}},onLoad:function(){var e=this;return(0,a.default)((0,n.default)().mark((function t(){var o;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=e.$Route.query,e.isLogin){t.next=3;break}return t.abrupt("return",e.$Router.replace("/pages/login/login"));case 3:if(t.prev=3,o.order_id){t.next=6;break}throw new Error("订单异常");case 6:return e.order_id=o.order_id,t.next=9,e.refreshOrderData();case 9:e.pageStatus=l.PageStatusEnum["NORMAL"],t.next=16;break;case 12:t.prev=12,t.t0=t["catch"](3),console.log(t.t0),e.pageStatus=l.PageStatusEnum["ERROR"];case 16:uni.$on("duringPayment",(function(t){var o=t.result;o===l.PaymentStatusEnum["SUCCESS"]&&(e.$Router.back(),setTimeout((function(){e.$toast({title:"支付成功"})}),500),e.refreshOrderData())}));case 17:case"end":return t.stop()}}),t,null,[[3,12]])})))()},onUnload:function(){uni.$off("duringPayment")}};t.default=u},"07ae":function(e,t,o){"use strict";o("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("64aa");var r={name:"u-count-down",props:{timestamp:{type:[Number,String],default:0},autoplay:{type:Boolean,default:!0},separator:{type:String,default:"colon"},separatorSize:{type:[Number,String],default:30},separatorColor:{type:String,default:"#303133"},color:{type:String,default:"#303133"},fontSize:{type:[Number,String],default:30},bgColor:{type:String,default:"#fff"},height:{type:[Number,String],default:"auto"},showBorder:{type:Boolean,default:!1},borderColor:{type:String,default:"#303133"},showSeconds:{type:Boolean,default:!0},showMinutes:{type:Boolean,default:!0},showHours:{type:Boolean,default:!0},showDays:{type:Boolean,default:!0},hideZeroDay:{type:Boolean,default:!1}},watch:{timestamp:function(e,t){this.clearTimer(),this.start()}},data:function(){return{d:"00",h:"00",i:"00",s:"00",timer:null,seconds:0}},computed:{itemStyle:function(){var e={};return this.height&&(e.height=this.height+"rpx",e.width=this.height+"rpx"),this.showBorder&&(e.borderStyle="solid",e.borderColor=this.borderColor,e.borderWidth="1px"),this.bgColor&&(e.backgroundColor=this.bgColor),e},letterStyle:function(){var e={};return this.fontSize&&(e.fontSize=this.fontSize+"rpx"),this.color&&(e.color=this.color),e}},mounted:function(){this.autoplay&&this.timestamp&&this.start()},methods:{start:function(){var e=this;this.clearTimer(),this.timestamp<=0||(this.seconds=Number(this.timestamp),this.formatTime(this.seconds),this.timer=setInterval((function(){if(e.seconds--,e.$emit("change",e.seconds),e.seconds<0)return e.end();e.formatTime(e.seconds)}),1e3))},formatTime:function(e){e<=0&&this.end();var t,o=0,r=0,n=0;o=Math.floor(e/86400),t=Math.floor(e/3600)-24*o;var a=null;a=this.showDays?t:Math.floor(e/3600),r=Math.floor(e/60)-60*t-24*o*60,n=Math.floor(e)-24*o*60*60-60*t*60-60*r,a=a<10?"0"+a:a,r=r<10?"0"+r:r,n=n<10?"0"+n:n,o=o<10?"0"+o:o,this.d=o,this.h=a,this.i=r,this.s=n},end:function(){this.clearTimer(),this.$emit("end",{})},clearTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}};t.default=r},"0cfe":function(e,t,o){"use strict";var r=o("9c24"),n=o.n(r);n.a},"0e8c":function(e,t,o){"use strict";o.r(t);var r=o("0280"),n=o("dd6b");for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);o("a778");var i=o("828b"),s=Object(i["a"])(n["default"],r["b"],r["c"],!1,null,"31b1516c",null,!1,r["a"],void 0);t["default"]=s.exports},1438:function(e,t,o){var r=o("9652");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=o("967d").default;n("49305d9e",r,!0,{sourceMap:!1,shadowMode:!1})},1851:function(e,t,o){"use strict";var r=o("8bdb"),n=o("84d6"),a=o("1cb5");r({target:"Array",proto:!0},{fill:n}),a("fill")},"20d7":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return r}));var r={uImage:o("cabf").default,price:o("5a21").default},n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{class:["goods",{"goods--square":"square"===e.shape},{"goods--rectangle":"rectangle"===e.shape},{invalid:e.disableMsg}],style:[e.containStyle]},[o("v-uni-view",{staticClass:"goods-images",style:[e.imageStyle]},[o("u-image",{attrs:{width:"100%",height:"100%",src:e.image,mode:"scaleToFill"}}),e.disableMsg?o("v-uni-view",{staticClass:"goods-status"},[e._v(e._s(e.TipMsg))]):e._e()],1),o("v-uni-view",{staticClass:"goods-content"},[o("v-uni-view",{staticClass:"goods-name line-2"},[e._t("name",[e._v(e._s(e.name))])],2),o("v-uni-view",{staticClass:"goods-other"},[e._t("default",[o("price",{attrs:{content:e.price,"main-size":"42rpx","minor-size":"36rpx",color:e.themeColor}},[o("v-uni-view",{attrs:{slot:"suffix"},slot:"suffix"},[o("price",{directives:[{name:"show",rawName:"v-show",value:Number(e.minPrice),expression:"Number(minPrice)"}],staticClass:"muted sm m-l-12",attrs:{"line-through":!0,content:e.minPrice}})],1)],1)])],2)],1)],1)},a=[]},2334:function(e,t,o){"use strict";o("6a54");var r=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o("2634")),a=r(o("2fdc"));o("aa9c"),o("7a76"),o("c9b5"),o("bf0f");var i=o("b96c"),s=(o("2947"),r(o("1f33")),{data:function(){return{ButtonsMap:{payment:{event:"payment",name:"立即付款",style:"primary"},succeed:{event:"succeed",name:"确认收货",style:"normal"},evaluate:{event:"evaluate",name:"去评价",style:"normal"},content:{event:"content",name:"查看内容",style:"muted"},express:{event:"express",name:"查看物流",style:"muted"},close:{event:"close",name:"取消订单",style:"muted"},delete:{event:"delete",name:"删除订单",style:"muted"},pickup:{event:"pickup",name:"查看提货码",style:"normal"}}}},methods:{getOrderStatusButtons:function(e){var t=[];return e.delete_btn&&t.push(this.ButtonsMap["delete"]),e.cancel_btn&&t.push(this.ButtonsMap["close"]),e.content_btn&&t.push(this.ButtonsMap["content"]),e.delivery_btn&&t.push(this.ButtonsMap["express"]),e.comment_btn&&t.push(this.ButtonsMap["evaluate"]),e.confirm_btn&&t.push(this.ButtonsMap["succeed"]),e.pickup_btn&&t.push(this.ButtonsMap["pickup"]),e.pay_btn&&t.push(this.ButtonsMap["payment"]),t},onOrderButtons:function(e,t,o){switch(e){case"payment":return this.handlePayment(t);case"succeed":return this.handleSucceed(t,o);case"evaluate":return this.handleEvaluate(t);case"express":return this.handleExpress(t);case"close":return this.handleClose(t);case"delete":return this.handleDelete(t);case"pickup":return this.handlePickup(t);case"content":return this.handleContent(t)}},refreshOrderData:function(){throw new Error("未初始化刷新方法")},handlePayment:function(e){this.$Router.push({path:"/pages/payment/payment",query:{from:"order",order_id:e}})},comfirmReceive:function(e){return new Promise((function(t,o){wx.openBusinessView({businessType:"weappOrderConfirm",extraData:{transaction_id:e},success:function(e){var o=e.extraData;"success"==o.status?t("确认收货"):t("取消收货")},fail:function(e){o(e)}})}))},querycomfirmReceive:function(e){return new Promise((function(t,o){(0,i.getwechatSyncCheck)({id:e}).then((function(e){4===e.order.order_state?t("已确认收货"):o("未确认收货")})).catch((function(e){o(e)}))}))},handleSucceed:function(e,t){var o=this;return(0,a.default)((0,n.default)().mark((function r(){return(0,n.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:console.log(t),uni.showModal({title:"温馨提示",content:"是否确认收货?",confirmColor:o.themeColor,success:function(t){var r=t.confirm;r&&(0,i.apiOrderConfirm)({id:e}).then((function(e){o.$toast({title:"收货成功"}),o.refreshOrderData()})).catch((function(e){console.log(e)})).finally((function(){}))}});case 2:case"end":return r.stop()}}),r)})))()},handleContent:function(e){this.$Router.push({path:"/pages/order_detail/order_detail",query:{order_id:e}})},handleEvaluate:function(e){this.$Router.push({path:"/bundle/pages/goods_comment/goods_comment"})},handleExpress:function(e){this.$Router.push({path:"/bundle/pages/order_logistics/order_logistics",query:{order_id:e}})},handleClose:function(e){var t=this;uni.showModal({title:"温馨提示",content:"是否取消订单?",confirmColor:this.themeColor,success:function(o){var r=o.confirm;r&&(0,i.apiOrderClose)({id:e}).then((function(e){t.$toast({title:"取消成功"}),t.refreshOrderData()})).catch((function(e){console.log(e)})).finally((function(){}))}})},handleDelete:function(e){var t=this;uni.showModal({title:"温馨提示",content:"是否删除订单?",confirmColor:this.themeColor,success:function(o){var r=o.confirm;r&&(0,i.apiOrderDelete)({id:e}).then((function(e){t.$toast({title:"删除成功"}),t.refreshOrderData()})).catch((function(e){console.log(e)})).finally((function(){}))}})},handlePickup:function(e){this.$Router.push({path:"/pages/order_detail/order_detail",query:{order_id:e}})}}}),d=s;t.default=d},"26c4":function(e,t,o){"use strict";var r=o("f406"),n=o.n(r);n.a},3661:function(e,t,o){"use strict";o("6a54");var r=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(o("fcf3"));o("aa9c"),o("7a76"),o("c9b5"),o("64aa"),o("1851"),o("d4b5");var n={};(function(){function e(e){var t,o,r;return e<128?[e]:e<2048?(t=192+(e>>6),o=128+(63&e),[t,o]):(t=224+(e>>12),o=128+(e>>6&63),r=128+(63&e),[t,o,r])}function t(t,o){this.typeNumber=-1,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=t,this.utf8bytes=function(t){for(var o=[],r=0;r=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(e,t){for(var o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+o][t+r]=0<=o&&o<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=r&&r<=4)},createQrcode:function(){for(var e=0,t=0,o=null,r=0;r<8;r++){this.makeImpl(r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r,o=this.modules)}this.modules=o,this.setupTypeInfo(!1,t),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var e=8;e>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=r,this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=r}},setupTypeInfo:function(e,t){for(var r=o[this.errorCorrectLevel]<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var s=!e&&1==(n>>i&1);i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s;s=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!e},createData:function(){var e=new c,o=this.typeNumber>9?16:8;e.put(4,4),e.put(this.utf8bytes.length,o);for(var r=0,n=this.utf8bytes.length;r=8*this.totalDataCount)break;if(e.put(t.PAD0,8),e.length>=8*this.totalDataCount)break;e.put(t.PAD1,8)}return this.createBytes(e)},createBytes:function(e){for(var t=0,o=0,r=0,n=this.rsBlock.length/3,i=new Array,s=0;s=0?y.get(w):0}}var I=new Array(this.totalDataCount),C=0;for(s=0;s0;s-=2){6==s&&s--;while(1){for(var d=0;d<2;d++)if(null==this.modules[r][s-d]){var l=!1;i>>n&1));var c=a.getMask(t,r,s-d);c&&(l=!l),this.modules[r][s-d]=l,n--,-1==n&&(i++,n=7)}if(r+=o,r<0||this.moduleCount<=r){r-=o,o=-o;break}}}}},t.PAD0=236,t.PAD1=17;for(var o=[1,0,3,2],r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){var t=e<<10;while(a.getBCHDigit(t)-a.getBCHDigit(a.G15)>=0)t^=a.G15<=0)t^=a.G18<>>=1;return t},getPatternPosition:function(e){return a.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case r.PATTERN000:return(t+o)%2==0;case r.PATTERN001:return t%2==0;case r.PATTERN010:return o%3==0;case r.PATTERN011:return(t+o)%3==0;case r.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case r.PATTERN101:return t*o%2+t*o%3==0;case r.PATTERN110:return(t*o%2+t*o%3)%2==0;case r.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new d([1],0),o=0;o3&&e.modules[n][s-1]&&e.modules[n][s-2]&&e.modules[n][s-3]&&e.modules[n][s-4]&&(o+=40)),n=5&&(o+=3+a-5),a=1),d&&r++}for(s=0;s3&&e.modules[n-1][s]&&e.modules[n-2][s]&&e.modules[n-3][s]&&e.modules[n-4][s]&&(o+=40)),i^d?a++:(i=d,a>=5&&(o+=3+a-5),a=1)}var c=Math.abs(100*r/t/t-50)/5;return o+=10*c,o}},i={glog:function(e){if(e<1)throw new Error("glog("+e+")");return i.LOG_TABLE[e]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return i.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},s=0;s<8;s++)i.EXP_TABLE[s]=1<=o){var a=i.glog(r[0])-i.glog(e.get(0));for(n=0;n9?2:1;if(this.utf8bytes.length+s>>7-e%8&1},put:function(e,t){for(var o=0;o>>t-o-1&1)},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var u=[];n=function(e){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:e.canvasId,context:e.context,usingComponents:e.usingComponents,showLoading:e.showLoading,loadingText:e.loadingText},"string"===typeof e&&(e={text:e}),e)for(var o in e)this.options[o]=e[o];for(var r=null,n=(o=0,u.length);o1&&e.row<5&&e.col>1&&e.col<5||e.row>e.count-6&&e.row1&&e.col<5||e.row>1&&e.row<5&&e.col>e.count-6&&e.col