1 |
- !function(){function e(e,n,t,r,i,a,o){try{var l=e[a](o),c=l.value}catch(s){return void t(s)}l.done?n(c):Promise.resolve(c).then(r,i)}function n(n){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=n.apply(t,r);function l(n){e(o,i,a,l,c,"next",n)}function c(n){e(o,i,a,l,c,"throw",n)}l(void 0)}))}}function t(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,i,a=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);o=!0);}catch(c){l=!0,i=c}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var i=document.createElement("style");i.innerHTML=":root{--van-steps-background-color: var(--van-background-color-light)}.van-steps{overflow:hidden;background-color:var(--van-steps-background-color)}.van-steps--horizontal{padding:.26667rem .26667rem 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 .26667rem;padding-bottom:.58667rem}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}:root{--van-step-text-color: var(--van-text-color-2);--van-step-active-color: var(--van-success-color);--van-step-process-text-color: var(--van-text-color);--van-step-font-size: var(--van-font-size-md);--van-step-line-color: var(--van-border-color);--van-step-finish-line-color: var(--van-success-color);--van-step-finish-text-color: var(--van-text-color);--van-step-icon-size: .32rem;--van-step-circle-size: .13333rem;--van-step-circle-color: var(--van-gray-6);--van-step-horizontal-title-font-size: var(--van-font-size-sm)}.van-step{position:relative;flex:1;color:var(--van-step-text-color);font-size:var(--van-step-font-size)}.van-step__circle{display:block;width:var(--van-step-circle-size);height:var(--van-step-circle-size);background-color:var(--van-step-circle-color);border-radius:50%}.van-step__line{position:absolute;background-color:var(--van-step-line-color);transition:background-color var(--van-animation-duration-base)}.van-step--horizontal{float:left}.van-step--horizontal:first-child .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child{position:absolute;right:.02667rem;width:auto}.van-step--horizontal:last-child .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:-.24rem;left:auto}.van-step--horizontal .van-step__circle-container{position:absolute;top:.8rem;left:calc(var(--van-padding-xs) * -1);z-index:1;padding:0 var(--van-padding-xs);background-color:var(--van-background-color-light);transform:translateY(-50%)}.van-step--horizontal .van-step__title{display:inline-block;margin-left:.08rem;font-size:var(--van-step-horizontal-title-font-size);transform:translate(-50%)}.van-step--horizontal .van-step__line{top:.8rem;left:0;width:100%;height:.02667rem}.van-step--horizontal .van-step__icon{display:block;font-size:var(--van-step-icon-size)}.van-step--horizontal .van-step--process{color:var(--van-step-process-text-color)}.van-step--vertical{display:block;float:none;padding:.26667rem .26667rem .26667rem 0;line-height:var(--van-line-height-sm)}.van-step--vertical:not(:last-child):after{border-bottom-width:.02667rem}.van-step--vertical .van-step__circle-container{position:absolute;top:.50667rem;left:-.4rem;z-index:1;font-size:var(--van-step-icon-size);line-height:1;transform:translate(-50%,-50%)}.van-step--vertical .van-step__line{top:.42667rem;left:-.4rem;width:.02667rem;height:100%}.van-step:last-child .van-step__line{width:0}.van-step--finish{color:var(--van-step-finish-text-color)}.van-step--finish .van-step__circle,.van-step--finish .van-step__line{background-color:var(--van-step-finish-line-color)}.van-step__icon,.van-step__title{transition:color var(--van-animation-duration-base)}.van-step__icon--active,.van-step__title--active,.van-step__icon--finish,.van-step__title--finish{color:var(--van-step-active-color)}body{--van-cart: #ff4e19}._item_2zuar_4 .van-card{background:#fff;flex:1;margin:0;padding:.37333rem .32rem}._item_2zuar_4 .van-card__title{font-size:.42667rem;color:#333;font-weight:400;line-height:.58667rem;max-height:1.17333rem}._item_2zuar_4 .van-card__desc{font-size:.37333rem;color:#999;font-weight:400;line-height:.53333rem;max-height:1.06667rem;white-space:break-spaces}._item_2zuar_4 .van-card__thumb{width:auto;height:auto}._item_2zuar_4 .van-image{width:2.66667rem!important;height:2.66667rem!important;border-radius:.21333rem;overflow:hidden}._item_2zuar_4 .van-card__price{color:var(--van-cart)}._shopOrderDetail_zncun_1{padding:.32rem .37333rem}._shopOrderDetail_zncun_1 .van-cell__title{font-size:.37333rem;color:#999}._shopOrderDetail_zncun_1 .van-cell__value{font-size:.37333rem;color:#333}body{background:#f7f8f9}._box_zncun_15{background:#fff;border-radius:.26667rem;overflow:hidden;margin-bottom:.32rem;padding:.37333rem;--van-step-circle-size: .26667rem}._box_zncun_15 .van-card{background:transparent;padding:0}._box_zncun_15 .van-cell-group__title{font-size:.42667rem;color:#333;font-weight:500}._box_zncun_15 ._logisticsTitle_zncun_32{font-size:.37333rem;font-weight:400;line-height:1.5}._box_zncun_15 ._logisticsTime_zncun_37{padding-top:.13333rem;font-size:.37333rem}._addressDetail_zncun_41 .van-cell__title{flex:none}._copyWrap_zncun_44{display:flex;align-items:center;justify-content:flex-end}\n",document.head.appendChild(i),System.register(["./index-legacy.f8641610.js","./index-legacy.ccf2a531.js","./index-legacy.fc510843.js","./index-legacy.c36297f9.js","./cart-legacy.2a6d84fa.js","./index-legacy.c8b60294.js","./index-legacy.28050159.js","./index-legacy.37e9f27c.js","./shop-mall-legacy.abf66ea2.js","./index-legacy.d0d6a39b.js"],(function(e){"use strict";var r,i,a,o,l,c,s,u,v,d,p,f,m,_,h,g,b,y,x,z,k,w,C,S,j,P,O,I,T,A;return{setters:[function(e){r=e.E,i=e.ab,a=e.a0,o=e.d,l=e.aj,c=e.i,s=e.at,u=e.W,v=e.b5,d=e.N,p=e.O,f=e.by,m=e.P,_=e.U,h=e.V,g=e.F,b=e.B,y=e.A,x=e.bs,z=e.$,k=e.e,w=e.T,C=e.D},function(e){S=e.D},function(e){j=e.C},function(e){P=e.C},function(e){O=e.f},function(){},function(){},function(e){I=e.C},function(e){T=e.o},function(e){A=e.C}],execute:function(){var R=t(r("steps"),2),D=R[0],E=R[1],N={active:i(0),direction:a("horizontal"),activeIcon:a("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},Y=Symbol(D),M=o({name:D,props:N,emits:["click-step"],setup:function(e,n){var t=n.emit,r=n.slots;return(0,l(Y).linkChildren)({props:e,onClickStep:function(e){return t("click-step",e)}}),function(){var n;return c("div",{class:E([e.direction])},[c("div",{class:E("items")},[null==(n=r.default)?void 0:n.call(r)])])}}}),q=t(r("step"),2),B=q[0],H=q[1],L=o({name:B,setup:function(e,n){var t=n.slots,r=s(Y),i=r.parent,a=r.index;if(i){var o=i.props,l=function(){var e=+o.active;return a.value<e?"finish":a.value===e?"process":"waiting"},p=function(){return"process"===l()},f=u((function(){return{background:"finish"===l()?o.activeColor:o.inactiveColor}})),m=u((function(){return p()?{color:o.activeColor}:"waiting"===l()?{color:o.inactiveColor}:void 0})),_=function(){return i.onClickStep(a.value)};return function(){var e,n,r,i,a,s,u,h,g,b=l();return c("div",{class:[v,H([o.direction,(u={},h=b,g=b,h in u?Object.defineProperty(u,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):u[h]=g,u)])]},[c("div",{class:H("title",{active:p()}),style:m.value,onClick:_},[null==(e=t.default)?void 0:e.call(t)]),c("div",{class:H("circle-container"),onClick:_},[(n=o.iconPrefix,r=o.finishIcon,i=o.activeIcon,a=o.activeColor,s=o.inactiveIcon,p()?t["active-icon"]?t["active-icon"]():c(d,{class:H("icon","active"),name:i,color:a,classPrefix:n},null):"finish"===l()&&(r||t["finish-icon"])?t["finish-icon"]?t["finish-icon"]():c(d,{class:H("icon","finish"),name:r,color:a,classPrefix:n},null):t["inactive-icon"]?t["inactive-icon"]():s?c(d,{class:H("icon"),name:s,classPrefix:n},null):c("i",{class:H("circle"),style:f.value},null))]),c("div",{class:H("line"),style:f.value},null)])}}}}),W=p(L),Q=p(M),U="_item_2zuar_4",$=o({name:"shop-item",props:{item:{type:Object,default:{productPic:"",productName:"",productAttr:"",productPrice:0,productQuantity:0}}},setup:function(e){var n=e.item;return function(){return c(I,{class:U,thumb:n.productPic,title:n.productName,desc:O(n.productAttr),price:f(n.productPrice),num:n.productQuantity},null)}}}),F="_shopOrderDetail_zncun_1",G="_box_zncun_15",J="_logisticsTitle_zncun_32",V="_logisticsTime_zncun_37",K="_addressDetail_zncun_41",X="_copyWrap_zncun_44";e("default",o({name:"shop-order-detail",setup:function(){var e=m(),t=_([]),r=_({}),i=_([]),a=function(){var i=n(regeneratorRuntime.mark((function n(){var i,a,l,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.query.id){n.next=3;break}return n.abrupt("return");case 3:return n.prev=3,n.next=6,k.get("/api-mall-portal/order/detail/".concat(i));case 6:if(a=n.sent,l=a.code,c=a.data,200!==l){n.next=17;break}if(t.value=c.orderItemList,delete c.orderItemList,r.value=c,r.value.address_data=[c.receiverProvince,c.receiverCity,c.receiverRegion,c.receiverDetailAddress].join(""),!c.deliverySn){n.next=17;break}return n.next=17,o(c.deliverySn);case 17:n.next=21;break;case 19:n.prev=19,n.t0=n.catch(3);case 21:case"end":return n.stop()}}),n,null,[[3,19]])})));return function(){return i.apply(this,arguments)}}();h((function(){a()}));var o=function(){var e=n(regeneratorRuntime.mark((function e(n){var t,r,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,k.get("/api-mall-portal/order/selectCourier",{params:{deliverySn:n}});case 3:t=e.sent,r=t.data,a=r.logistics?JSON.parse(r.logistics):[],console.log(a),i.value=a,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}(),l=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.confirm({title:"提示",message:"确认收货?",confirmButtonText:"收货",confirmButtonColor:"var(--van-primary)"});case 2:if("confirm"!==e.sent){e.next=8;break}return e.next=6,k.post("/api-mall-portal/order/confirmReceiveOrder",{params:{orderId:n.id}});case 6:200===e.sent.code&&a();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return function(){var e,n,a,o,s,u,v,d;return c(g,null,[t.value.length?c(g,null,[c("div",{class:F},[c("div",{class:G},[t.value.map((function(e,n){return c("div",null,[c($,{item:e},null),n===t.value.length-1?null:c(S,null,null)])}))]),c("div",{class:G,style:{padding:0}},[c(j,{border:!1,title:"商品价格:",value:"¥ "+f(null===(e=r.value)||void 0===e?void 0:e.totalAmount)},null),c(j,{border:!1,title:"优惠价格:",value:"-¥ "+f(null===(n=r.value)||void 0===n?void 0:n.couponAmount)},null),c(j,{border:!1,title:"订单状态:",value:T[null===(a=r.value)||void 0===a?void 0:a.status]},null),c(j,{border:!1,title:"收货状态:",value:null!==(o=r.value)&&void 0!==o&&o.confirmStatus?"已确认收货":"未确认收货"},null),c(S,{style:{margin:0}},null),c(j,{border:!1,title:"订单号:",value:null===(s=r.value)||void 0===s?void 0:s.orderSn},null),c(j,{border:!1,title:"创建时间:",value:null===(u=r.value)||void 0===u?void 0:u.createTime},null),c(j,{border:!1,title:"付款时间:",value:null===(v=r.value)||void 0===v?void 0:v.paymentTime},null)]),c("div",{class:G,style:{padding:0}},[c(P,{title:"收货信息",border:!1},{default:function(){var e,n,t,i;return[c(j,{border:!1,title:"姓名:",value:null===(e=r.value)||void 0===e?void 0:e.receiverName},null),c(j,{border:!1,title:"手机号:",value:null===(n=r.value)||void 0===n?void 0:n.receiverPhone},null),c(j,{class:K,border:!1,title:"地址:",value:null===(t=r.value)||void 0===t?void 0:t.address_data},null),c(j,{class:K,border:!1,title:"物流公司(配送方式):",value:null===(i=r.value)||void 0===i?void 0:i.deliveryCompany},null),c(j,{class:K,border:!1,title:"运单编号:"},{value:function(){var e,n;return c("div",{class:X},[c("span",{style:{marginRight:"8px"}},[null===(e=r.value)||void 0===e?void 0:e.deliverySn]),(null===(n=r.value)||void 0===n?void 0:n.deliverySn)&&c(b,{size:"mini",onClick:function(e){var n,t,i,a,o;t=null===(n=r.value)||void 0===n?void 0:n.deliverySn,a=t.toString(),(o=document.querySelector("#copy-input"))||((o=document.createElement("input")).id="copy-input",o.readOnly=!0,o.style.position="absolute",o.style.left="-1000px",o.style.zIndex="-1000",null===(i=document.querySelector("#input-copy-container"))||void 0===i||i.appendChild(o)),o.value=a,function(e,n,t){if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveStart("character",n),r.moveEnd("character",t-n),r.select()}else e.setSelectionRange(n,t),e.focus()}(o,0,a.length),console.log(document.execCommand("copy"),"execCommand"),document.execCommand("copy")&&(document.execCommand("copy"),w("复制成功")),o.blur()}},{default:function(){return[y("点击复制")]}})])}})]}}),c("div",{id:"input-copy-container"},null)]),i.value.length>0&&c("div",{class:G,style:{padding:0}},[c(P,{title:"物流信息",border:!1},{default:function(){return[c(Q,{direction:"vertical",active:0,activeColor:"var(--van-primary)"},(e=d=i.value.map((function(e){return c(W,null,{default:function(){return[c("h3",{class:J},[e.context]),c("p",{class:V},[x(e.time,"YYYY-MM-DD HH:mm")])]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!z(e)?d:{default:function(){return[d]}}))];var e}})])]),2===r.value.status&&c(A,{position:"bottom",background:"white"},{default:function(){return[c("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[c(b,{block:!0,round:!0,type:"primary",onClick:function(){l(r.value)}},{default:function(){return[y("确认收货")]}})])]}})]):null])}}}))}}}))}();
|