pages-me-order-order.32200198.js
3.3 KB
import{p as e,s as a,u as t,v as s,q as l,o as r,c as d,w as i,y as o,f as c,z as n,a9 as u,e as p,B as m,F as f,D as _,M as h,g,t as x,G as y,k as b}from"./index-1ed79590.js";import{_ as v}from"./search.e26093d7.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";const C=w({__name:"order",setup(w){let C=e("");a((()=>{var e=t();s.$api.user.selectorder({store_id:e.store_id,keyfield:""}).then((e=>{B.arr=e.data.data}))}));const k=()=>{console.log("iptvalue",C._value);var e=t();s.$api.user.selectorder({store_id:e.store_id,keyfield:C._value}).then((e=>{B.arr=e.data.data}))};let B=l({arr:[{code:"123456781618945618465",price:"99.8",title:"保养服务汽车换油保养",date:"2023-05-25",name:"藤桑",mobile:"131 **** 1234",image:"https://ts2.cn.mm.bing.net/th?id=OIP-C.CBVSpfxuQh3Orij183tBWgHaEB&w=338&h=184&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"},{code:"123456781618945618465",price:"99.8",title:"保养服务汽车换油保养",date:"2023-05-25",name:"藤桑",mobile:"131 **** 1234",image:"https://ts3.cn.mm.bing.net/th?id=OIP-C.uVfnEWRRuZuXkGE86-NGHgHaEW&w=326&h=191&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"},{code:"123456781618945618465",price:"99.8",title:"保养服务汽车换油保养",date:"2023-05-25",name:"藤桑",mobile:"131 **** 1234",image:"https://ts1.cn.mm.bing.net/th?id=OIP-C.ASJfoomQK8-kjf68G7XxuwHaFb&w=292&h=213&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"}]});return(e,a)=>{const t=_,s=h,l=o,w=b;return r(),d(l,{class:""},{default:i((()=>[c(l,{class:"content"},{default:i((()=>[c(l,{class:"iptbox"},{default:i((()=>[c(t,{src:v,mode:"",style:{width:"40rpx",height:"40rpx","margin-right":"24rpx"}}),c(s,{type:"text",placeholder:"请输入关键字进行搜索",modelValue:n(C),"onUpdate:modelValue":a[0]||(a[0]=e=>u(C)?C.value=e:C=e),style:{width:"80%"},"placeholder-style":"color:#ABB4CC;font-size:28rpx;",onInput:k},null,8,["modelValue"])])),_:1}),(r(!0),p(f,null,m(n(B).arr,(e=>(r(),d(l,{class:"listItem"},{default:i((()=>[c(l,{class:""},{default:i((()=>[g(" 订单编号:"+x(e.order_no),1)])),_:2},1024),c(l,{class:"",style:{"margin-top":"20rpx",display:"flex","align-items":"center"}},{default:i((()=>[c(l,{class:""},{default:i((()=>[c(t,{src:e.image,mode:"",style:{width:"144rpx",height:"144rpx","border-radius":"8rpx","margin-right":"24rpx"}},null,8,["src"])])),_:2},1024),c(l,{class:""},{default:i((()=>[c(l,{class:"title"},{default:i((()=>[g(x(e.title),1)])),_:2},1024),c(l,{class:"money"},{default:i((()=>[c(w,{style:{"font-weight":"400"}},{default:i((()=>[g("¥")])),_:1}),g(" "+x(e.price),1)])),_:2},1024),c(l,{class:""},{default:i((()=>[g(" 购买时间 : "+x(e.paytime||"暂无"),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),c(l,{class:"flex",style:{"margin-top":"10rpx"}},{default:i((()=>[c(l,{class:""},{default:i((()=>[g(" 购买人: ")])),_:1}),c(l,{class:""},{default:i((()=>[g(x(e.name),1)])),_:2},1024)])),_:2},1024),c(l,{class:"flex"},{default:i((()=>[c(l,{class:""},{default:i((()=>[g(" 联系电话: ")])),_:1}),c(l,{class:""},{default:i((()=>[g(x(e.phone),1)])),_:2},1024)])),_:2},1024),c(l,{class:"btm"},{default:i((()=>[c(l,{class:"btn",onClick:a=>{return t=e,console.log("e",t.id),void y({url:"/pages/me/order/orderdetail?id="+t.id});var t}},{default:i((()=>[g(" 编辑 ")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1})}}},[["__scopeId","data-v-a81d94d0"]]);export{C as default};