integralOrderPaySuccess.js 1017 B

1
  1. "use strict";var e=require("../common/vendor.js"),r=require("../api/integral.js");require("../common/request.js");const d={data:()=>({order:null}),onLoad(r){e.index.setNavigationBarTitle({title:"支付结果"}),e.index.$emit("refreshStoreOrder"),this.orderId=r.orderId,this.getIntegralOrderById()},methods:{getIntegralOrderById(){var d={orderId:this.orderId},o=this;e.index.showLoading(),r.getIntegralOrderById(d).then((r=>{e.index.hideLoading(),200==r.code?o.order=r.data: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:"./integralOrderDetails?orderId="+r})}}};var o=e._export_sfc(d,[["render",function(r,d,o,t,i,n){return{a:e.o((e=>n.showOrderDetails(i.order.orderId))),b:e.t(i.order.orderCode),c:e.o((e=>n.copyTest(i.order.orderCode))),d:e.t(i.order.integral),e:e.t(i.order.createTime)}}]]);wx.createPage(o);