"use strict";var e=require("../common/vendor.js"),r=require("../api/packageOrder.js");require("../common/request.js");const d={data:()=>({order:null}),onLoad(r){e.index.setNavigationBarTitle({title:"支付结果"}),e.index.$emit("refreshPackageOrder"),this.orderId=r.orderId,this.getPackageOrderById()},methods:{getPackageOrderById(){var d={orderId:this.orderId},o=this;e.index.showLoading(),r.getPackageOrderById(d).then((r=>{e.index.hideLoading(),200==r.code?o.order=r.order:e.index.showToast({icon:"none",title:r.msg})}),(e=>{}))},copyTest(r){e.index.setClipboardData({data:r,success:()=>{e.index.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})},showOrderDetails(r){console.log(r),e.index.redirectTo({url:"/pages_order/packageOrderDetails?orderId="+r})}}};var o=e._export_sfc(d,[["render",function(r,d,o,t,a,i){return{a:e.o((e=>i.showOrderDetails(a.order.orderId))),b:e.t(a.order.orderSn),c:e.o((e=>i.copyTest(a.order.orderSn))),d:e.t(a.order.payMoney.toFixed(2)),e:e.t(a.order.createTime)}}]]);wx.createPage(o);
