1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-detail"],{"0033":function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.cancel=function(e,t){return o.default.post(s.cancel,(0,n.default)({orderId:e},t))},t.detail=function(e,t){return o.default.get(s.detail,(0,n.default)({orderId:e},t))},t.express=function(e,t){return o.default.get(s.express,(0,n.default)({orderId:e},t))},t.list=function(e,t){return o.default.get(s.list,e,t)},t.pay=function(e,t,a){return o.default.get(s.pay,(0,n.default)({orderId:e,payType:t},a))},t.qrCode=function(e,t){return o.default.post(s.qrCode,(0,n.default)({orderId:e},t))},t.qrCodeImg=function(e){return o.default.post(s.qrCodeImg,(0,n.default)({},e))},t.receipt=function(e,t){return o.default.post(s.receipt,(0,n.default)({orderId:e},t))},t.todoCounts=function(e,t){return o.default.get(s.todoCounts,e,t)};var n=i(a("9b1b")),o=i(a("3318")),s={todoCounts:"order/todoCounts",list:"order/list",detail:"order/detail",express:"order/express",cancel:"order/cancel",receipt:"order/receipt",pay:"order/pay",qrCode:"order/qrCode",qrCodeImg:"order/qrCodeImg"}},"1e1d":function(e,t,a){var i=a("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.item[data-v-0457eaf0]{display:inline-block;width:22px;margin-right:5px;color:#fff;font-size:12px;text-align:center;background-color:#1989fa;border-radius:2px}.separator[data-v-0457eaf0]{padding:0 %?2?%}.text-theme .separator-colon .separator[data-v-0457eaf0]{padding:0 %?5?%}.text-theme .dynamic-value[data-v-0457eaf0]{background:none!important}.custom-theme .dynamic-value[data-v-0457eaf0]{background:#252525;color:#fff;padding:%?2?% %?8?%;line-height:%?40?%;border-radius:%?8?%}.custom-theme .separator[data-v-0457eaf0]{padding:0 %?6?%}',""]),e.exports=t},"1f07":function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"NOT_DELIVERED",name:"未发货",value:10},{key:"DELIVERED",name:"已发货",value:20}]);t.default=o},"21aa":function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("7a76"),a("c9b5"),a("fd3c"),a("aa9c"),a("5ef2");var n=i(a("80b1")),o=i(a("efe5")),s=function(){function e(t){var a=this;(0,n.default)(this,e);var i=[],o=[];if(!Array.isArray(t))throw new Error("param is not an array!");t.map((function(e){e.key&&e.name&&(i.push(e.key),o.push(e.value),a[e.key]=e,e.key!==e.value&&(a[e.value]=e))})),this.data=t,this.keyArr=i,this.valueArr=o}return(0,o.default)(e,[{key:"keyOf",value:function(e){return this.data[this.keyArr.indexOf(e)]}},{key:"valueOf",value:function(e){return this.data[this.valueArr.indexOf(e)]}},{key:"getNameByKey",value:function(e){var t=this.keyOf(e);if(!t)throw new Error("No enum constant"+e);return t.name}},{key:"getNameByValue",value:function(e){var t=this.valueOf(e);if(!t)throw new Error("No enum constant"+e);return t.name}},{key:"getValueByKey",value:function(e){var t=this.keyOf(e);if(!t)throw new Error("No enum constant"+e);return t.key}},{key:"getData",value:function(){return this.data}}]),e}(),r=s;t.default=r},"43cd":function(e,t,a){var i=a("6ecf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("967d").default;n("7bbe9f97",i,!0,{sourceMap:!1,shadowMode:!1})},"4d55":function(e,t,a){"use strict";a.r(t);var i=a("53db2"),n=a("a897");for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("b5b6");var s=a("828b"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"0457eaf0",null,!1,i["a"],void 0);t["default"]=r.exports},5236:function(e,t,a){var i=a("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.container[data-v-51189f4d]{padding-bottom:constant(env(safe-area-inset-bottom)106rpx6rpx);padding-bottom:calc(env(safe-area-inset-bottom) + %?106?% + %?6?%)}.header[data-v-51189f4d]{display:flex;justify-content:space-between;background-color:#e8c269;height:%?280?%;padding:%?56?% %?30?% 0 %?30?%}.header .order-status[data-v-51189f4d]{display:flex;align-items:center;height:%?128?%}.header .order-status .status-icon[data-v-51189f4d]{width:%?128?%;height:%?128?%}.header .order-status .status-icon .image[data-v-51189f4d]{display:block;width:100%;height:100%}.header .order-status .status-text[data-v-51189f4d]{padding-left:%?20?%;color:#fff;font-size:%?38?%;font-weight:700}.header .next-action[data-v-51189f4d]{display:flex;align-items:center;height:%?128?%}.header .next-action .action-btn[data-v-51189f4d]{min-width:%?152?%;height:%?56?%;padding:0 %?30?%;line-height:%?56?%;background-color:#fff;text-align:center;border-radius:%?28?%;border-color:#666;cursor:pointer;-webkit-user-select:none;user-select:none;color:#c7a157}.i-card[data-v-51189f4d]{background:#fff;padding:%?24?% %?24?%;width:94%;box-shadow:0 %?1?% %?5?% 0 rgba(0,0,0,.05);margin:0 auto %?20?% auto;border-radius:%?20?%}.delivery-address[data-v-51189f4d]{margin-top:%?-50?%}.delivery-address .link-man[data-v-51189f4d]{line-height:%?46?%;color:#333}.delivery-address .link-man .name[data-v-51189f4d]{margin-right:%?10?%}.delivery-address .address[data-v-51189f4d]{margin-top:%?12?%;color:#999;font-size:%?24?%}.delivery-address .address .detail[data-v-51189f4d]{margin-left:%?6?%}.express[data-v-51189f4d]{display:flex;align-items:center}.express .main[data-v-51189f4d]{flex:1}.express .info-item[data-v-51189f4d]{display:flex;margin-bottom:%?24?%}.express .info-item[data-v-51189f4d]:last-child{margin-bottom:0}.express .info-item .item-lable[data-v-51189f4d]{display:flex;align-items:center;font-size:%?24?%;color:#999;margin-right:%?30?%}.express .info-item .item-content[data-v-51189f4d]{flex:1;display:flex;align-items:center;font-size:%?26?%;color:#333}.express .info-item .item-content .act-copy[data-v-51189f4d]{margin-left:%?20?%;padding:%?2?% %?20?%;font-size:%?22?%;color:#666;border:%?1?% solid #c1c1c1;border-radius:%?16?%}.express .right-arrow[data-v-51189f4d]{margin-left:%?16?%;font-size:%?26?%}.goods-list .goods-item[data-v-51189f4d]{margin-bottom:%?40?%}.goods-list .goods-item[data-v-51189f4d]:last-child{margin-bottom:0}.goods-list .goods-item .goods-main[data-v-51189f4d]{display:flex}.goods-list .goods-item .goods-image[data-v-51189f4d]{width:%?180?%;height:%?180?%}.goods-list .goods-item .goods-image .image[data-v-51189f4d]{display:block;width:100%;height:100%;border-radius:%?8?%}.goods-list .goods-item .goods-content[data-v-51189f4d]{flex:1;padding-left:%?16?%;padding-top:%?16?%}.goods-list .goods-item .goods-content .goods-title[data-v-51189f4d]{font-size:%?26?%;max-height:%?76?%}.goods-list .goods-item .goods-content .goods-props[data-v-51189f4d]{margin-top:%?14?%;height:%?40?%;color:#ababab;font-size:%?24?%;overflow:hidden}.goods-list .goods-item .goods-content .goods-props .goods-props-item[data-v-51189f4d]{display:inline-block;margin-right:%?14?%;padding:%?4?% %?16?%;border-radius:%?12?%;background-color:#f5f5f5;width:auto}.goods-list .goods-item .goods-trade[data-v-51189f4d]{padding-top:%?16?%;width:%?150?%;text-align:right;color:#999;font-size:%?26?%}.goods-list .goods-item .goods-trade .goods-price[data-v-51189f4d]{vertical-align:bottom;margin-bottom:%?16?%}.goods-list .goods-item .goods-trade .goods-price .unit[data-v-51189f4d]{margin-right:%?-2?%;font-size:%?24?%}.goods-list .goods-item .goods-refund[data-v-51189f4d]{display:flex;justify-content:flex-end}.goods-list .goods-item .goods-refund .stata-text[data-v-51189f4d]{font-size:%?24?%;color:#999}.goods-list .goods-item .goods-refund .action-btn[data-v-51189f4d]{border-radius:%?28?%;padding:%?8?% %?26?%;font-size:%?24?%;color:#383838;border:%?1?% solid #a8a8a8}.goods-list .goods-item .order-countdown[data-v-51189f4d]{display:flex;justify-content:flex-end;font-size:14px;color:#fa2209;align-items:center;gap:10px;margin-top:20px}.order-info .info-item[data-v-51189f4d]{display:flex;margin-bottom:%?24?%}.order-info .info-item[data-v-51189f4d]:last-child{margin-bottom:0}.order-info .info-item .item-lable[data-v-51189f4d]{display:flex;align-items:center;font-size:%?24?%;color:#999;margin-right:%?30?%}.order-info .info-item .item-content[data-v-51189f4d]{flex:1;display:flex;align-items:center;font-size:%?26?%;color:#333}.order-info .info-item .item-content .act-copy[data-v-51189f4d]{margin-left:%?20?%;padding:%?2?% %?20?%;font-size:%?22?%;color:#666;border:%?1?% solid #c1c1c1;border-radius:%?16?%}.trade-info .info-item[data-v-51189f4d]{display:flex;margin-bottom:%?24?%}.trade-info .info-item .item-lable[data-v-51189f4d]{font-size:%?24?%;color:#999;margin-right:%?24?%}.trade-info .info-item .item-content[data-v-51189f4d]{flex:1;font-size:%?26?%;color:#333;text-align:right}.trade-info .divider[data-v-51189f4d]{height:%?1?%;background:#f1f1f1;margin-bottom:%?24?%}.trade-info .trade-total[data-v-51189f4d]{display:flex;justify-content:flex-end}.trade-info .trade-total .goods-price[data-v-51189f4d]{margin-left:%?12?%;vertical-align:bottom;color:#fa2209}.trade-info .trade-total .goods-price .unit[data-v-51189f4d]{margin-right:%?-2?%;font-size:%?24?%}\n/* 底部操作栏 */.footer-fixed[data-v-51189f4d]{position:fixed;bottom:var(--window-bottom);left:0;right:0;z-index:11;box-shadow:0 %?-4?% %?40?% 0 hsla(0,0%,59.2%,.24);background:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.footer-fixed .btn-wrapper[data-v-51189f4d]{height:%?106?%;display:flex;align-items:center;justify-content:flex-end;padding:0 %?30?%}.footer-fixed .btn-item[data-v-51189f4d]{min-width:%?164?%;border-radius:%?28?%;padding:%?10?% %?24?%;font-size:%?28?%;color:#383838;text-align:center;border:%?1?% solid #a8a8a8;margin-left:%?24?%}.footer-fixed .btn-item.active[data-v-51189f4d]{color:#fff;border:none;background:linear-gradient(90deg,#f9211c,#ff6335)}.pay-popup[data-v-51189f4d]{padding:%?24?%}.pay-popup .title[data-v-51189f4d]{font-size:%?30?%;margin-bottom:%?50?%;font-weight:700;text-align:center}.pay-popup .pop-content[data-v-51189f4d]{min-height:%?260?%;padding:0 %?10?%}.pay-popup .pop-content .pay-item[data-v-51189f4d]{padding:%?20?% %?35?%;font-size:%?28?%;border-bottom:%?1?% solid #f1f1f1}.pay-popup .pop-content .pay-item[data-v-51189f4d]:last-child{border-bottom:none}.pay-popup .pop-content .pay-item .item-left_icon[data-v-51189f4d]{margin-right:%?20?%;font-size:%?32?%}.pay-popup .pop-content .pay-item .item-left_icon.wechat[data-v-51189f4d]{color:#00c800}.pay-popup .pop-content .pay-item .item-left_icon.balance[data-v-51189f4d]{color:#ff9700}',""]),e.exports=t},"53db2":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.date?a("v-uni-view",{staticClass:"count-down"},[a("v-uni-view",{class:[e.theme+"-theme","separator-"+e.separator]},[e.dynamic.day>0?[a("v-uni-text",{staticClass:"dynamic-value"},[e._v(e._s(e.dynamic.day))]),a("v-uni-text",{staticClass:"separator"},[e._v(e._s(e.separatorText.day))])]:e._e(),a("v-uni-text",{staticClass:"dynamic-value",style:{backgroundColor:e.customBgColor}},[e._v(e._s(e.dynamic.hou))]),a("v-uni-text",{staticClass:"separator"},[e._v(e._s(e.separatorText.hou))]),a("v-uni-text",{staticClass:"dynamic-value",style:{backgroundColor:e.customBgColor}},[e._v(e._s(e.dynamic.min))]),a("v-uni-text",{staticClass:"separator"},[e._v(e._s(e.separatorText.min))]),a("v-uni-text",{staticClass:"dynamic-value",style:{backgroundColor:e.customBgColor}},[e._v(e._s(e.dynamic.sec))]),a("v-uni-text",{staticClass:"separator"},[e._v(e._s(e.separatorText.sec))])],2)],1):e._e()},n=[]},"57f2":function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("e966");var i=a("5b54"),n={props:{date:{type:String,default:""},separator:{type:String,default:"zh"},theme:{type:String,default:"text"},customBgColor:{type:String,default:"#252525"}},data:function(){return{dynamic:{day:"0",hou:"00",min:"00",sec:"00"},separatorText:{day:"天",hou:"时",min:"分",sec:"秒"}}},created:function(){console.log("date"+this.date),this.setSeparatorText(),this.onTime()},methods:{setSeparatorText:function(){var e=this.separatorText;"colon"===this.separator&&(e.day=":",e.hou=e.min=":",e.sec=""),this.separatorText=e},onTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this,a={},n=(new Date).getTime(),o=new Date((0,i.formatDate)(t.date)).getTime();if(o-n<=0)return!1;var s=(o-n)/1e3,r=parseInt(s/86400),d=parseInt(s%86400/3600),u=parseInt(s%86400%3600/60),l=parseInt(s%86400%3600%60);a.day=r,a.hou=t.timeFormat(d),a.min=t.timeFormat(u),a.sec=t.timeFormat(l),console.log("dynamic"+a),t.dynamic=a;var c=t.isEnd();c&&e>0&&t.$emit("finish"),c||setTimeout((function(){t.onTime(++e)}),100)},isEnd:function(){var e=this.dynamic;return"00"==e.day&&"00"==e.hou&&"00"==e.min&&"00"==e.sec},timeFormat:function(e){return e<10?"0"+e:e}}};t.default=n},"5d5d":function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"PENDING",name:"待支付",value:10},{key:"SUCCESS",name:"已支付",value:20}]);t.default=o},"5ee8":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return i}));var i={uPopup:a("6d98").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isLoading?e._e():a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"header"},[a("v-uni-view",{staticClass:"order-status"},[a("v-uni-view",{staticClass:"status-icon"},[e.order.order_status==e.OrderStatusEnum.NORMAL.value?[e.order.pay_status==e.PayStatusEnum.PENDING.value?[a("v-uni-image",{staticClass:"image",attrs:{src:"/static/order/status/wait_pay.png",mode:"aspectFit"}})]:e.order.delivery_status==e.DeliveryStatusEnum.NOT_DELIVERED.value?[a("v-uni-image",{staticClass:"image",attrs:{src:"/static/order/status/wait_deliver.png",mode:"aspectFit"}})]:e.order.receipt_status==e.ReceiptStatusEnum.NOT_RECEIVED.value?[a("v-uni-image",{staticClass:"image",attrs:{src:"/static/order/status/wait_receipt.png",mode:"aspectFit"}})]:e._e()]:e._e(),e.order.order_status==e.OrderStatusEnum.COMPLETED.value?[a("v-uni-image",{staticClass:"image",attrs:{src:"/static/order/status/received.png",mode:"aspectFit"}})]:e._e(),e.order.order_status==e.OrderStatusEnum.CANCELLED.value||e.order.order_status==e.OrderStatusEnum.APPLY_CANCEL.value?[a("v-uni-image",{staticClass:"image",attrs:{src:"/static/order/status/close.png",mode:"aspectFit"}})]:e._e()],2),a("v-uni-view",{staticClass:"status-text"},[a("v-uni-text",[e._v(e._s(e.order.state_text))])],1)],1),e.order.order_status==e.OrderStatusEnum.NORMAL.value?a("v-uni-view",{staticClass:"next-action"},[e.order.pay_status==e.PayStatusEnum.PENDING.value?a("v-uni-view",{staticClass:"action-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPay()}}},[e._v("去支付")]):e._e(),e.order.delivery_status==e.DeliveryStatusEnum.DELIVERED.value&&e.order.receipt_status==e.ReceiptStatusEnum.NOT_RECEIVED.value?a("v-uni-view",{staticClass:"action-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onReceipt(e.order.order_id)}}},[e._v("确认收货")]):e._e()],1):e._e()],1),e.order.address?a("v-uni-view",{staticClass:"delivery-address i-card"},[a("v-uni-view",{staticClass:"link-man"},[a("v-uni-text",{staticClass:"name"},[e._v(e._s(e.order.address.name))]),a("v-uni-text",{staticClass:"phone"},[e._v(e._s(e.order.address.phone))])],1),a("v-uni-view",{staticClass:"address"},[e._l(e.order.address.region,(function(t,i){return a("v-uni-text",{key:i,staticClass:"region"},[e._v(e._s(t))])})),a("v-uni-text",{staticClass:"detail"},[e._v(e._s(e.order.address.detail))])],2)],1):e._e(),e.order.delivery_type==e.DeliveryTypeEnum.EXPRESS.value&&e.order.delivery_status==e.DeliveryStatusEnum.DELIVERED.value&&e.order.express?a("v-uni-view",{staticClass:"express i-card",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleTargetExpress()}}},[a("v-uni-view",{staticClass:"main"},[a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("物流公司")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v(e._s(e.order.express.express_name))])],1)],1),a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("物流单号")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v(e._s(e.order.express_no))]),a("v-uni-view",{staticClass:"act-copy",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleCopy(e.order.express_no)}}},[a("v-uni-text",[e._v("复制")])],1)],1)],1)],1),a("v-uni-view",{staticClass:"right-arrow"},[a("v-uni-text",{staticClass:"iconfont icon-arrow-right"})],1)],1):e._e(),a("v-uni-view",{staticClass:"goods-list i-card"},e._l(e.order.goods,(function(t,i){return a("v-uni-view",{key:i,staticClass:"goods-item"},[a("v-uni-view",{staticClass:"goods-main",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.handleTargetGoods(t.goods_id)}}},[a("v-uni-view",{staticClass:"goods-image"},[a("v-uni-image",{staticClass:"image",attrs:{src:t.goods_image,mode:"scaleToFill"}})],1),a("v-uni-view",{staticClass:"goods-content"},[a("v-uni-view",{staticClass:"goods-title"},[a("v-uni-text",{staticClass:"twoline-hide"},[e._v(e._s(t.goods_name))])],1),a("v-uni-view",{staticClass:"goods-props clearfix"},e._l(t.goods_props,(function(t,i){return a("v-uni-view",{key:i,staticClass:"goods-props-item"},[a("v-uni-text",[e._v(e._s(t.value.name))])],1)})),1)],1),a("v-uni-view",{staticClass:"goods-trade"},[a("v-uni-view",{staticClass:"goods-price"},[a("v-uni-text",{staticClass:"unit"},[e._v("¥")]),a("v-uni-text",{staticClass:"value"},[e._v(e._s(t.is_user_grade?t.grade_goods_price:t.goods_price))])],1),a("v-uni-view",{staticClass:"goods-num"},[a("v-uni-text",[e._v("×"+e._s(t.total_num))])],1)],1)],1),a("v-uni-view",{staticClass:"goods-refund"},[2==t.refund_status?a("v-uni-text",{staticClass:"stata-text"},[e._v("已退款")]):t.oil_status&&e.oilRemain(t)<=0?a("v-uni-text",{staticClass:"stata-text"},[e._v("已加完")]):10===e.order.order_status&&t.oil_status?a("v-uni-view",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=e.$handleEvent(a),e.handlePayQrcode(t.order_goods_id)}}},[e._v("去加油")]):e._e()],1),t.used_num>0?a("v-uni-view",{staticClass:"order-countdown"},[a("v-uni-text",{staticClass:"f-24 col-9"},[e._v("已加油¥"+e._s(t.used_amount)+"("+e._s(t.used_num)+"次),剩余¥"+e._s(e.oilRemain(t).toFixed(2)))])],1):e._e(),10===e.order.order_status&&t.oil_status&&!t.use_status&&t.expiration_time>0?a("v-uni-view",{staticClass:"order-countdown"},[a("v-uni-text",{staticClass:"m-r-6"},[e._v("剩余时间")]),a("count-down",{attrs:{date:t.expiration_time,separator:"zh",theme:"text"}})],1):e._e()],1)})),1),a("v-uni-view",{staticClass:"order-info i-card"},[a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("订单编号")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v(e._s(e.order.order_no))]),a("v-uni-view",{staticClass:"act-copy",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleCopy(e.order.order_no)}}},[a("v-uni-text",[e._v("复制")])],1)],1)],1),a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("下单时间")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v(e._s(e.order.create_time))])],1)],1),a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("买家留言")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v(e._s(e.order.buyer_remark?e.order.buyer_remark:"--"))])],1)],1)],1),a("v-uni-view",{staticClass:"trade-info i-card"},[a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("订单金额")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v("¥"+e._s(e.order.total_price))])],1)],1),e.order.coupon_money>0?a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("优惠券抵扣")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v("-¥"+e._s(e.order.coupon_money))])],1)],1):e._e(),e.order.points_money>0?a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v(e._s(e.setting.points_name)+"抵扣")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v("-¥"+e._s(e.order.points_money))])],1)],1):e._e(),a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("运费")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v("+¥"+e._s(e.order.express_price))])],1)],1),"0.00"!=e.order.update_price.value?a("v-uni-view",{staticClass:"info-item"},[a("v-uni-view",{staticClass:"item-lable"},[e._v("后台改价")]),a("v-uni-view",{staticClass:"item-content"},[a("v-uni-text",[e._v(e._s(e.order.update_price.symbol))]),a("v-uni-text",[e._v("¥"+e._s(e.order.update_price.value))])],1)],1):e._e(),a("v-uni-view",{staticClass:"divider"}),a("v-uni-view",{staticClass:"trade-total"},[a("v-uni-text",{staticClass:"lable"},[e._v("实付款")]),a("v-uni-view",{staticClass:"goods-price"},[a("v-uni-text",{staticClass:"unit"},[e._v("¥")]),a("v-uni-text",{staticClass:"value"},[e._v(e._s(e.order.pay_price))])],1)],1)],1),e.order.order_status!=e.OrderStatusEnum.CANCELLED.value?a("v-uni-view",{staticClass:"footer-fixed"},[a("v-uni-view",{staticClass:"btn-wrapper"})],1):e._e(),a("u-popup",{attrs:{mode:"bottom","border-radius":"26",closeable:!0},model:{value:e.showPayPopup,callback:function(t){e.showPayPopup=t},expression:"showPayPopup"}},[a("v-uni-view",{staticClass:"pay-popup"},[a("v-uni-view",{staticClass:"title"},[e._v("请选择支付方式")]),a("v-uni-view",{staticClass:"pop-content"},[a("v-uni-view",{staticClass:"pay-item dis-flex flex-x-between",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSelectPayType(e.PayTypeEnum.BALANCE.value)}}},[a("v-uni-view",{staticClass:"item-left dis-flex flex-y-center"},[a("v-uni-view",{staticClass:"item-left_icon balance"},[a("v-uni-text",{staticClass:"iconfont icon-balance-pay"})],1),a("v-uni-view",{staticClass:"item-left_text"},[a("v-uni-text",[e._v(e._s(e.PayTypeEnum.BALANCE.name))])],1)],1)],1)],1)],1)],1)],1)},o=[]},"625e":function(e,t,a){"use strict";a.r(t);var i=a("8dab"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);t["default"]=n.a},"6ecf":function(e,t,a){var i=a("c86c");t=i(!1),t.push([e.i,"uni-page-body[data-v-51189f4d]{background:#f4f4f4}body.?%PAGE?%[data-v-51189f4d]{background:#f4f4f4}",""]),e.exports=t},"8bb6":function(e,t,a){var i=a("5236");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("967d").default;n("5817aef8",i,!0,{sourceMap:!1,shadowMode:!1})},"8dab":function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default,n=a("3639").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("64aa"),a("bf0f");var o=a("fe5c"),s=n(a("0033")),r=a("d45e"),d=i(a("4d55")),u={components:{CountDown:d.default},data:function(){return{DeliveryStatusEnum:o.DeliveryStatusEnum,DeliveryTypeEnum:o.DeliveryTypeEnum,OrderStatusEnum:o.OrderStatusEnum,PayStatusEnum:o.PayStatusEnum,PayTypeEnum:o.PayTypeEnum,ReceiptStatusEnum:o.ReceiptStatusEnum,orderId:null,isLoading:!0,order:{},setting:{},showPayPopup:!1,canReset:!1}},onLoad:function(e){var t=this,a=e.orderId;this.orderId=a,this.getOrderDetail(),uni.$on("syncRefresh",(function(e,a){a||(t.canReset=e)}))},onShow:function(){this.canReset&&this.getOrderDetail(),this.canReset=!1},methods:{getOrderDetail:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this;t.isLoading=!0,s.detail(t.orderId).then((function(e){t.order=e.data.order,t.setting=e.data.setting,t.isLoading=!1})),e&&uni.$emit("syncRefresh",!0,!0)},oilRemain:function(e){var t=Number(e.total_price||0),a=Number(e.used_amount||0),i=Number(e.refund_amount||0);return Math.max(0,Math.round(100*(t-a-i))/100)},layerPayQrcode:function(e){uni.navigateTo({url:"/pages/qrcode/index?id="+e})},handlePayQrcode:function(e){var t=this;t.isLoading=!0,s.qrCode(t.orderId,{orderGoodsId:e}).then((function(e){uni.navigateTo({url:"/pages/webview/webview?url="+encodeURIComponent(e.data.qrCode)}),t.isLoading=!1}))},handleCopy:function(e){var t=this;uni.setClipboardData({data:e,success:function(){t.$toast("复制成功")}})},handleTargetExpress:function(){this.$navTo("pages/order/express/index",{orderId:this.orderId})},handleTargetGoods:function(e){this.$navTo("pages/goods/detail",{goodsId:e})},handleApplyRefund:function(e){this.$navTo("pages/refund/apply",{orderGoodsId:e})},onCancel:function(e){var t=this;uni.showModal({title:"友情提示",content:"确认要取消该订单吗?",success:function(a){a.confirm&&s.cancel(e).then((function(e){t.$toast(e.message),t.getOrderDetail(!0)}))}})},onReceipt:function(e){var t=this;uni.showModal({title:"友情提示",content:"确认收到商品了吗?",success:function(a){a.confirm&&s.receipt(e).then((function(e){t.$success(e.message),t.getOrderDetail(!0)}))}})},onPay:function(){this.showPayPopup=!0},onSelectPayType:function(e){var t=this;this.showPayPopup=!1,s.pay(t.orderId,e).then((function(e){return t.onSubmitCallback(e)})).catch((function(e){return e}))},onSubmitCallback:function(e){var t=this;e.data.pay_type==o.PayTypeEnum.WECHAT.value&&(0,r.wxPayment)(e.data.payment).then((function(){t.$success("支付成功"),setTimeout((function(){return t.getOrderDetail(!0)}),1500)})).catch((function(e){return t.$error("订单未支付")})).finally((function(){return t.disabled=!1})),e.data.pay_type==o.PayTypeEnum.BALANCE.value&&(t.$success("支付成功"),t.disabled=!1,setTimeout((function(){return t.getOrderDetail(!0)}),1500))},handleTargetComment:function(e){this.$navTo("pages/order/comment/index",{orderId:e})}}};t.default=u},a897:function(e,t,a){"use strict";a.r(t);var i=a("57f2"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);t["default"]=n.a},ab75:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"NORMAL",name:"进行中",value:10},{key:"CANCELLED",name:"已取消",value:20},{key:"APPLY_CANCEL",name:"待取消",value:21},{key:"COMPLETED",name:"已完成",value:30}]);t.default=o},b5b6:function(e,t,a){"use strict";var i=a("c45d"),n=a.n(i);n.a},c3bd:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"EXPRESS",name:"快递配送",value:10}]);t.default=o},c45d:function(e,t,a){var i=a("1e1d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("967d").default;n("2c7f8c9e",i,!0,{sourceMap:!1,shadowMode:!1})},d0e5:function(e,t,a){"use strict";var i=a("43cd"),n=a.n(i);n.a},d2f4:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"NOT_RECEIVED",name:"未收货",value:10},{key:"RECEIVED",name:"已收货",value:20}]);t.default=o},e207:function(e,t,a){"use strict";var i=a("8bb6"),n=a.n(i);n.a},ec79:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"MASTER",name:"普通订单",value:10},{key:"BARGAIN",name:"砍价订单",value:20},{key:"SHARP",name:"秒杀订单",value:30}]);t.default=o},f0e9:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("21aa")),o=new n.default([{key:"BALANCE",name:"余额支付",value:10},{key:"WECHAT",name:"微信支付",value:20}]);t.default=o},fab9:function(e,t,a){"use strict";a.r(t);var i=a("5ee8"),n=a("625e");for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("d0e5"),a("e207");var s=a("828b"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"51189f4d",null,!1,i["a"],void 0);t["default"]=r.exports},fe5c:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DeliveryStatusEnum",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DeliveryTypeEnum",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"OrderSourceEnum",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"OrderStatusEnum",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"PayStatusEnum",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"PayTypeEnum",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ReceiptStatusEnum",{enumerable:!0,get:function(){return l.default}});var n=i(a("1f07")),o=i(a("c3bd")),s=i(a("ec79")),r=i(a("ab75")),d=i(a("5d5d")),u=i(a("f0e9")),l=i(a("d2f4"))}}]); |