PageSourceSearch

https://snapbox.ai/assets/ProjectConfirm-RqoCTaVl.js

js snapbox.ai collected 2026-10-05 12:39:48 UTC 7,824 bytes, 1 lines download raw bytes

1import{_ as R,m as T,o as H,p as w,c as E,b as o,h as L,w as p,v as f,t as a,e as u,s as Y,F as D,u as I,z as O,E as k,j as K,g as N}from"./index-GRB8Jcml.js";import{F as v}from"./FeedService-BHTl8Qoy.js";import{U as B}from"./UserService-B39Vk0W_.js";import{T as F}from"./top-DaACZfYm.js";import{S as U}from"./ProjectService-D4SUTVU4.js";import{_ as C}from"./bootpay-Cq7F2cVP.js";import"./ContentsService-DKa2qyOq.js";const V={name:"ProjectConfirm",components:{TOP:F},setup(){const n=I();let y=O().params,s=y.link_id,b=y.promotion_id;const l=T({user:{link_id:"",nickname:""},my:{name:"",email:"",phone:""},promotion:{id:"",type:"",display:"",detail:""},common:{alert_display:!1,alert_msg:"",is_confirm:!1,confirm_url:""},project:{order_id:"",created_at:"",receipt_url:""},tab:0,rule_check:!1});let d=()=>{v.promotionInfo(s).then(e=>{console.log(e),e.data.forEach(c=>{c.id==b&&(l.promotion=c)}),l.promotion.id||n.go("-1"),console.log(l.promotion)}).catch(e=>{console.log(e)})},i=()=>{v.info(s).then(e=>{l.user=e.data,console.log(l.user.link_id),console.log(l.user.nickname)}).catch(e=>{console.log(e)})},h=()=>{window.open(l.project.receipt_url,"_blank")},_=()=>{B.myinfo().then(e=>{console.log(e),e.status==200&&(l.my=e.data,console.log(l.my))}).catch(e=>{console.log(e)})},j=()=>
1{if(l.common.is_confirm==!1)return l.common.alert_display=!1,!1;if(l.common.is_confirm&&l.common.confirm_url=="pay"){let c=k().format("YYMMDDHHmm"),S=Math.floor(1e4+Math.random()*9e4),$=c+""+S;var e=l.promotion.display,g=l.promotion.id;C.request({price:e,application_id:"62b12e8de38c3000215aeae2",name:"스냅박스 "+s+" "+l.promotion.type,pg:"nicepay",method:"",show_agree_window:0,items:[{item_name:"스냅박스 "+s+" "+l.promotion.type,qty:1,unique:g+"",price:e,cat1:"membership",cat2:l.promotion.type}],user_info:{username:l.my.name,email:l.my.email,phone:l.my.phone},order_id:$,params:{callback1:"그대로 콜백받을 변수 1",callback2:"그대로 콜백받을 변수 2",customvar1234:"변수명도 마음대로"},extra:{}}).error(function(r){console.log(r)}).cancel(function(r){console.log(r),l.common.alert_display=!1}).ready(function(r){console.log(r)}).confirm(function(r){console.log(r),C.transactionConfirm(r)}).close(function(r){console.log(r),l.common.alert_display=!1}).done(function(r){console.log(r);let P={target:s,type:l.promotion.type,receipt_id:r.receipt_id,price:r.price,order_id:r.order_id};U.payProject(P).then(m=>{console.log(m),m.status==200&&(l.project.created_at=k(m.data.created_at).format("YYYY-MM-DD HH:mm:ss"),l.project.order_id=m.data.order_id,l.project.receipt_url=m.data.receipt_url,l.tab=1)}).catch(m=>{console.log(m)})})}},M=()=>{if(l.rule_check==!1)return l.common.alert_display=!0,l.common.alert_msg="결제안내에 동의해주세요.",l.common.is_confirm=!1,!1;l.common.alert_display=!0,l.common.alert_msg="결제하시겠습니까?",l.common.is_confirm=!0,l.common.confirm_url="pay"};return H(()=>{console.log("mounted!"),i(),_(),d()}),{...w(l),clickConfirm:j,userInfo:i,myinfo:_,promotionInfo:d,clickPay:M,openLink:h}}},G={class:"header",id:"main_header"},q={class:"inner"},A={class:"table_service mt0"},z={class:"price"},J=["innerHTML"],Q={class:"pay_rule"},W={class:"btn_area"},X={class:"inner pt60"},Z={class:"pay_service02"},x={class:"listtable"},oo=["innerHTML"],to={class:"btn_area"},lo={class:"pay_footer"},no={class:"popup_layer"},eo={class:"alert"},io={class:"msg"},ro={class:"btn_area"};function so(n,t,y,s,b,l){const d=K("TOP");return N(),E(D,null,[o("div",G,[L(d)]),o("section",null,[o("div",q,[p(o("div",null,[t[13]||(t[13]=o("div",{class:"subtitle"},[o("h1",null,"프로젝트 신청하기")],-1)),o("div",A,[o("table",null,[o("tbody",null,[o("tr",null,[o("th",null,a(n.user.nickname)+"("+a(n.user.link_id)+") - "+a(n.promotion.type?n.promotion.type.toUpperCase():""),1)]),o("tr",null,[o("td",null,[o("p",z,a(n.promotion.display?n.promotion.display.toLocaleString("ko-KR"):0)+"원 ",1),o("pre",{class:"txt",innerHTML:n.promotion.detail},null,8,J)])])])])]),o("div",Q,[t[12]||(t[12]=o("div",{class:"txt"},[u(" 1.프로젝트 결제는 크리에이터와 메시지를 통해 소통 후 진행하는 것이 가장 좋습니다. "),o("br"),o("br"),u(" 2.크리에이터가 프로젝트를 승인한 이후에는 결제를 취소 할 수 없습니다."),o("br"),o("br"),u(" 3.24시간 내에 크리에이터가 프로젝트를 승인 하지 않을 경우 결제가 취소됩니다."),o("br"),o("br"),u(" 4.크리에이터와의 프로젝트 진행 시 발생하는 문제에 대해서 스냅박스는 책임을 지지 않습니다. ")],-1)),o("p",null,[p(o("input",{type:"checkbox",id:"rule_check","onUpdate:modelValue":t[0]||(t[0]=i=>n.rule_check=i)},null,512),[[Y,n.rule_check]]),t[11]||(t[11]=o("label",{for:"rule_check"},"안내를 모두 확인하였으며, 내용에 동의합니다.",-1))])]),o("div",W,[o("button",{type:"button",class:"btn_cancel",onClick:t[1]||(t[1]=i=>this.$router.go(-1))}," 취소 "),o("button",{type:"button",class:"btn_save",style:{"margin-left":"5px"},onClick:t[2]||(t[2]=i=>s.clickPay())}," 프로젝트 결제 ")])],512),[[f,n.tab==0]]),p(o("div",X,[o("div",Z,[o("h2",null,[t[14]||(t[14]=u(" 프로젝트번호 ")),o("span",null,a(n.project.order_id),1),t[15]||(t[15]=o("br",null,null,-1)),t[16]||(t[16]=u("신청이 완료되었습니다. "))]),o("div",x,[o("table",null,[t[21]||(t[21]=o("colgroup",null,[o("col",{width:"100px"}),o("col",{width:"auto"})],-1)),o("tbody",null,[o("tr",null,[t[17]||(t[17]=o("th",null,"프로젝트번호",-1)),o("td",null,a(n.project.order_id),1)]),o("tr",null,[t[18]||(t[18]=o("th",null,"결제일",-1)),o("td",null,a(n.project.created_at),1)]),o("tr",null,[t[19]||(t[19]=o("th",null,"결제금액",-1)),o("td",null,a(n.promotion.display?n.promotion.display.toLocaleStr
1ing("ko-KR"):0)+"원 ",1)]),o("tr",null,[t[20]||(t[20]=o("th",null,"크리에이터",-1)),o("td",null,[o("a",{style:{cursor:"pointer"},onClick:t[3]||(t[3]=i=>this.$router.push("/"+n.user.link_id))},a(n.user.nickname),1)])])])])]),o("pre",{class:"info",innerHTML:n.promotion.detail},null,8,oo)]),o("div",to,[o("button",{type:"button",class:"btn_save",onClick:t[4]||(t[4]=i=>this.$router.push("/brand"))}," 홈으로 이동 "),o("button",{type:"button",class:"btn_basic btn_round",style:{"margin-left":"5px"},onClick:t[5]||(t[5]=i=>s.openLink())}," 전자영수증 ")])],512),[[f,n.tab==1]])]),o("div",lo,[o("p",null,[o("a",{style:{cursor:"pointer"},onClick:t[6]||(t[6]=i=>this.$router.push("/rule"))},"이용약관"),o("a",{style:{cursor:"pointer"},onClick:t[7]||(t[7]=i=>this.$router.push("/privacy"))},"개인정보처리방침")]),t[22]||(t[22]=o("ul",null,[o("li",null,"상호명: (주)쓰리씨유니버스"),o("li",null,"대표이사: PARK CHAN YOUNG"),o("li",null," 개인정보책임관리자: KIM MI RYEONG ([email protected]) "),o("li",null," 주소: B1, EPISODE Seong Su 121, 22, Ttukseom-ro 3-gil, Seongdong-gu, Seoul, Republic of Korea "),o("li",null,"사업자등록번호 : 688-86-02587"),o("li",null,"통신판매업신고: 2024-서울성동-0361"),o("li",null,"고객센터 : 070-8064-8115"),o("li",null,"이메일: [email protected]"),o("li",null,"COPYRIGHT ⓒ CFYE ALL RIGHT RESERVED")],-1))]),p(o("div",no,[o("div",eo,[o("h1",null,[t[23]||(t[23]=u(" 알림")),o("button",{type:"button",class:"btn_close",onClick:t[8]||(t[8]=i=>n.common.alert_display=!1)}," 닫기 ")]),o("div",io,a(n.common.alert_msg),1),o("div",ro,[p(o("button",{type:"button",class:"btn_basic",onClick:t[9]||(t[9]=i=>n.common.alert_display=!1)}," 취소 ",512),[[f,n.common.is_confirm]]),o("button",{type:"button",class:"btn_basic btn_color_BK",style:{"margin-left":"5px"},onClick:t[10]||(t[10]=(...i)=>s.clickConfirm&&s.clickConfirm(...i))}," 확인 ")])])],512),[[f,n.common.alert_display]])])],64)}const bo=R(V,[["render",so]]);export{bo 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.