1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-info-order-info"],{"0e20":function(e,t,o){e.exports=o.p+"static/img/state4.87005d9c.png"},"0f02":function(e,t,o){e.exports=o.p+"static/img/audit_bg.6c2892f5.png"},"0f2b":function(e,t,o){"use strict";o.r(t);var n=o("95f3"),i=o("adda");for(var r in i)"default"!==r&&function(e){o.d(t,e,(function(){return i[e]}))}(r);o("aa1f");var a,s=o("f0c5"),d=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"b142b060",null,!1,n["a"],a);t["default"]=d.exports},"2b12":function(e,t,o){"use strict";var n=o("400c"),i=o.n(n);i.a},"400c":function(e,t,o){var n=o("ca17");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("4f06").default;i("14f0cf95",n,!0,{sourceMap:!1,shadowMode:!1})},5008:function(e,t,o){e.exports=o.p+"static/img/order_detail.b3c4c1f3.png"},"5a74":function(e,t,o){e.exports=o.p+"static/img/state3.aeb32333.png"},"6f7e":function(e,t,o){e.exports=o.p+"static/img/state2.f452aaf8.png"},7088:function(e,t,o){var n=o("f719");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("4f06").default;i("6c3e410f",n,!0,{sourceMap:!1,shadowMode:!1})},"861b":function(e,t,o){"use strict";o.r(t);var n=o("cd42"),i=o("c0b5");for(var r in i)"default"!==r&&function(e){o.d(t,e,(function(){return i[e]}))}(r);o("2b12");var a,s=o("f0c5"),d=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"5a18fc2a",null,!1,n["a"],a);t["default"]=d.exports},"95f3":function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.errShow?n("v-uni-view",{staticClass:"err_pop"},[n("v-uni-view",{staticClass:"err_con"},[n("v-uni-image",{staticClass:"hint_icon",attrs:{src:o("98ff")}}),n("v-uni-view",{staticClass:"err_title"},[e._v("温馨提示")]),n("v-uni-view",{staticClass:"err_intr flexCC"},[e._v(e._s(e.content))]),n("v-uni-view",{staticClass:"sub_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v(e._s(e.confirmText))])],1),e.showClose?n("v-uni-text",{staticClass:"iconfont iconguanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}}):e._e()],1):e._e()},r=[]},"98ff":function(e,t,o){e.exports=o.p+"static/img/hint.66cac4e9.png"},aa1f:function(e,t,o){"use strict";var n=o("7088"),i=o.n(n);i.a},adda:function(e,t,o){"use strict";o.r(t);var n=o("f2fc"),i=o.n(n);for(var r in n)"default"!==r&&function(e){o.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},b667:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAABHNCSVQICAgIfAhkiAAAA/FJREFUWEftl89uG1UUxr9v7BkrbHCfgOQJ6krJOBtUG6hokEodaFFFJeIsWGOegPgJSPZIdVGVtlQkDkVQIaQ6O+wgxXmC5g1wF63/zhw0Ho9nUjIzd1yl6YK7nXvP/Z3v/LlniBmWlHNZyzCuAyhRMA8yNzYj0hbiGEA9NRjssdbuJDXPpAesr/PfQGQDZDbyrIgDs5n6oVVNcocy0FiVVGaXQCHJBYC0NWtQVFVLCciBsWk8nYZmSiTPRdAOApKcB/DeCWiRtiZqUEpAo7K5S7LkXyJHmtgV1v5unKaWlBcLNrVNgBe97yJopGvNYpy6sUDD8mKBSD0NwNxNYVBRCcGobNYArvln7fV07aAWBRUPtGYeEm4ViciR/mPLrSjFNfoqXwfhVKSzjtN3mwszA8mt5XlLl2eegZRlX+L2wYmcieNKaiNSIet2viLE92N1IEf6vWTqeLCj275KAqnq91obYY5EAg2/NDdIfjcJV1XfDjcUpdRJO9jSt5uVmYEAFwiOZ68BNLUjsq/fb4X2smiFbplOR54AYUu/H+5ZpEJBOyJV/cGMIRvdXCqLpt2ZhKxt/NS6FJfEp30ffmE2QF52cxHfGg+bmzOFTEq57MjI/OMdTmtc4IO/nMdTeTlVNrL9So2zEd+HbpoNwPUOkLr+qLWqTANgcMOskV5zlH39UXj+OHbjgW4sFiTQqTWR1fTPrboK1PCVs7DtdWPnNTu1c3H/83ydmHRbkY6x07qgAtT/LP+MhPPYOm1+39iJVkdJobGtUi47pHEM8F3XuL1u1KM9HZXMkk3ueuC6cIH1+PyLDZlncFDyH0oB9jL1ZuD1/69eSfd7FpSBRtfMkq15HkvH2IsO2+C6eYjJozzOncfRiiYGGufSp3nxDmZ+aUY6E9xrOO1CIVzKOeRB9K/5QJpYRf3XkAHt6vL8IDAlZB5HwwcDPvVSCrls/53MGiEFCRngCckB7nCvMRxo8MlSTqgdehcJcOpkObYDu61bqS0+cRN+DNRfMUsg7niXqZS08bJ/gY3w35z+itkBJ1WpYJCw143fDmoUR17aTgJG/9YEjBLYMn6Pfmh7K/kK4c5SqstJA3avmjV6c6/Ic4AbQityKpx7cnruvHrx4MpSzkpJqKOarWWFcCYK92dAsMfex3lnRB13U4qsZv5QexZUvY7b50Dbmp9v7F3xK0fEKs79qeZ93EVJvgcZ2PsoAIRzAgowsPdhAIjnBBRgYPcDHwi2VZxrvPmQBRnYLQaAkgT+jPaye9nsTMeKM7okiVl2318qg+4gf/5Lqsrjx5uC/R8oTmm+WPb/3+M2n/V3Eany5fJbVvYvzLdLoX8BH9K3PEF+uW4AAAAASUVORK5CYII="},c0b5:function(e,t,o){"use strict";o.r(t);var n=o("fbb0"),i=o.n(n);for(var r in n)"default"!==r&&function(e){o.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},ca17:function(e,t,o){var n=o("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.order_info[data-v-5a18fc2a]{position:relative;width:100%;min-height:100%;background:#f9f8f9}.order_info .order_bg[data-v-5a18fc2a]{width:%?750?%;height:%?272?%;position:relative}.order_info .order_bg .img_bg[data-v-5a18fc2a]{width:%?750?%;height:%?272?%}.order_info .order_bg .state[data-v-5a18fc2a]{position:absolute;top:3vh;left:%?0?%;width:100%;padding:0 %?30?%;box-sizing:border-box}.order_info .order_bg .state uni-view[data-v-5a18fc2a],\r\n.order_info .order_bg .state uni-text[data-v-5a18fc2a]{color:#fff;font-size:%?28?%}.order_info .order_bg .state uni-view[data-v-5a18fc2a]{magin-bottom:%?15?%;font-size:%?36?%;font-weight:700}.order_info .order_bg .state .count_down[data-v-5a18fc2a]{color:#ffe35d;margin-top:%?20?%;font-size:%?30?%;font-weight:700}.order_info .order_bg .state .fail uni-view[data-v-5a18fc2a]:first-child{font-size:%?38?%}.order_info .order_bg .state .fail uni-view[data-v-5a18fc2a]:last-child{font-size:%?28?%;font-weight:400;margin-top:%?10?%}.order_info .order_con[data-v-5a18fc2a]{width:100%;position:relative;margin-top:%?-50?%;padding-bottom:%?240?%}.order_info .order_con > uni-view[data-v-5a18fc2a]{width:%?690?%;margin:0 auto;border-radius:%?24?%;padding:%?20?% %?30?%}.order_info .order_con .safe_box[data-v-5a18fc2a]{margin-top:%?20?%}.order_info .order_con .log_info[data-v-5a18fc2a]{box-shadow:0 %?4?% %?8?% #eee;border-radius:%?24?%;padding:%?20?% %?30?%;background:#fff}.order_info .order_con .log_info .log_box[data-v-5a18fc2a]{border-top:%?1?% solid #eee;padding-top:%?20?%}.order_info .order_con .log_info .avatar[data-v-5a18fc2a]{width:%?50?%;height:%?50?%;border-radius:%?50?%;margin-right:%?15?%;-webkit-flex-shrink:0;flex-shrink:0}.order_info .order_con .log_info .iconfont[data-v-5a18fc2a]{margin-right:%?20?%;color:#fb231f;font-size:%?45?%;font-weight:700}.order_info .order_con .log_info .user[data-v-5a18fc2a]{font-size:%?28?%;font-weight:700}.order_info .order_con .log_info .badge[data-v-5a18fc2a]{width:%?36?%;height:%?40?%;margin-right:%?15?%}.order_info .order_con .log_info .lately uni-text[data-v-5a18fc2a],\r\n.order_info .order_con .log_info .ads uni-text[data-v-5a18fc2a]{font-weight:700}.order_info .order_con .log_info .lately uni-view[data-v-5a18fc2a],\r\n.order_info .order_con .log_info .ads uni-view[data-v-5a18fc2a]{font-size:%?28?%;color:#999;margin-top:%?14?%}.order_info .order_con .log_info .ads[data-v-5a18fc2a]{padding-bottom:%?15?%}.order_info .order_con .log_info .ads uni-text[data-v-5a18fc2a]{font-size:%?32?%}.order_info .order_con .log_info .lately uni-text[data-v-5a18fc2a]{font-size:%?28?%}.order_info .order_con .log_info .look_logs[data-v-5a18fc2a]{border-left:%?2?% solid #e9e9e9;padding:%?15?% 0 %?15?% %?30?%;font-size:%?28?%;color:#999;-webkit-flex-shrink:0;flex-shrink:0}.order_info .order_con .order_box[data-v-5a18fc2a]{background:#fff;width:%?690?%;margin:%?30?% auto;padding:%?30?%;box-sizing:border-box}.order_info .order_con .order_box .shop_name[data-v-5a18fc2a]{padding:0 %?30?% %?20?% 0;border-bottom:%?2?% solid #eee}.order_info .order_con .order_box .shop_name uni-text[data-v-5a18fc2a]{font-size:%?28?%}.order_info .order_con .order_box .shop_name .iconfont[data-v-5a18fc2a]{font-size:%?35?%;color:#999;margin-right:%?10?%;vertical-align:%?-2?%}.order_info .order_con .order_box .goods_box .goods_con[data-v-5a18fc2a]{padding-top:%?20?%}.order_info .order_con .order_box .goods_box .goods_con .goods_info .goods_img[data-v-5a18fc2a]{width:%?200?%;height:%?160?%;margin-right:%?15?%;border-radius:%?8?%;-webkit-flex-shrink:0;flex-shrink:0}.order_info .order_con .order_box .goods_box .goods_con .goods_info .goods_intr .goods_name[data-v-5a18fc2a]{font-size:%?30?%;font-weight:700}.order_info .order_con .order_box .goods_box .goods_con .goods_info .goods_intr .year[data-v-5a18fc2a]{width:%?120?%;margin-top:%?10?%}.order_info .order_con .order_box .goods_box .goods_size[data-v-5a18fc2a]{margin-top:%?30?%}.order_info .order_con .order_box .goods_box .goods_size > uni-view[data-v-5a18fc2a]{margin-top:%?15?%}.order_info .order_con .order_box .goods_box .goods_total[data-v-5a18fc2a]{margin:%?20?% 0}.order_info .order_con .order_box .order_remark .remark_title[data-v-5a18fc2a]{font-size:%?32?%;font-weight:700;padding:%?15?% 0}.order_info .order_con .order_box .order_remark .remark_box[data-v-5a18fc2a]{width:100%;background:#f8f8f8;min-height:%?88?%;padding:%?20?% %?30?%;border-radius:%?16?%}.order_info .order_con .order_box .order_remark .remark_box .edit_remark[data-v-5a18fc2a]{width:%?108?%;height:%?48?%;background:#fff;border:%?2?% solid #fb231f;border-radius:%?26?%;background:#fff;margin-top:%?15?%;color:#fb231f}.order_info .order_con .order_box .order_remark .remark_box .finish[data-v-5a18fc2a]{color:#fff;background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);margin-left:%?15?%}.order_info .order_con .order_box .order_remark .remark_box uni-textarea[data-v-5a18fc2a]{width:100%}.order_info .order_con .order_intr[data-v-5a18fc2a]{background:#fff;box-sizing:border-box}.order_info .order_con .order_intr > uni-view[data-v-5a18fc2a]:not(:last-child){margin-bottom:%?20?%}.order_info .order_con .order_intr > uni-view uni-text[data-v-5a18fc2a]:first-child{font-weight:700}.order_info .order_con .order_intr .sign_box[data-v-5a18fc2a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.order_info .order_con .order_intr .sign_box .sign[data-v-5a18fc2a]{width:%?298?%;height:%?630?%;-webkit-transform:rotate(270deg);transform:rotate(270deg);border-radius:%?24?%;border:%?2?% solid #aaa;margin:%?-80?% 0 %?-100?% %?40?%}.order_info .order_con .order_total[data-v-5a18fc2a]{background:#fff;margin-top:%?20?%}.order_info .order_con .order_total uni-text[data-v-5a18fc2a]{font-weight:700}.order_info .order_opera[data-v-5a18fc2a]{width:100%;background:#fff;position:fixed;height:%?200?%;bottom:0;left:0}.order_info .order_opera .price_spread[data-v-5a18fc2a]{border-bottom:%?2?% solid #eee}.order_info .order_opera .price_spread[data-v-5a18fc2a],\r\n.order_info .order_opera .btn_box[data-v-5a18fc2a]{height:%?100?%;padding:0 %?30?%}.order_info .order_opera .price_spread .pay_btn[data-v-5a18fc2a],\r\n.order_info .order_opera .btn_box .pay_btn[data-v-5a18fc2a]{width:%?576?%;height:%?88?%;background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);border-radius:%?44?%}.order_info .order_opera .price_spread .more_opera[data-v-5a18fc2a],\r\n.order_info .order_opera .btn_box .more_opera[data-v-5a18fc2a]{font-size:%?36?%;color:#999;font-weight:700;margin-left:%?15?%}.order_info .order_opera .price_spread .dialog[data-v-5a18fc2a],\r\n.order_info .order_opera .btn_box .dialog[data-v-5a18fc2a]{position:absolute;background-color:#fff;margin:%?20?% auto;bottom:%?82?%;right:%?20?%;width:%?220?%;text-align:center;border-radius:%?8?%;box-shadow:0 %?6?% %?12?% rgba(0,0,0,.16)}.order_info .order_opera .price_spread .dialog[data-v-5a18fc2a]:after,\r\n.order_info .order_opera .btn_box .dialog[data-v-5a18fc2a]:after{content:"";position:absolute;width:0;height:0;border:%?10?% solid transparent;border-top-color:#fff;top:100%;left:50%;margin-left:%?72?%}.order_info .order_opera .price_spread .dialog .active[data-v-5a18fc2a],\r\n.order_info .order_opera .btn_box .dialog .active[data-v-5a18fc2a]{color:#fb231f}.order_info .order_opera .price_spread .dialog > uni-view[data-v-5a18fc2a],\r\n.order_info .order_opera .btn_box .dialog > uni-view[data-v-5a18fc2a]{height:%?88?%;line-height:%?88?%;font-size:%?32?%}.order_info .order_opera .price_spread .dialog > uni-view[data-v-5a18fc2a]:not(:last-child),\r\n.order_info .order_opera .btn_box .dialog > uni-view[data-v-5a18fc2a]:not(:last-child){border-bottom:%?2?% solid #eee}.price_box .goods_price .old_price[data-v-5a18fc2a]{text-decoration:line-through;font-size:%?30?%;font-weight:500}.price_box .goods_price .draw_off uni-text[data-v-5a18fc2a]{color:#999}.price_box .goods_price .symbol[data-v-5a18fc2a]{font-size:%?28?%}.price_box .goods_price .price[data-v-5a18fc2a]{font-weight:600;font-size:%?36?%}.price_box .goods_price .price uni-text[data-v-5a18fc2a]{color:#fb231f}.price_box .goods_price .vip[data-v-5a18fc2a]{font-size:%?28?%;font-weight:700;color:#333}.price_box .goods_price .vip_active[data-v-5a18fc2a]{font-size:%?36?%;font-weight:700}.price_box .goods_price .vip_active uni-text[data-v-5a18fc2a]{color:#fb231f}.price_box .goods_price .vip_img[data-v-5a18fc2a]{width:%?88?%;height:%?36?%;vertical-align:%?-6?%;margin-right:%?10?%}',""]),e.exports=t},cd42:function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return n}));var n={uPopup:o("bfa2").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"order_info"},[n("v-uni-view",{staticClass:"order_bg"},[1==e.orderInfo.apply_cancel?n("v-uni-image",{staticClass:"img_bg",attrs:{src:o("0f02")}}):n("v-uni-image",{staticClass:"img_bg",attrs:{src:o("5008")}}),n("v-uni-view",{staticClass:"audit"}),0==e.orderInfo.status?n("v-uni-view",{staticClass:"state flexB"},[2==e.orderInfo.apply_cancel?n("v-uni-view",[n("v-uni-view",[e._v("订单已关闭")]),n("v-uni-view",{staticClass:"count_down"},[e._v("该订单已关闭,请联系代理商重新下单")])],1):n("v-uni-view",[n("v-uni-view",[e._v("等待付款")]),e.orderTime?n("v-uni-view",{staticClass:"count_down"},[e._v("该订单将在"+e._s(e.orderTime)+"后自动关闭,请及时付款")]):e._e()],1),n("v-uni-image",{staticStyle:{width:"108rpx",height:"87rpx"},attrs:{src:o("6f7e")}})],1):e._e(),1==e.orderInfo.status&&1!=e.orderInfo.apply_cancel?n("v-uni-view",{staticClass:"state flexB"},[n("v-uni-view",[n("v-uni-view",[e._v("已付款")]),n("v-uni-text",[e._v(e._s(1==e.orderInfo.self_receive?"可通知卖家备货":"包裹正整装待发"))])],1),n("v-uni-image",{staticStyle:{width:"103rpx",height:"91rpx"},attrs:{src:o("d1d2")}})],1):e._e(),2==e.orderInfo.status?n("v-uni-view",{staticClass:"state flexB"},[n("v-uni-view",[n("v-uni-view",[e._v(e._s(1==e.orderInfo.self_receive?"已自提,待确认":"已发货"))]),n("v-uni-text",[e._v(e._s(1==e.orderInfo.self_receive?"记得要确认自提哟~":"包裹正在路上,请耐心等待"))])],1),n("v-uni-image",{staticStyle:{width:"120rpx",height:"82rpx"},attrs:{src:o("5a74")}})],1):e._e(),3==e.orderInfo.status?n("v-uni-view",{staticClass:"state flexB"},[n("v-uni-view",[n("v-uni-view",[e._v("已完成")]),n("v-uni-text",[e._v("赶快去购买更多吧~")])],1),n("v-uni-image",{staticStyle:{width:"129rpx",height:"109rpx"},attrs:{src:o("0e20")}})],1):e._e()],1),n("v-uni-view",{staticClass:"order_con",style:{margin:1==e.orderInfo.self_receive||0==e.orderInfo.status||1==e.orderInfo.status?"-46rpx auto 0":"-88rpx auto 0"}},[3==e.orderInfo.apply_cancel?n("v-uni-view",{staticClass:"log_info flexSS",staticStyle:{"margin-bottom":"20rpx"}},[n("v-uni-image",{staticClass:"badge",attrs:{src:o("b667")}}),n("v-uni-view",{staticClass:"ads"},[n("v-uni-text",[e._v("取消订单失败原因")]),e.orderInfo.cancel?n("v-uni-view",[e._v(e._s(e.orderInfo.cancel.remark))]):e._e()],1)],1):e._e(),0!=e.orderInfo.status&&1!=e.orderInfo.status||!e.orderInfo.user?e._e():n("v-uni-view",{staticClass:"log_info flexS"},[e.orderInfo.user?n("v-uni-image",{staticClass:"avatar",attrs:{src:e.orderInfo.user.avatar}}):n("v-uni-text",{staticClass:"iconfont icongeren2"}),e.orderInfo.user?n("v-uni-view",{staticClass:"user"},[n("v-uni-text",[e._v("客户:")]),n("v-uni-text",[e._v(e._s(e._f("getName")(e.orderInfo.user.nickname,e.orderInfo.user.phone?10:16)))]),n("v-uni-text",{staticStyle:{"margin-left":"10rpx"}},[e._v(e._s(e.orderInfo.user.phone))])],1):e._e()],1),2==e.orderInfo.status||3==e.orderInfo.status?n("v-uni-view",{staticClass:"log_info"},[1==e.orderInfo.self_receive?n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icondizhi"}),n("v-uni-text",[e._v("送货")])],1):n("v-uni-view",[n("v-uni-view",{staticClass:"flexSS"},[n("v-uni-text",{staticClass:"iconfont icondizhi"}),e.orderInfo.address?n("v-uni-view",{staticClass:"ads"},[n("v-uni-text",[e._v(e._s(e.orderInfo.address.name)+e._s(e.orderInfo.address.phone))]),n("v-uni-view",[e._v(e._s(e.orderInfo.address.province)+e._s(e.orderInfo.address.city)+e._s(e.orderInfo.address.area)+e._s(e.orderInfo.address.address))])],1):e._e()],1),e.logInfo?n("v-uni-view",{staticClass:"flexB log_box"},[n("v-uni-view",{staticClass:"flexSS"},[n("v-uni-text",{staticClass:"iconfont iconfahuo"}),n("v-uni-view",{staticClass:"lately"},[n("v-uni-text",[e._v(e._s(e.logInfo.AcceptStation))]),n("v-uni-view",[e._v(e._s(e.logInfo.AcceptTime))])],1)],1),n("v-uni-view",{staticClass:"look_logs",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.lookLogs.apply(void 0,arguments)}}},[e._v("查看")])],1):e._e()],1)],1):e._e(),n("v-uni-view",{staticClass:"safe_box"},[n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),n("v-uni-text",[e._v("支付安全有保障")])],1),n("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),n("v-uni-text",[e._v("90天-366天不满意全额退款")])],1),n("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),n("v-uni-text",[e._v("一次性购买满2套,在本店终身享受VIP价格")])],1)],1),n("v-uni-view",{staticClass:"order_box"},[n("v-uni-view",{staticClass:"shop_name"},[n("v-uni-text",{staticClass:"iconfont icondianpu"}),e.orderInfo.store?n("v-uni-text",[e._v(e._s(e._f("getName")(e.orderInfo.store.name,15))+"的店铺")]):e._e()],1),n("v-uni-view",{staticClass:"goods_box"},e._l(e.goods,(function(t){return n("v-uni-view",{key:t.id,staticClass:"goods_con",on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e.skipDetail(t.id)}}},[n("v-uni-view",{staticClass:"goods_info flexS"},[n("v-uni-image",{staticClass:"goods_img",attrs:{src:t.img}}),n("v-uni-view",{staticClass:"goods_intr"},[n("v-uni-text",{staticClass:"goods_name"},[e._v(e._s(t.name))]),n("v-uni-view",{staticClass:"year"},[e._v("3条装")]),n("v-uni-view",{staticClass:"price_box",staticStyle:{"margin-top":"20rpx"}},[t.sku[0].price==t.vip_price?n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-view",{staticClass:"vip_ident"},[e._v("VIP")]),n("v-uni-text",{staticClass:"vip_active"},[n("v-uni-text",{staticClass:"symbol"},[e._v("¥")]),n("v-uni-text",[e._v(e._s(t.vip_price))])],1)],1),n("v-uni-view",{staticClass:"draw_off"},[n("v-uni-text",[e._v("(")]),n("v-uni-text",{staticClass:"old_price"},[n("v-uni-text",{staticClass:"symbol"},[e._v("¥")]),n("v-uni-text",[e._v(e._s(t.price))])],1),n("v-uni-text",[e._v(")")])],1)],1):n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[e._v("¥")]),n("v-uni-text",[e._v(e._s(t.price))])],1),n("v-uni-view",{staticClass:"save_box"},[e._v("VIP可省"+e._s(Number(t.price)-Number(t.vip_price)||0))])],1)],1)],1)],1),e._l(t.sku,(function(t){return n("v-uni-view",{key:t.id,staticClass:"goods_size"},[n("v-uni-view",{staticClass:"flexB"},[n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[e._v("款式:")]),n("v-uni-text",[e._v(e._s(t.type))])],1),n("v-uni-text",[e._v(e._s(t.price*t.num)+"元")])],1),n("v-uni-view",{staticClass:"flexB"},[n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[e._v("尺码:")]),n("v-uni-text",[e._v(e._s(t.size))])],1),n("v-uni-text",[e._v("X"+e._s(t.num)+"套")])],1)],1)})),n("v-uni-view",{staticClass:"goods_total flexE"},[n("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e._f("subNum")(t))+"套,")]),n("v-uni-text",[e._v("小计:")]),n("v-uni-view",{staticClass:"price_box"},[n("v-uni-view",{staticClass:"goods_price flexS"},[n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",{staticClass:"symbol"},[e._v("¥")]),t.sku[0].price==t.vip_price?n("v-uni-text",[e._v(e._s(e._f("subtotal")(t,1)))]):n("v-uni-text",[e._v(e._s(e._f("subtotal")(t)))])],1)],1)],1)],1)],2)})),1),0==e.orderInfo.status?n("v-uni-view",{staticClass:"order_remark"},[n("v-uni-view",{staticClass:"remark_title"},[e._v("订单备注")]),n("v-uni-view",{staticClass:"remark_box"},[n("v-uni-textarea",{attrs:{placeholder:"可将收货人姓名、电话和地址备注在这里","auto-height":!0,"placeholder-style":"font-size:30rpx;",disabled:!e.isText},model:{value:e.orderInfo.remark,callback:function(t){e.$set(e.orderInfo,"remark",t)},expression:"orderInfo.remark"}}),n("v-uni-view",{staticClass:"flexE"},[n("v-uni-view",{staticClass:"edit_remark flexCC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isText=!0}}},[e._v("编辑")]),e.isText?n("v-uni-view",{staticClass:"edit_remark flexCC finish",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.editRemark.apply(void 0,arguments)}}},[e._v("完成")]):e._e()],1)],1)],1):n("v-uni-view",{staticClass:"flexT",staticStyle:{"margin-top":"15rpx"}},[n("v-uni-view",{staticStyle:{"flex-shrink":"0"}},[e._v("订单备注:")]),n("v-uni-text",{staticClass:"gray",attrs:{selectable:"true"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.copy(e.orderInfo.remark)}}},[e._v(e._s(e.orderInfo.remark?e.orderInfo.remark:"无"))])],1)],1),n("v-uni-view",{staticClass:"order_intr"},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-text",{staticStyle:{"flex-shrink":"0"}},[e._v("订单编号:")]),n("v-uni-text",{staticStyle:{"font-size":"24rpx"}},[e._v(e._s(e.orderInfo.order_no))]),n("v-uni-text",{staticClass:"copy_new_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.copy(e.orderInfo.order_no)}}},[e._v("复制")])],1),n("v-uni-view",[n("v-uni-text",[e._v("下单时间:")]),n("v-uni-text",[e._v(e._s(e.orderInfo.created_at))])],1),0!=e.orderInfo.status?n("v-uni-view",[n("v-uni-text",[e._v("支付时间:")]),n("v-uni-text",[e._v(e._s(e.orderInfo.pay_at))])],1):e._e(),n("v-uni-view",[n("v-uni-text",[e._v("支付方式:")]),n("v-uni-text",[e._v("微信支付")])],1),e.orderInfo.signature?n("v-uni-view",{staticClass:"sign_box"},[n("v-uni-text",[e._v("确认签名:")]),n("v-uni-image",{staticClass:"sign",attrs:{src:e.orderInfo.signature}})],1):e._e()],1)],1),n("v-uni-view",{staticClass:"order_opera"},[n("v-uni-view",{staticClass:"price_spread flexS"},[e.goods?n("v-uni-text",[e._v("共"+e._s(e._f("totalNum")(e.goods))+"套,")]):e._e(),n("v-uni-text",[e._v("合计:")]),e.goods?n("v-uni-text",{staticClass:"big_price"},[n("v-uni-text",[e._v("¥")]),n("v-uni-text",{staticStyle:{"font-size":"60rpx"}},[e._v(e._s(1==e.isVip?e.vipPrice:e.price))])],1):e._e(),1==e.isVip?n("v-uni-view",{staticClass:"year",staticStyle:{"margin-left":"15px"}},[e._v("可省"+e._s(e.price-e.vipPrice))]):e._e()],1),0==e.orderInfo.status?n("v-uni-view",{staticClass:"flexS btn_box"},[n("v-uni-view",{staticClass:"pay_btn",class:e.isEnd?"banned_click":"base_btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.isEnd?e.canceled():e.payMent(e.orderInfo.order_no,e.orderInfo.id)}}},[e._v("立即付款")]),n("v-uni-view",{staticClass:"more_opera",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.showMore=!e.showMore}}},[e._v("更多")]),e.showMore?n("v-uni-view",{staticClass:"dialog"},[n("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.cancelBtn(e.orderInfo.id)}}},[e._v("取消订单")])],1):e._e()],1):e._e(),1==e.orderInfo.status?n("v-uni-view",{staticClass:"flexE btn_box"},[1!=e.orderInfo.apply_cancel&&0==e.orderInfo.is_help?n("v-uni-view",{staticClass:"cancel_order_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelBtn(e.orderInfo.id,!0)}}},[e._v("取消订单")]):e._e(),1==e.orderInfo.apply_cancel?n("v-uni-view",{staticClass:"base_btn",staticStyle:{background:"linear-gradient(90deg, #ffbf63 0%, #fc8924 100%)"}},[e._v("审核中")]):e._e(),1!=e.orderInfo.apply_cancel?n("v-uni-view",{staticClass:"flexC",class:1==e.orderInfo.is_tip_send?"after_btn":"base_btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),1!=e.orderInfo.is_tip_send&&e.remind(e.orderInfo.id)}}},[e._v(e._s(1==e.orderInfo.is_tip_send?"已提醒":"提醒发货"))]):e._e()],1):e._e(),2==e.orderInfo.status?n("v-uni-view",{staticClass:"flexE btn_box"},[1!=e.orderInfo.is_refund&&3!=e.orderInfo.is_refund&&1==e.orderInfo.is_tip_send?n("v-uni-view",{staticClass:"cancel_order_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.skipRefund.apply(void 0,arguments)}}},[e._v("申请退货")]):e._e(),0!=e.orderInfo.is_refund?n("v-uni-view",{staticClass:"cancel_order_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refundDetail.apply(void 0,arguments)}}},[e._v("退货详情")]):e._e(),0==e.orderInfo.self_receive?n("v-uni-view",{staticClass:"base_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.lookLogs.apply(void 0,arguments)}}},[e._v("查看物流")]):e._e(),n("v-uni-view",{staticClass:"base_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),1==e.orderInfo.self_receive?e.selfGet(e.orderInfo.order_no):e.confirm(e.orderInfo.id)}}},[e._v(e._s(1==e.orderInfo.self_receive?"确认自提":"确认收货"))])],1):e._e(),3==e.orderInfo.status?n("v-uni-view",{staticClass:"flexE btn_box"},[1!=e.orderInfo.is_refund&&3!=e.orderInfo.is_refund?n("v-uni-view",{staticClass:"cancel_order_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.skipRefund.apply(void 0,arguments)}}},[e._v("申请退货")]):e._e(),0!=e.orderInfo.is_refund?n("v-uni-view",{staticClass:"cancel_order_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.refundDetail.apply(void 0,arguments)}}},[e._v("退货详情")]):e._e(),1==e.orderInfo.is_comment?n("v-uni-view",{staticClass:"after_btn",staticStyle:{border:"1rpx solid #ea4a41"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goHome.apply(void 0,arguments)}}},[e._v("再次购买")]):n("v-uni-view",{staticClass:"base_btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.skipEval(e.orderInfo.order_no)}}},[e._v("去评价")])],1):e._e()],1),n("u-popup",{attrs:{mode:"bottom",width:"550rpx",height:e.showText?"1100rpx":"800rpx","border-radius":"40"},model:{value:e.isPaid,callback:function(t){e.isPaid=t},expression:"isPaid"}},[n("v-uni-view",{staticClass:"cancel_box"},[n("v-uni-view",{staticClass:"cancel_title"},[n("v-uni-view",[e._v("取消订单原因")]),n("v-uni-text",{staticClass:"iconfont iconguanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isPaid=!1}}})],1),n("v-uni-view",{staticClass:"cancel_hint"},[e._v("请先和店家联系,商量好后再取消。")]),e._l(e.reasonList,(function(t,o){return n("v-uni-view",{key:t.id,staticClass:"flexB reason_item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.Checked(t,o)}}},[n("v-uni-view",[e._v(e._s(t.text))]),t.isChecked?n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}):n("v-uni-text",{staticClass:"iconfont iconweixuanzhong"})],1)})),e.showText?n("v-uni-view",{staticClass:"reason_box"},[n("v-uni-textarea",{attrs:{placeholder:"请输入您的取消原因"},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}})],1):e._e(),n("v-uni-view",{staticClass:"cancel_btn flexA"},[n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isPaid=!1,e.reason=""}}},[e._v("暂不取消")]),n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelOrder()}}},[e._v("取消")])],1)],2)],1),n("err-pop",{attrs:{errShow:e.cancelShow,content:e.cancelMsg,confirmText:"联系卖家",showClose:!0},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.callPhone(e.orderInfo.store.phone)},closePop:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelShow=!1}}})],1)},r=[]},d1d2:function(e,t,o){e.exports=o.p+"static/img/state1.02754476.png"},f2fc:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{errShow:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1},content:{type:String,default:""},confirmText:{type:String,default:"我知道了"}},methods:{confirm:function(){this.$emit("confirm")},close:function(){this.$emit("closePop")}}};t.default=n},f6ca:function(e,t,o){"use strict";var n=o("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderNum=t.scanOrder=t.editRemark=t.delCancel=t.cancelList=t.orderCancel=t.replaceStore=t.diffStore=t.getShareOrder=t.getComment=t.addComment=t.getSelf=t.getLogs=t.tipSend=t.pickUp=t.orderIndex=t.payOrder=t.subOrder=t.orderQuery=t.getOrderInfo=t.getOrderList=void 0;var i=n(o("57f7")),r=function(e){return i.default.get("/order/get_order_list",e)};t.getOrderList=r;var a=function(e){return i.default.get("/order/get_order_info",e)};t.getOrderInfo=a;var s=function(e){return i.default.get("/order/get_order_no_info",e)};t.orderQuery=s;var d=function(e){return i.default.post("/order/submit_order_info",e)};t.subOrder=d;var c=function(e){return i.default.post("/payment/pay",e)};t.payOrder=c;var f=function(e){return i.default.get("/order/get_order_index",e)};t.orderIndex=f;var l=function(e){return i.default.post("/order/sure_pick_up",e)};t.pickUp=l;var u=function(e){return i.default.post("/order/tip_send",e)};t.tipSend=u;var v=function(e){return i.default.get("/order/get_order_express",e)};t.getLogs=v;var _=function(e){return i.default.post("/order/sure_one_self_take",e)};t.getSelf=_;var p=function(e){return i.default.post("/order/add_comment",e)};t.addComment=p;var g=function(e){return i.default.get("/order/get_comment",e)};t.getComment=g;var h=function(e){return i.default.get("/order/get_share_order",e)};t.getShareOrder=h;var b=function(e){return i.default.get("/order/get_user_store_diff",e)};t.diffStore=b;var x=function(e){return i.default.post("/order/replace_store",e)};t.replaceStore=x;var w=function(e){return i.default.post("/order/cancel_order",e)};t.orderCancel=w;var m=function(e){return i.default.get("/cancel/get_cancel_order_list",e)};t.cancelList=m;var C=function(e){return i.default.post("/cancel/delete_origin_order",e)};t.delCancel=C;var k=function(e){return i.default.post("/order/edit_order_remark",e)};t.editRemark=k;var y=function(e){return i.default.get("/order/get_scan_order",e)};t.scanOrder=y;var I=function(e){return i.default.get("/order/get_order_status_num",e)};t.getOrderNum=I},f719:function(e,t,o){var n=o("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.err_pop[data-v-b142b060]{width:100vw;height:100vh;background:rgba(0,0,0,.8);position:fixed;top:0;left:0;z-index:99999;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:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.err_pop .err_con[data-v-b142b060]{position:relative;width:%?620?%;text-align:center;margin:0 auto;min-height:%?384?%;background:#fff;border-radius:%?8?%;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-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%}.err_pop .err_con .err_title[data-v-b142b060]{font-size:%?32?%;font-weight:700;margin-top:%?85?%}.err_pop .err_con .err_intr[data-v-b142b060]{font-size:%?28?%;margin:%?25?% 0;min-height:%?100?%;color:#999}.err_pop .err_con .hint_icon[data-v-b142b060]{width:%?183?%;height:%?135?%;position:absolute;top:%?-67?%;margin-left:%?18?%}.err_pop .iconfont[data-v-b142b060]{color:#fff;font-size:%?60?%;margin-top:%?30?%}',""]),e.exports=t},fbb0:function(e,t,o){"use strict";var n=o("4ea4");o("99af"),o("d81d"),o("a9e3"),o("d3b7"),o("ac1f"),o("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("96cf");var i=n(o("1da1")),r=o("51da"),a=n(o("0f2b")),s=o("f6ca"),d={data:function(){return{orderInfo:"",logInfo:"",order_no:"",isPay:!0,isPaid:!1,reason:"",reasonList:[{id:1,text:"地址或手机号写错了",isChecked:!1},{id:2,text:"未按照约定时间发货",isChecked:!1},{id:3,text:"尺码拍错了",isChecked:!1},{id:4,text:"选重复了",isChecked:!1},{id:5,text:"其他原因",isChecked:!1}],showText:!1,goods:"",isSearch:"",isVip:"",orderTime:"",timer:null,errShow:!1,errMsg:"",cancelShow:!1,cancelMsg:"",apply_cancel:"",isEnd:!1,isText:!1,showMore:!1}},components:{errPop:a.default},onLoad:function(e){this.order_no=e.order_no,this.getOrder()},computed:{price:function(){var e=0,t=this.goods;return t.map((function(t){t.sku.map((function(o){e+=o.num*t.price}))})),e},vipPrice:function(){var e=0,t=this.goods;return t.map((function(t){t.sku.map((function(o){e+=o.num*t.vip_price}))})),e}},watch:{apply_cancel:{handler:function(e){2==e&&(this.isEnd=!0)}}},beforeDestroy:function(){clearInterval(this.timer)},methods:{editRemark:function(){var e=this,t=this.orderInfo,o=t.order_no,n=t.remark;(0,s.editRemark)({order_no:o,remark:n}).then((function(t){200==t.code?(e.isText=!1,uni.showToast({title:"修改成功"})):uni.showModal({content:t.data||"修改失败",showCancel:!1})}))},canceled:function(){this.cancelShow=!0,this.cancelMsg="订单已关闭,请联系代理商重新下单"},coutdown:function(e){var t=function(e){return e<10?"0"+e:e},o=Math.floor(Date.now()/1e3),n=Math.floor(Number(e)-o);if(n>0){var i=Math.floor(n/86400),r=Math.floor(n%86400/3600),a=Math.floor((n-86400*i-3600*r)/60),s=Math.floor(n-86400*i-3600*r-60*a);return"".concat(t(a),":").concat(t(s))}clearInterval(this.timer)},getCount:function(){var e=this;if(!this.orderInfo.created_at)return!1;var t=this.orderInfo.created_at.replace(/-/g,"/"),o=new Date(t).getTime()/1e3+3600,n=Math.floor(Date.now()/1e3),i=o-n;i>0?this.timer=setInterval((function(){e.orderTime=e.coutdown(o)}),1e3):clearInterval(this.timer)},skipDetail:function(e){uni.navigateTo({url:"../goods-detail/goods-detail?id="+e})},skipRefund:function(){uni.navigateTo({url:"../sales-return/sales-return?order_no="+this.orderInfo.order_no})},refundDetail:function(){uni.navigateTo({url:"../refund-detail/refund-detail?order_no="+this.orderInfo.order_no})},Checked:function(e,t){var o=this,n=this.reasonList;n.map((function(e,n){n==t?(o.showText=4==t,o.reason=4==t?"":e.text,e.isChecked=!0):e.isChecked=!1}))},cancelBtn:function(e,t){var o=this;if(this.showMore=!0,this.id=e,t)return this.isPaid=!0,!1;uni.showModal({content:"确定要取消订单么?",success:function(e){e.confirm&&o.cancelOrder(t)}})},cancelOrder:function(e){var t=this;this.isPaid=!1,(0,s.orderCancel)({id:this.id,reason:this.reason}).then((function(o){if(200==o.code){if(!e)return uni.showModal({content:"取消订单成功",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../after-sale/after-sale"})}}),!1;t.orderInfo.apply_cancel=1,uni.showToast({title:e?"申请成功":"取消成功"}),t.reason="",t.isPaid=!1}else uni.showModal({content:o.msg||"取消订单失败",showCancel:!1})}))},callPhone:function(e){e?uni.makePhoneCall({phoneNumber:e}):uni.showToast({title:"暂无卖家信息",icon:"none"})},closePage:function(){setTimeout((function(){document.addEventListener("WeixinJSBridgeReady",(function(){WeixinJSBridge.call("closeWindow")}),!1),WeixinJSBridge.call("closeWindow")}),100)},closePop:function(){this.errShow=!1,uni.switchTab({url:"../index/index"})},getOrder:function(){var e=this;(0,s.orderQuery)({order_no:this.order_no}).then((function(t){if(200==t.code){e.orderInfo=t.data,e.apply_cancel=t.data.apply_cancel;var o=t.data.goods;o.map((function(t){t.sku[0].price==t.vip_price?e.isVip=1:e.isVip=0})),e.goods=t.data.goods,t.data.express_info&&(e.logInfo=JSON.parse(t.data.express_info)[0]),e.getCount()}else uni.showModal({content:t.msg||"获取订单信息失败",showCancel:!1})}))},remind:function(e){var t=this;(0,s.tipSend)({order_id:e}).then((function(e){200==e.code?(t.orderInfo.is_tip_send=1,uni.showToast({title:"提醒发货成功",duration:3e3})):uni.showModal({content:e.msg,showCancel:!1})}))},confirm:function(e){var t=this;uni.showModal({content:"你确定已经收到货品了吗?",success:function(o){o.confirm&&(0,s.pickUp)({order_id:e}).then((function(e){t.orderInfo.status=3,200==e.code?uni.showToast({title:"确认收货成功",duration:3e3}):uni.showModal({content:e.msg||"确认收货失败,请重试",showCancel:!1})}))}})},selfGet:function(e){var t=this;(0,s.getSelf)({order_no:e}).then((function(e){200==e.code?(t.orderInfo.status=3,uni.showToast({title:"确认自提成功!",duration:3e3})):uni.showModal({content:e.msg||"确认自提失败,请重试",showCancel:!1})}))},copy:function(e){(0,r.handleClipboard)(e,event,(function(){uni.showToast({icon:"none",title:"复制成功"})}),(function(){uni.showToast({icon:"none",title:"复制失败"})}))},lookLogs:function(){uni.navigateTo({url:"../logistics-detail/logistics-detail?order_no="+this.orderInfo.order_no+"&img="+this.orderInfo.goods[0].img})},skipEval:function(e){uni.navigateTo({url:"../shop-eval/shop-eval?order_no="+e})},goHome:function(){uni.switchTab({url:"../index/index"})},wxJsPay:function(e,t,o){"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",this.jsApiCall,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",this.jsApiCall),document.attachEvent("onWeixinJSBridgeReady",this.jsApiCall)):this.jsApiCall(e,t,o)},jsApiCall:function(e,t,o){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timestamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){var n=e.err_msg?e.err_msg:e.errMsg;switch(n){case"get_brand_wcpay_request:ok":t&&t(e);break;default:WeixinJSBridge.log("支付失败!"+n+",请返回重试."),o&&o({msg:n});break}}))},payMent:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isPay){t.next=3;break}return uni.showModal({content:"请稍后重试~",showCancel:!1}),t.abrupt("return",!1);case 3:e.isPay=!1,(0,s.payOrder)({order_no:e.orderInfo.order_no}).then((function(t){if(200===t.error_code){var o=function(){uni.showToast({title:"支付成功!",icon:"none"})},n=function(){uni.showModal({content:"支付失败,请联系管理员!",showCancel:!1})};e.wxJsPay(t.data,o,n)}else uni.showModal({content:t.msg,showCancel:!1})})).catch((function(t){e.isPay=!0})).finally((function(){setTimeout((function(){e.isPay=!0}),3e3)}));case 5:case"end":return t.stop()}}),t)})))()}}};t.default=d}}]);
|