acdr-ui/dist/build/mp-weixin/pages/order/take.js

2 lines
1.3 KiB
JavaScript

"use strict";var e=(e,r,t)=>new Promise(((s,a)=>{var o=e=>{try{i(t.next(e))}catch(r){a(r)}},d=e=>{try{i(t.throw(e))}catch(r){a(r)}},i=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,d);i((t=t.apply(e,r)).next())}));const r=require("../../common/vendor.js"),t=require("../../utils/http.js");if(!Array){r.resolveComponent("layout-default-uni")()}Math||s();const s=()=>"./components/OrderItem.js",a={__name:"take",setup(s){const a=r.ref([]),o=()=>e(this,null,(function*(){yield d()})),d=()=>e(this,null,(function*(){try{const e=yield t.httpPost("/order/ptOrdersInfo");200===e.code&&(a.value=e.records)}catch(e){}}));return r.onMounted((()=>{d()})),(e,t)=>r.e({a:r.f(a.value,((e,t,s)=>({a:e.id,b:r.o(o,e.id),c:"3d7d983b-1-"+s+",3d7d983b-0",d:r.p({id:e.id,userId:e.userId,reservationTime:e.reservationTime,serviceHours:e.serviceHours,personalServiceId:e.personalServiceId,personalServiceUserId:e.personalServiceUserId,price:e.price,isPay:e.isPay,feedback:e.feedback,star:e.star,state:e.state,paymentMethod:e.paymentMethod,qrcode:e.qrcode,createTime:e.createTime,updateTime:e.updateTime,address:e.address,pet:e.pet,user:e.user,psUser:e.psUser,serviceInfo:e.serviceInfo,isTake:!0}),e:e.id}))),b:0===a.value.length},(a.value.length,{}))}},o=r._export_sfc(a,[["__scopeId","data-v-3d7d983b"]]);wx.createPage(o);