"use strict";var e=require("../common/vendor.js"),r=require("../api/packageOrder.js");require("../common/request.js");const o={data:()=>({orderId:null,order:{},package:null,items:[]}),onLoad(e){this.orderId=e.orderId,this.getPackageOrderById()},onShow(){},methods:{getPackageOrderById(){var o={orderId:this.orderId};r.getCompanyUserPackageOrderById(o).then((r=>{200==r.code?(this.order=r.order,this.package=JSON.parse(this.order.packageJson)):e.index.showToast({icon:"none",title:"请求失败"})}))},pay(){e.index.navigateTo({url:"/pages_order/packageOrderPay?orderId="+this.order.orderId})},back(){let r=getCurrentPages();console.log(r.length),r.length>1?e.index.navigateBack():e.index.reLaunch({url:"/pages/common/launch"})},copyOrderSn(r){e.index.setClipboardData({data:r,success:()=>{e.index.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})}}};var a=e._export_sfc(o,[["render",function(r,o,a,d,t,n){return e.e({a:1==t.order.status},(t.order.status,{}),{b:2==t.order.status},(t.order.status,{}),{c:3==t.order.status},(t.order.status,{}),{d:-1==t.order.status},(t.order.status,{}),{e:-2==t.order.status},(t.order.status,{}),{f:t.package.imgUrl,g:e.t(t.package.packageName),h:e.t(t.package.cycle),i:e.t(t.package.duration),j:e.t(t.order.orderSn),k:e.o((e=>n.copyOrderSn(t.order.orderSn))),l:e.t(t.order.createTime),m:1==t.order.payType},(t.order.payType,{}),{n:2==t.order.payType},(t.order.payType,{}),{o:3==t.order.payType},(t.order.payType,{}),{p:null!=t.order.payPrice},null!=t.order.payPrice?{q:e.t(t.order.payPrice.toFixed(2))}:{},{r:null!=t.order.payMoney},null!=t.order.payMoney?{s:e.t(t.order.payMoney.toFixed(2))}:{},{t:null!=t.order.discountMoney},null!=t.order.discountMoney?{v:e.t(t.order.discountMoney.toFixed(2))}:{},{w:null!=t.order.payRemain},null!=t.order.payRemain?{x:e.t(t.order.payRemain.toFixed(2))}:{},{y:null!=t.order.payDelivery},null!=t.order.payDelivery?{z:e.t(t.order.payDelivery.toFixed(2))}:{},{A:e.t(t.order.payTime)})}]]);wx.createPage(a);
