pages-pay-result.fea6107e.js 1.5 KB

1
  1. import{M as s,Z as t,e as a,k as l,T as e,t as i,u as o}from"./index-2790e0d4.js";import"https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js";import{_ as n}from"./_plugin-vue_export-helper.1b428a4d.js";const c=n({__name:"result",setup(n){s({});const c=s({a:123}),d=s("https://payapp.weixin.qq.com"),p=s("");t((async()=>{await r(),await u()}));const r=()=>{console.log(window.location),p.value=window.location.href.split("?")[1];const s=p.value.split("&");s.length&&s.forEach((s=>{const t=s.split("=");c.value[t[0]]=t[1]}))},u=()=>{console.log("showCustomPage");const s=JSON.stringify({action:"onIframeReady",displayStyle:"SHOW_CUSTOM_PAGE"});parent.postMessage(s,d.value)},v=()=>{const s={action:"jumpOut",jumpOutUrl:`${location.origin}/#/pages/pay/resultYuan`},t=JSON.stringify(s);parent.postMessage(t,d.value)};return(s,t)=>(a(),l("div",{class:"page-box"},[e("div",{class:"container"},[i(" 小票 queryStr:"+o(p.value)+" result:"+o(c.value)+" ",1),e("div",{style:{padding:".4267rem 0"}},"xxxx有限公司"),e("div",{class:"list-style"},[e("div",{class:"title"},"订单状态"),e("div",{class:"detail"})]),e("div",{class:"list-style"},[e("div",{class:"title"},"订单尾号"),e("div",{class:"detail"})]),e("div",{class:"line-style"}),e("div",{class:"list-style"},[e("div",{class:"title"},"支付总额"),e("div",{class:"detail"})]),e("div",{class:"list-style",style:{"justify-content":"center"}},[e("div",{class:"button-style",onClick:v}," 返回首页 ")])])]))}},[["__scopeId","data-v-51f6d017"]]);export{c as default};