pages-me-order-orderdetail.d79ff327.js
4.1 KB
import{p as e,s as t,q as l,o as a,c as s,w as o,u as d,v as r,D as i,f as n,g as u,t as c,E as p,e as f,H as _,F as m,J as g,K as h,k as x,Q as y}from"./index-705f6634.js";import{_ as b}from"./load.bae1f994.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const w=""+new URL("status1-614d9b29.png",import.meta.url).href,F=v({__name:"orderdetail",setup(v){let F=e("");const k=e=>{var t=d();console.log("eeeeeeee",e),r.$api.user.orderinfo({store_id:t.store_id,id:e}).then((e=>{console.log("res",e),V[0]=e.data}))};t((e=>{console.log("e",e),F=e.id,k(e.id)}));const C=()=>{var e=d();r.$api.user.updateorder({id:F,store_id:e.store_id,name:V[0].name,phone:V[0].phone}).then((e=>{g({title:e.msg,duration:1e3,icon:"none"})}))};let V=l([{}]);l([]);let B=()=>{k(F)};return(e,t)=>{const l=i,d=h,r=x,g=y;return a(),s(l,{class:""},{default:o((()=>[n(l,{class:"content"},{default:o((()=>[n(l,{class:"list"},{default:o((()=>[n(l,{class:"listItem"},{default:o((()=>[n(l,{class:""},{default:o((()=>[u(" 订单编号:"+c(p(V)[0].order_no),1)])),_:1}),n(l,{class:"",style:{"margin-top":"20rpx",display:"flex","align-items":"center"}},{default:o((()=>[n(l,{class:""},{default:o((()=>[n(d,{src:p(V)[0].image,mode:"",style:{width:"144rpx",height:"144rpx","border-radius":"8rpx","margin-right":"24rpx"}},null,8,["src"])])),_:1}),n(l,{class:""},{default:o((()=>[n(l,{class:"title"},{default:o((()=>[u(c(p(V)[0].title),1)])),_:1}),n(l,{class:"money"},{default:o((()=>[n(r,{style:{"font-weight":"400"}},{default:o((()=>[u("¥")])),_:1}),u(" "+c(p(V)[0].price),1)])),_:1}),n(l,{class:""},{default:o((()=>[u(" 购买时间 : "+c(p(V)[0].paytime||"暂无"),1)])),_:1})])),_:1})])),_:1}),n(l,{class:"flex",style:{"margin-top":"10rpx"}},{default:o((()=>[n(l,{class:""},{default:o((()=>[u(" 购买人: ")])),_:1}),n(l,{class:""},{default:o((()=>[u(c(p(V)[0].name),1)])),_:1})])),_:1}),n(l,{class:"flex"},{default:o((()=>[n(l,{class:""},{default:o((()=>[u(" 联系电话: ")])),_:1}),n(l,{class:""},{default:o((()=>[u(c(p(V)[0].phone),1)])),_:1})])),_:1})])),_:1})])),_:1}),n(l,{class:"changeipt"},{default:o((()=>[n(l,{class:"iptleft"},{default:o((()=>[u(" 姓名 ")])),_:1}),n(l,{class:"values"},{default:o((()=>[n(g,{type:"text",modelValue:p(V)[0].name,"onUpdate:modelValue":t[0]||(t[0]=e=>p(V)[0].name=e),onBlur:C},null,8,["modelValue"])])),_:1})])),_:1}),n(l,{class:"changeipt"},{default:o((()=>[n(l,{class:"iptleft"},{default:o((()=>[u(" 联系电话 ")])),_:1}),n(l,{class:"values"},{default:o((()=>[n(g,{type:"text",modelValue:p(V)[0].phone,"onUpdate:modelValue":t[1]||(t[1]=e=>p(V)[0].phone=e),onBlur:C},null,8,["modelValue"])])),_:1})])),_:1}),n(l,{class:"changeipt",style:{"justify-content":"center","box-sizing":"border-box",height:"80rpx"}},{default:o((()=>[n(l,{class:"",onClick:p(B),style:{"font-size":"28rpx","font-family":"Noto Sans SC-Regular, Noto Sans SC","font-weight":"400",color:"#1F78FF","line-height":"44rpx"}},{default:o((()=>[u(" 更新信息 ")])),_:1},8,["onClick"]),n(l,{class:"",style:{width:"32rpx",height:"32rpx","margin-left":"16rpx"},onClick:p(B)},{default:o((()=>[n(d,{src:b,mode:"",style:{width:"100%",height:"100%"}})])),_:1},8,["onClick"])])),_:1}),(a(!0),f(m,null,_(p(V)[0].receive,(e=>(a(),s(l,{class:"",style:{"background-color":"#FBFBFB",padding:"4rpx","box-sizing":"border-box","margin-top":"24rpx",display:"flex","align-items":"center",height:"136rpx",position:"relative"}},{default:o((()=>[n(l,{class:"price"},{default:o((()=>[n(r,null,{default:o((()=>[u("¥")])),_:1}),u(" "+c(e.reduction),1)])),_:2},1024),n(l,{class:"",style:{"border-left":"2rpx dashed #E1E6F5",height:"100%","padding-left":"24rpx"}},{default:o((()=>[n(l,{class:"",style:{padding:"20rpx 0"}},{default:o((()=>[n(l,{class:"name"},{default:o((()=>[u(c(e.name),1)])),_:2},1024),n(l,{class:"date"},{default:o((()=>[u(" 有效期至 "+c(e.closetime),1)])),_:2},1024)])),_:2},1024),n(l,{class:"",style:{position:"absolute",right:"0",bottom:"0"}},{default:o((()=>[n(d,{src:w,mode:"",style:{width:"160rpx",height:"120rpx",float:"right"}})])),_:1})])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1})}}},[["__scopeId","data-v-c5e84e9d"]]);export{F as default};