pages-order-manage-order-manage.218f7336.js 36 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-manage-order-manage"],{"06be":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={uTabs:i("f0ec").default,tkiQrcode:i("78d2").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"order_manage"},[n("v-uni-view",{staticClass:"order_top"},[n("v-uni-view",{staticClass:"inp flexB"},[n("v-uni-view",{staticClass:"search_inp flexB"},[n("v-uni-text",{staticClass:"iconfont iconsearch"}),n("v-uni-input",{attrs:{placeholder:"请输入订单号","placeholder-style":"color:#999;font-size:28rpx;"},model:{value:e.params.order_no,callback:function(t){e.$set(e.params,"order_no",t)},expression:"params.order_no"}}),n("v-uni-text",{staticClass:"iconfont icondelete",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.params.order_no="",e.getOrder()}}})],1),n("v-uni-view",{staticClass:"search_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.search.apply(void 0,arguments)}}},[e._v("查询")])],1),n("u-tabs",{attrs:{list:e.list,"is-scroll":!1,current:e.params.status,"font-size":"14px","active-color":"#F76454","inactive-color":"#333333",height:"100"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}}})],1),e.orderList?n("v-uni-view",{staticClass:"order_list"},e._l(e.orderList,(function(t,a){return n("v-uni-view",{key:t.id,staticClass:"list_con",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.skipDel(t.order_no)}}},[3==t.is_refund?n("v-uni-image",{staticClass:"refund_img",attrs:{src:i("d8fa")}}):e._e(),2==t.is_refund?n("v-uni-image",{staticClass:"refund_img",attrs:{src:i("9afb")}}):e._e(),1==t.is_refund?n("v-uni-image",{staticClass:"refund_img",attrs:{src:i("f02d")}}):e._e(),3==t.apply_cancel&&1==t.status?n("v-uni-image",{staticClass:"cancel_img",attrs:{src:i("ed96")}}):e._e(),n("v-uni-view",{staticClass:"flexB"},[n("v-uni-text",[e._v("订单号:"+e._s(t.order_no))]),1==t.is_help?n("v-uni-text",{staticClass:"ident"},[e._v("代下单")]):e._e()],1),n("v-uni-view",{staticClass:"goods_con"},[e._l(t.goods,(function(t){return n("v-uni-view",{key:t.id},[n("v-uni-view",{staticClass:"flexB"},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-image",{staticClass:"goods_img",attrs:{src:t.img}}),n("v-uni-view",[n("v-uni-view",{staticStyle:{"font-size":"28rpx","font-weight":"bold"}},[e._v(e._s(t.name))]),n("v-uni-view",{staticClass:"one_year",staticStyle:{width:"120rpx"}},[e._v("3条装")])],1)],1),n("v-uni-view",{staticClass:"price"},[t.sku?n("v-uni-view",{staticStyle:{color:"#999"}},[e._v("X"+e._s(e._f("subNum")(t.sku)))]):e._e(),t.sku?n("v-uni-view",{staticStyle:{"margin-top":"26rpx"}},[e._v("¥"+e._s(t.sku[0].price))]):e._e()],1)],1)],1)})),n("v-uni-view",{staticClass:"flexE"},[t.goods?n("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e._f("totalNum")(t.goods))+"套,")]):e._e(),n("v-uni-text",{staticClass:"gray"},[e._v("合计:")]),n("v-uni-text",{staticClass:"total"},[n("v-uni-text",[e._v("¥")]),t.goods?n("v-uni-text",[e._v(e._s(e._f("totalPrice")(t.goods)))]):e._e()],1)],1)],2),0==t.status&&t.countdown?n("v-uni-view",{staticClass:"close_order"},[e._v("订单关闭倒计时: "+e._s(t.countdown)+",请尽快支付。")]):e._e(),n("v-uni-view",{staticClass:"goods_opera",class:t.user?"flexB":"flexE"},[t.user?n("v-uni-view",[e._v("客户:"+e._s(e._f("getName")(t.user.nickname,16)))]):e._e(),0==t.status?n("v-uni-view",{staticClass:"flexE"},[1==t.is_help?n("v-uni-view",{staticClass:"base_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.payWay=!0,e.payInfo=t}}},[e._v("立即付款")]):e._e(),t.user&&0==t.is_help?n("v-uni-view",{staticClass:"base_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.callPhone(t.user.phone)}}},[e._v("联系客户")]):e._e(),n("v-uni-view",{staticClass:"more_opera",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.moreOpera(a)}}},[e._v("更多")]),t.showMore?n("v-uni-view",{staticClass:"dialog"},[n("v-uni-view",{on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.choose(2,t.id,a)}}},[e._v("取消订单")])],1):e._e()],1):e._e(),1==t.status?n("v-uni-view",{staticClass:"flexS"},[1==t.apply_cancel?n("v-uni-view",{staticClass:"audit_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.skipAudit(t)}}},[e._v("待审核")]):e._e(),0==t.apply_cancel?n("v-uni-view",{staticClass:"cancel_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.cancelOrder(t.id,a)}}},[e._v("取消订单")]):e._e(),1!=t.apply_cancel?n("v-uni-view",{staticClass:"base_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.shipments(t)}}},[e._v("立即发货")]):e._e()],1):e._e(),2==t.status?n("v-uni-view",{staticClass:"flexS"},[1==t.self_receive&&t.user?n("v-uni-view",{staticClass:"base_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.callPhone(t.user.phone)}}},[e._v("联系客户")]):n("v-uni-view",{staticClass:"base_btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.lookLogs(t)}}},[e._v("查看物流")]),n("v-uni-view",{staticClass:"more_opera",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.moreOpera(a)}}},[e._v("更多")]),t.showMore?n("v-uni-view",{staticClass:"dialog"},[1!=t.is_refund&&3!=t.is_refund?n("v-uni-view",{on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.choose(4,t.order_no)}}},[e._v("申请退货")]):e._e(),0!=t.is_refund?n("v-uni-view",{on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.choose(5,t.order_no)}}},[e._v("退货详情")]):e._e()],1):e._e()],1):e._e(),3==t.status?n("v-uni-view",{staticClass:"flexS"},[n("v-uni-view",{staticClass:"base_btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.skipEval.apply(void 0,arguments)}}},[e._v("查看评价")]),n("v-uni-view",{staticClass:"more_opera",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.moreOpera(a)}}},[e._v("更多")]),t.showMore?n("v-uni-view",{staticClass:"dialog"},[1!=t.is_refund&&3!=t.is_refund?n("v-uni-view",{on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.choose(4,t.order_no)}}},[e._v("申请退货")]):e._e(),0!=t.is_refund?n("v-uni-view",{on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.choose(5,t.order_no)}}},[e._v("退货详情")]):e._e()],1):e._e()],1):e._e()],1)],1)})),1):e._e(),0==e.orderList.length?n("v-uni-view",{staticClass:"noData"},[n("v-uni-image",{attrs:{src:"/static/imgs/default/no_order.png"}}),n("v-uni-view",[e._v("暂无订单~")])],1):e._e(),e.shareShow?n("v-uni-view",{staticClass:"share_show"},[n("v-uni-view",{staticClass:"share_con flexCC"},[n("v-uni-text",{staticClass:"iconfont iconguanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.shareShow=!1}}}),n("v-uni-view",{staticClass:"canvas"},[n("v-uni-view",{staticClass:"canvas"},[n("v-uni-canvas",{staticStyle:{width:"100%",height:"100%"},attrs:{"canvas-id":"canvas",id:"canvas"}},[n("img",{staticClass:"poster_img",attrs:{src:e.poster,mode:"widthFix"}})])],1)],1),n("v-uni-view",{staticClass:"save_img"},[e._v("长按图片发送给朋友")])],1)],1):e._e(),n("v-uni-view",{staticClass:"qrimg"},[n("tki-qrcode",{ref:"qrcode",attrs:{val:e.code.val,size:e.code.size,icon:e.code.icon,iconSize:e.code.iconsize,onval:e.code.onval,loadMake:e.code.loadMake,showLoading:e.code.showLoading,loadingText:e.code.loadingText},on:{result:function(t){arguments[0]=t=e.$handleEvent(t),e.drawPoster.apply(void 0,arguments)}}})],1),e.payWay?n("v-uni-view",{staticClass:"pay_pop flexCC"},[n("v-uni-view",{staticClass:"pay_con"},[n("v-uni-image",{staticClass:"hint_icon",attrs:{src:i("8297")}}),e.payInfo.user?n("v-uni-view",{staticClass:"pay_intr flexCC"},[n("v-uni-text",[e._v("客户:"+e._s(e.payInfo.user.nickname))]),n("v-uni-view",[e._v(e._s(e.payInfo.user.phone))])],1):e._e(),n("v-uni-view",{staticClass:"pay_btn flexC"},[n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payMent(e.payInfo.order_no)}}},[e._v("我代为支付")]),n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.shareNow(e.payInfo)}}},[e._v("分享给客户支付")])],1)],1),n("v-uni-text",{staticClass:"iconfont iconguanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payWay=!1}}})],1):e._e()],1)},o=[]},49179:function(e,t,i){"use strict";var n=i("89b2"),a=i.n(n);a.a},"4e9c":function(e,t,i){"use strict";i.r(t);var n=i("06be"),a=i("9c1f");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("49179"),i("9472");var r,s=i("f0c5"),d=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"51d086f7",null,!1,n["a"],r);t["default"]=d.exports},8297:function(e,t,i){e.exports=i.p+"static/img/hint.11769b88.png"},"833e":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,"uni-page-body[data-v-51d086f7]{min-height:100%;width:100%;background-color:#f9f9fb}body.?%PAGE?%[data-v-51d086f7]{background-color:#f9f9fb}",""]),e.exports=t},8653:function(e,t,i){var n=i("ea1b");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("6befdf7b",n,!0,{sourceMap:!1,shadowMode:!1})},"89b2":function(e,t,i){var n=i("833e");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("a2a09378",n,!0,{sourceMap:!1,shadowMode:!1})},9472:function(e,t,i){"use strict";var n=i("8653"),a=i.n(n);a.a},"9afb":function(e,t,i){e.exports=i.p+"static/img/part_refund.80472000.png"},"9c1f":function(e,t,i){"use strict";i.r(t);var n=i("fdf2"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},d8fa:function(e,t,i){e.exports=i.p+"static/img/all_refund.e8ba500a.png"},ea1b:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-51d086f7]{margin-top:%?10?%}.app-item uni-input[data-v-51d086f7], .app-item uni-picker[data-v-51d086f7], .app-item uni-textarea[data-v-51d086f7]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-51d086f7]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-51d086f7]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-51d086f7]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-51d086f7]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-51d086f7]{color:#fff;background:#f76454}.small-btn[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-51d086f7]{color:#999;border-color:#999}.login-btn[data-v-51d086f7]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-51d086f7]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-51d086f7]{margin-right:%?20?%}.border-right[data-v-51d086f7]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-51d086f7]{margin-right:%?6?%}.position-center[data-v-51d086f7]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-51d086f7]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-51d086f7]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-51d086f7]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-51d086f7]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-51d086f7]{color:#f76454}.swiper-nav[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-51d086f7]{color:#f76454}.swiper-nav .moveBar[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-51d086f7]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-51d086f7]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-51d086f7]{width:100%;height:100%}.article-header[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-51d086f7]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-51d086f7]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-51d086f7]{color:#f76454}.article-footer[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-51d086f7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-51d086f7]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-51d086f7]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-51d086f7]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\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/* 文章场景相关 */.order_manage[data-v-51d086f7]{postion:relative;padding-bottom:%?180?%}.order_manage .order_top[data-v-51d086f7]{position:fixed;top:0;left:0;width:100%;background:#fff;z-index:9999}.order_manage .order_top .inp[data-v-51d086f7]{width:100%;height:%?140?%;padding:0 %?30?%;box-sizing:border-box;background-color:#fff}.order_manage .order_top .inp .search_inp[data-v-51d086f7]{width:%?540?%;height:%?80?%;border:%?2?% solid #ccc;border-radius:%?44?%;padding:0 %?30?%;box-sizing:border-box}.order_manage .order_top .inp .search_inp uni-input[data-v-51d086f7]{width:80%;height:%?80?%;line-height:%?80?%;color:#333}.order_manage .order_top .inp .search_inp .iconfont[data-v-51d086f7]{color:#ccc;font-size:%?40?%}.order_manage .order_top .inp .search_btn[data-v-51d086f7]{width:%?124?%;height:%?64?%;text-align:center;line-height:%?64?%;background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);font-size:%?28?%;color:#fff;border-radius:%?44?%}.order_manage .order_list[data-v-51d086f7]{margin:%?272?% 0 %?120?%}.order_manage .order_list .list_con[data-v-51d086f7]{width:%?690?%;margin:%?30?% auto 0;background-color:#fff;font-size:%?28?%;border-radius:%?24?%;position:relative}.order_manage .order_list .list_con .goods_con[data-v-51d086f7]{border-top:%?1?% solid #e9e9e9;border-bottom:%?1?% solid #e9e9e9}.order_manage .order_list .list_con .goods_con .goods_img[data-v-51d086f7]{width:%?188?%;height:%?144?%;margin-right:%?20?%;border-radius:%?8?%;-webkit-flex-shrink:0;flex-shrink:0}.order_manage .order_list .list_con .goods_con > uni-view[data-v-51d086f7]{margin-top:%?15?%}.order_manage .order_list .list_con .goods_opera .more_opera[data-v-51d086f7]{font-size:%?36?%;color:#999;font-weight:700;margin-left:%?15?%}.order_manage .order_list .list_con .goods_opera .dialog[data-v-51d086f7]{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_manage .order_list .list_con .goods_opera .dialog[data-v-51d086f7]:after{content:"";position:absolute;width:0;height:0;border:%?10?% solid transparent;border-top-color:#fff;top:100%;left:50%;margin-left:%?72?%}.order_manage .order_list .list_con .goods_opera .dialog > uni-view[data-v-51d086f7]{height:%?88?%;line-height:%?88?%;font-size:%?32?%}.order_manage .order_list .list_con .goods_opera .dialog > uni-view[data-v-51d086f7]:not(:last-child){border-bottom:%?2?% solid #eee}.order_manage .order_list .list_con > uni-view[data-v-51d086f7]{padding:%?20?% %?20?%;box-sizing:border-box}.order_manage .order_list .list_con > uni-view[data-v-51d086f7]:first-child{padding:%?25?% %?10?%}.order_manage .order_list .list_con .refund_img[data-v-51d086f7]{width:%?202?%;height:%?170?%;position:absolute;top:%?15?%;right:%?25?%}.order_manage .order_list .list_con .close_order[data-v-51d086f7]{width:%?630?%;background:#ffeac7;color:#fb231f;font-size:%?28?%;font-weight:700;margin:%?15?% auto 0;border-radius:%?8?%;padding:%?8?% 0 %?8?% %?30?%}.order_manage .order_list .list_con .cancel_img[data-v-51d086f7]{width:%?195?%;height:%?125?%;position:absolute;top:0;right:%?30?%}.order_manage .order_list .list_con .opear_btn[data-v-51d086f7]{width:%?192?%;height:%?68?%;background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);opacity:1;border-radius:%?34?%;color:#fff;font-size:%?28?%;margin-left:%?20?%}.order_manage .order_list .list_con .price[data-v-51d086f7]{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:end;-webkit-align-items:flex-end;align-items:flex-end}.order_manage .order_list .list_con .ident[data-v-51d086f7]{background:rgba(65,133,245,.1);color:#4185f5;padding:%?5?% %?15?%;border-radius:%?28?% %?8?% %?28?% %?8?%;-webkit-flex-shrink:0;flex-shrink:0}.share_show[data-v-51d086f7]{width:100%;height:100vh;position:fixed;top:0;left:0;background-color:rgba(0,0,0,.7);z-index:9999}.share_show .share_con[data-v-51d086f7]{width:80%;margin:0 auto;height:100%;z-index:999999}.share_show .share_con .canvas[data-v-51d086f7]{width:%?540?%;height:%?960?%;position:relative}.share_show .share_con .canvas #canvas[data-v-51d086f7]{width:%?540?%;height:%?960?%;position:absolute;top:0;left:0}.share_show .share_con .canvas .poster_img[data-v-51d086f7]{-webkit-touch-callout:default;width:100%;height:100%;display:block}.share_show .share_con .canvas img[src][data-v-51d086f7],\r\n.share_show .share_con .canvas img[data-v-51d086f7]:not([src]){opacity:0}.share_show .share_con .save_img[data-v-51d086f7]{color:#fff;width:100%;text-align:center;font-size:%?40?%;margin-top:%?20?%}.share_show .share_con .iconfont[data-v-51d086f7]{position:absolute;top:4vh;right:%?25?%;color:#dedede;font-size:%?60?%;z-index:999}.share_show .sub_btn[data-v-51d086f7]{margin-top:%?76?%}.qrimg[data-v-51d086f7]{opacity:0}.pay_pop[data-v-51d086f7]{width:100vw;height:100vh;background:rgba(0,0,0,.8);position:fixed;top:0;left:0;z-index:99999}.pay_pop .pay_con[data-v-51d086f7]{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}.pay_pop .pay_con .pay_title[data-v-51d086f7]{font-size:%?32?%;font-weight:700;margin-top:%?85?%}.pay_pop .pay_con .pay_intr[data-v-51d086f7]{font-size:%?30?%;font-weight:700;margin:%?100?% 0 %?50?%;min-height:%?100?%}.pay_pop .pay_con .pay_intr uni-view[data-v-51d086f7]{color:#999;margin-top:%?15?%}.pay_pop .pay_con .hint_icon[data-v-51d086f7]{width:%?183?%;height:%?135?%;position:absolute;top:%?-67?%;margin-left:%?18?%}.pay_pop .pay_con .pay_btn uni-view[data-v-51d086f7]{width:%?292?%;height:%?88?%;line-height:%?88?%;color:#fff;text-align:center;font-size:%?28?%}.pay_pop .pay_con .pay_btn uni-view[data-v-51d086f7]:first-child{background:-webkit-linear-gradient(355deg,#ffaa01,#ffb02e);background:linear-gradient(95deg,#ffaa01,#ffb02e);border-radius:%?44?% 0 0 %?44?%}.pay_pop .pay_con .pay_btn uni-view[data-v-51d086f7]:last-child{background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b);border-radius:0 %?44?% %?44?% 0}.pay_pop .iconfont[data-v-51d086f7]{margin-top:%?30?%;color:#fff;font-size:%?60?%}',""]),e.exports=t},ed96:function(e,t,i){e.exports=i.p+"static/img/cancel_icon.dfd4067c.png"},f02d:function(e,t,i){e.exports=i.p+"static/img/audit_refund.c13d8101.png"},fdf2:function(e,t,i){"use strict";(function(e){var n=i("4ea4");i("99af"),i("d81d"),i("fb6a"),i("a434"),i("ace4"),i("a9e3"),i("d3b7"),i("4d63"),i("ac1f"),i("25f0"),i("466d"),i("5319"),i("841c"),i("1276"),i("5cc6"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var a=n(i("1da1")),o=i("8912"),r=(i("b662"),{data:function(){return{remark:"",searchName:"",list:[{name:"全部"},{name:"待付款"},{name:"待发货"},{name:"待收货"},{name:"已完成"}],orderList:"",total:"",params:{page_size:20,page_index:1,status:0,order_no:""},isPay:!0,user_id:"",shareShow:!1,model:"",canvasWidth:"",canvasHeight:"",code:{val:"",size:200,icon:"",iconsize:25,onval:!0,loadMake:"",showLoading:!0,loadingText:"二维码生成中..."},shareGoods:{},poster:"",payWay:!1,payInfo:"",orderTime:""}},onLoad:function(t){var i=this,n=t.status,a=t.user_id,o=t.nickname,r=t.order_no;this.params.order_no=r,this.params.status=n||0,this.user_id=a||"";var s="";s=o?"".concat(o,"的订单"):"订单管理",uni.setNavigationBarTitle({title:s}),uni.getSystemInfo({success:function(t){i.model=t.model,e.log(i.model,"model"),i.canvasWidth=t.windowWidth/375,i.canvasHeight=t.windowHeight}})},onShow:function(){this.params.page_index=1,this.getOrder()},onReachBottom:function(){this.getMoreOrder()},methods:{coutdown:function(e){var t=function(e){return e<10?"0"+e:e},i=Math.floor(Date.now()/1e3),n=Math.floor(Number(e)-i);if(n>0){var a=Math.floor(n/86400),o=Math.floor(n%86400/3600),r=Math.floor((n-86400*a-3600*o)/60),s=Math.floor(n-86400*a-3600*o-60*r);return"".concat(t(r),":").concat(t(s))}return this.timer=null,!1},getCount:function(){var e=this,t=this.orderList;t.map((function(t){if(0==t.status){var i=t.created_at.replace(/-/g,"/"),n=new Date(i).getTime()/1e3+3600,a=Math.floor(Date.now()/1e3),o=n-a;o>0?e.timer=setInterval((function(){e.$set(t,"countdown",e.coutdown(n))}),1e3):clearInterval(e.timer)}}))},moreOpera:function(e){var t=this;this.cur=0;var i=this.orderList;i.map((function(i,n){e==n?i.showMore=!i.showMore:t.$set(i,"showMore",!1)}))},choose:function(t,i,n){switch(t){case 1:this.shareNow(i,n);break;case 2:this.cancelOrder(i,n);break;case 4:e.log("申请退货"),this.applyReturn(i);break;case 5:this.refundDetail(i);break;default:break}},applyReturn:function(e){uni.navigateTo({url:"../apply-return/apply-return?order_no="+e})},shareNow:function(t){this.payWay=!1,this.code.val="".concat(this.$config.share_url,"#pages/scan-order/scan-order?order_no=").concat(t.order_no),this.$refs.qrcode._makeCode(),e.log(this.code.val);var i=t.goods;this.shareGoods={img:i[0].img,price:this.sharePrice(i),num:this.shareNum(i),name:i.length>1?i[0].main_attr+"...等":i[0].main_attr},this.drawPoster(),this.shareShow=!0},shareNum:function(e){var t=0;return e.map((function(e){e.sku.map((function(e){t+=e.num}))})),t},sharePrice:function(e){var t=0;return e.map((function(e){e.sku.map((function(e){t+=e.num*e.price}))})),t},dataURLtoFile:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"file",i=e.split(","),n=i[0].match(/:(.*?);/)[1],a=n.split("/")[1],o=atob(i[1]),r=o.length,s=new Uint8Array(r);while(r--)s[r]=o.charCodeAt(r);return new File([s],"".concat(t,".").concat(a),{type:n})},drawPoster:function(t){var i=this,n=this;uni.showLoading({title:"图片加载中..."});var a=n.shareGoods;uni.getImageInfo({src:a.img,success:function(o){var r=uni.createCanvasContext("canvas"),s=uni.getStorageSync("store");s.name=s.name.length>7?s.name.slice(0,7)+"...的店铺":s.name+"的店铺";var d=n.canvasWidth;r.drawImage("../../static/imgs/shop/good_poster.png",0,0,270*d,480*d),r.font="normal bold 14px Microsoft YaHei",r.textAlign="center",r.fillText(s.name,uni.upx2px(270),uni.upx2px(210)),r.drawImage(o.path,uni.upx2px(110),uni.upx2px(270),uni.upx2px(130),uni.upx2px(103)),r.font="normal bold 14px Microsoft YaHei",r.fillText(a.name,a.name.length>3?uni.upx2px(320):uni.upx2px(290),uni.upx2px(300)),r.font="normal normal 12px Microsoft YaHei",r.setFillStyle("#999999"),r.fillText("".concat(a.num,"套"),uni.upx2px(282),uni.upx2px(340)),r.font="normal bold 12px Microsoft YaHei",r.setFillStyle("#FB231F"),r.fillText("¥",uni.upx2px(340),uni.upx2px(365)),r.font="normal bold 16px Microsoft YaHei",r.setFillStyle("#FB231F"),r.fillText(a.price,uni.upx2px(400),uni.upx2px(365)),r.drawImage(t,uni.upx2px(110),uni.upx2px(420),uni.upx2px(320),uni.upx2px(320)),r.font="noraml bold 14px 微软雅黑",r.textAlign="center",r.setFillStyle("#060001"),r.fillText("长按二维码-识别-支付",uni.upx2px(270),uni.upx2px(790)),setTimeout((function(t){r.draw(!1,(function(){uni.canvasToTempFilePath({width:270*d,height:480*d,canvasId:"canvas",success:function(t){if("iPhone"==i.model)i.poster=i.dataURLtoFile(t.tempFilePath).name;else{var n=t.tempFilePath.replace(/\. +/g,"");i.poster=n.replace(/[\r\n]/g,""),e.log(i.poster,"poster")}}})})),uni.hideLoading()}),500)}})},shipments:function(e){var t=e.order_no,i=e.user_id;uni.navigateTo({url:"../delivery-method/delivery-method?order_no="+t+"&user_id="+i})},refundDetail:function(e,t){uni.navigateTo({url:"../refund_detail/refund_detail?order_no="+e})},skipAudit:function(e){uni.navigateTo({url:"../cancel-audit/cancel-audit?order_no="+e.order_no+"&id="+e.order_cancel.id})},callPhone:function(e){if(!e)return uni.showToast({title:"暂无联系方式",icon:"none"}),!1;uni.makePhoneCall({phoneNumber:e})},cancelOrder:function(e,t){var i=this;this.orderList[t].showMore=!1,uni.showModal({content:"确定要取消该订单么?",success:function(t){t.confirm&&(0,o.cancelOrder)({order_id:e}).then((function(t){if(200==t.code){uni.showModal({content:"取消订单成功",showCancel:!1});var n=i.orderList;n.map((function(t,i){t.id==e&&n.splice(i,1)}))}else uni.showModal({content:t.data||"取消订单失败",showCancel:!1})}))}})},goTop:function(){uni.pageScrollTo&&uni.pageScrollTo({scrollTop:0})},getStatus:function(e){switch(e){case 0:return"all";case 1:return 0}},getOrder:function(e,t){var i=this,n=0==this.params.status?"all":this.params.status-1,a=this.params,r=a.page_index,s=a.page_size,d=a.order_no,c="",l="";this.user_id?(c=o.getUserOrder,l={status:n,page_index:r,page_size:s,user_id:this.user_id,order_no:d}):(c=o.getOrderList,l={status:n,page_index:r,page_size:s,order_no:d}),c(l).then((function(a){200==a.code?(i.total=Math.ceil(a.data.total/i.params.page_size),i.orderList=e?i.orderList.concat(a.data.list):a.data.list,i.orderList.map((function(e){i.$set(e,"showMore",!1)})),0!=n&&"all"!=n||i.getCount(),t&&a.data.list.length>0&&(i.params.status=a.data.list[0].status+1)):uni.showModal({content:a.data,showCancel:!1})}))},getMoreOrder:function(){if(this.params.page_index++,this.params.page_index>this.total)return uni.showToast({title:"没有更多啦~",icon:"none"}),!1;this.getOrder(!0)},change:function(e){this.params.status=e,this.params.page_index=1,this.params.order_no="",this.goTop(),this.getOrder()},lookLogs:function(e){uni.navigateTo({url:"../logistics-detail/logistics-detail?order_no="+e.order_no+"&img="+e.goods[0].img})},skipEval:function(){uni.navigateTo({url:"../evaluate/evaluate"})},skipDel:function(e){uni.navigateTo({url:"../order-info/order-info?order_no="+e})},sendGoods:function(e){uni.navigateTo({url:"../send-goods/send-goods?order_no="+e})},search:function(){if(!this.params.order_no)return uni.showModal({content:"请先输入订单号",showCancel:!1}),!1;this.getOrder(!1,!0)},pickUp:function(e){var t=this;(0,o.pickUp)({order_no:e}).then((function(e){200==e.code?(t.status=3,t.getOrder(),uni.showToast({title:"成功",duration:3e3})):uni.showModal({content:e.data||"失败",showCancel:!1})}))},wxJsPay:function(e,t,i){"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,i)},jsApiCall:function(e,t,i){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+",请重试."),i&&i({msg:n});break}}))},getUrlParam:function(t){e.log(window.location,"location"),e.log(window.location.href,"href");var i=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(i);return null!=n?decodeURIComponent(n[2]):""},payMent:function(e){var t=this;return(0,a.default)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t.payWay=!1,t.isPay){i.next=4;break}return uni.showModal({content:"请稍后重试~",showCancel:!1}),i.abrupt("return",!1);case 4:t.isPay=!1,(0,o.payMent)({order_no:e}).then((function(e){if(200===e.error_code){var i=function(e){uni.showToast({title:"支付成功"})},n=function(e){uni.showModal({content:"支付失败!",showCancel:!1,success:function(e){e.confirm&&(t.params.status=0)}})};t.wxJsPay(e.data,i,n)}else uni.showModal({content:e.msg||"提交订单失败",showCancel:!1})})).catch((function(e){t.isPay=!0})).finally((function(){setTimeout((function(){t.isPay=!0}),3e3)}));case 6:case"end":return i.stop()}}),i)})))()}}});t.default=r}).call(this,i("5a52")["default"])}}]);