"use strict";var r=require("../common/vendor.js"),i=require("../api/integral.js");require("../common/request.js");const t={data(){return{orderId:null,order:null,item:null}},onLoad(o){this.orderId=o.orderId},onShow(){this.getIntegralOrderById()},methods:{getIntegralOrderById(){var o={orderId:this.orderId};i.getIntegralOrderById(o).then(s=>{s.code==200?(this.order=s.data,this.item=JSON.parse(this.order.itemJson)):r.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})})},copyOrderSn(o){r.index.setClipboardData({data:o,success:()=>{r.index.showToast({title:"\u5185\u5BB9\u5DF2\u6210\u529F\u590D\u5236\u5230\u526A\u5207\u677F",icon:"none"})}})}}};function d(o,s,u,m,e,n){return r.e({a:e.order.status==1},e.order.status==1?{}:{},{b:e.order.status==2},e.order.status==2?{}:{},{c:e.order.status==3},e.order.status==3?{}:{},{d:e.order.status==-1},e.order.status==-1?{}:{},{e:e.order.userName!=null},e.order.userName!=null?r.e({f:r.t(e.order.userName),g:e.order.userPhone!=null},e.order.userPhone!=null?{h:r.t(e.order.userPhone)}:{},{i:r.t(e.order.userAddress)}):{},{j:e.item.imgUrl==""?"/static/images/drug.svg":e.item.imgUrl,k:r.t(e.item.goodsName),l:r.t(e.item.integral),m:r.t(e.order.orderCode),n:r.o(c=>n.copyOrderSn(e.order.orderCode)),o:r.t(e.order.createTime),p:r.t(e.order.integral),q:e.order.deliveryName!=null},e.order.deliveryName!=null?{r:r.t(e.order.deliveryName)}:{},{s:e.order.deliverySn!=null},e.order.deliverySn!=null?{t:r.t(e.order.deliverySn)}:{})}var l=r._export_sfc(t,[["render",d],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/integralOrderDetails.vue"]]);wx.createPage(l);
