123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <template>
- <div class="page-box">
- <div class="container">
- 小票
- <div class="img-wrapper">
- <img class="img-inner" />
- </div>
- <div style="padding: .4267rem 0;">xxxx有限公司</div>
- <div class="list-style">
- <div class="title">订单状态</div>
- <div class="detail"></div>
- </div>
- <div class="list-style">
- <div class="title">订单尾号</div>
- <div class="detail"></div>
- </div>
- <div class="line-style"></div>
- <div class="list-style">
- <div class="title">支付总额</div>
- <div class="detail"></div>
- </div>
- <div class="list-style" style="justify-content: center;">
- <div class="button-style" @click="goBack">
- 返回首页
- </div>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import { ref, onMounted } from 'vue';
- import axios from 'axios';
- import 'https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js';
- const logo = ref('./imgs/logo.png');
- const order = ref({});
- const result = ref({});
- const url = ref('https://payapp.weixin.qq.com');
-
- onMounted(() => {
- getQueryVal();
- if (!result.value.out_trade_no) {
- parent.alert('没有订单号,请联系管理员!');
- } else {
- queryOrderInfo();
- }
- showCustomPage();
- });
-
- const getQueryVal = () => {
- const queryStr = window.location.search.substring(1);
- const strArr = queryStr.split('&');
- if (strArr.length) {
- strArr.forEach((val) => {
- const subStrArr = val.split('=');
- result.value[subStrArr[0]] = subStrArr[1];
- });
- }
- };
-
- const showCustomPage = () => {
- const customData = JSON.stringify({
- action: 'onIframeReady',
- displayStyle: 'SHOW_CUSTOM_PAGE',
- height: 900
- });
- parent.postMessage(customData, url.value);
- };
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </script>
- <style scoped>
- </style>
|