PageSourceSearch

https://snapbox.ai/assets/ShoppingOrderInquire-Dyc1MZkd.js

js snapbox.ai collected 2026-10-05 12:40:27 UTC 3,227 bytes, 1 lines download raw bytes

1import{_ as g,m as b,o as h,p as w,c as d,b as t,h as v,w as c,q as m,t as p,i as _,F as y,z as k,u as O,j as B,g as l}from"./index-GRB8Jcml.js";import{T}from"./top-DaACZfYm.js";import{S as f}from"./ShoppingService-C2Pshse4.js";import"./ContentsService-DKa2qyOq.js";const I={name:"ShoppingOrderInquire",components:{TOP:T},setup(){const e=b({order_id:"",order_item_id:"",title:"",contents:"",answer:"",answered_at:"",id:"",is_submitting:!1}),o=k(),a=O();e.order_item_id=o.params.order_item_id;const r=()=>{const n=o.query.from;if(n){a.push("/shopping-order-info/"+n);return}if(window.history.length>1){a.go(-1);return}a.push("/shopping-orders")};let u=()=>{if(e.id)alert("이미 반품 문의가 접수되었습니다.");else{if(e.title==""){alert("제목을 입력해 주세요.");return}if(e.contents==""){alert("내용을 입력해 주세요.");return}if(e.is_submitting)return;e.is_submitting=!0;let n={order_item_id:e.order_item_id,title:e.title,contents:e.contents};console.log(n),f.orderInquire(n).then(s=>{s.data.code=="S"?(alert("반품 문의가 접수되었습니다."),r()):(alert(s.data.message),e.is_submitting=!1)}).catch(s=>{console.log(s),e.is_submitting=!1})}};return h(()=>{console.log("mounted!"),f.orderInquires(e.order_item_id).then(n=>{let s=n.data;console.log(s),s.id&&(e.id=s.id,e.title=s.title,e.contents=s.contents,e.answer=s.answer||"",e.answered_at=s.answered_at||"",document.getElementById("title").readOnly=!0,document.getElementById("contents").readOnly=!0)}).catch(n=>{console.log(n)})}),{...w(e),goBackToOrder:r,submit:u}}},q={class:"header header_color",id:"main_header"},S={class:"ai_shop flex flex-col justify-between"},C={class:"ai_shop_ordercancle ai_shop_refund"},V={key:0,class:"answer-box"},j={class:"answer-text"},x={key:0,class:"answer-date"},E={class:"ai_shop_cart_button"},N=["disabled"];function P(e,o,a,r,u,n){const s=B("TOP");return l(),d(y,null,[t("div",q,[v(s)]),t("section",null,[t("div",S,[t("button",{type:"button",class:"cs-back-btn",onClick:o[0]||(o[0]=(...i)=>r.goBackToOrder&&r.goBackToOrder(...i))},o[4]||(o[4]=[t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t("polyline",{points:"15 18 9 12 15 6"})],-1),t("span",null,"주문내역으로",-1)])),o[6]||(o[6]=t("h1",null,"반품 문의",-1)),t("div",C,[t("div",null,[c(t("input",{type:"text",placeholder:"제목을 입력해 주세요.",style:{width:"calc(100% - 2px)"},"onUpdate:modelValue":o[1]||(o[1]=i=>e.title=i),id:"title"},null,512),[[m,e.title]])]),t("div",null,[c(t("textarea",{placeholder:"반품 원하시는 상품명과 사유를 정확히 기재해 주세요.","onUpdate:modelValue":o[2]||(o[2]=i=>e.contents=i),id:"contents"},null,512),[[m,e.contents]])])]),e.answer?(l(),d("div",V,[o[5]||(o[5]=t("div",{class:"answer-label"},"판매자 답변",-1)),t("div",j,p(e.answer),1),e.answered_at?(l(),d("div",x,p(e.answered_at),1)):_("",!0)])):_("",!0)]),t("div",E,[t("div",null,[t("button",{type:"button",disabled:e.is_submitting,onClick:o[3]||(o[3]=(...i)=>r.submit&&r.submit(...i))}," 반품 문의 ",8,N)])])])],64)}const U=g(I,[["render",P],["__scopeId","data-v-b5e1071b"]]);export{U as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.