acdr-ui/dist/build/mp-weixin/modules/pet/order/order-detail.js
2024-10-01 09:15:35 +08:00

2 lines
1.4 KiB
JavaScript

"use strict";const e=require("../../../common/vendor.js"),t=require("../../../utils/commUtils.js"),a=require("../../../utils/http.js");if(!Array){e.resolveComponent("layout-default-uni")()}const r={__name:"order-detail",setup(r){const s=e.ref(null);return e.onLoad((e=>{return r=this,l=null,u=function*(){const r=e.id;try{const e=yield a.httpGet(`/order/info/${r}`);200===e.code?s.value=e.data:t.toast("获取订单详情失败 "+e.message)}catch(l){t.toast("请求失败")}},new Promise(((e,t)=>{var a=e=>{try{o(u.next(e))}catch(a){t(a)}},s=e=>{try{o(u.throw(e))}catch(a){t(a)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,s);o((u=u.apply(r,l)).next())}));var r,l,u})),(a,r)=>e.e({a:s.value},s.value?e.e({b:e.t(s.value.serviceInfo.serviceName),c:e.t(s.value.state),d:e.t(s.value.serviceInfo.type),e:e.t(s.value.serviceInfo.address),f:e.t(s.value.reservationTime),g:e.t(s.value.serviceHours),h:e.unref(t.imgUrl)(s.value.pet.profileUrl),i:e.t(s.value.pet.name),j:e.t(s.value.pet.breed),k:e.t(s.value.user.nickname),l:e.t(s.value.user.mobile),m:e.t(s.value.address.province),n:e.t(s.value.address.city),o:e.t(s.value.address.district),p:e.t(s.value.address.detailAddress),q:e.t(s.value.paymentMethod),r:e.t(s.value.isPay?"已支付":"未支付"),s:e.t(s.value.price),t:s.value.qrcode},s.value.qrcode?{v:e.unref(t.imgUrl)(s.value.qrcode)}:{}):{})}},s=e._export_sfc(r,[["__scopeId","data-v-8be7f793"]]);wx.createPage(s);