| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <view class="payResult">
- <u-icon name="checkmark-circle-fill" :color="vuex_theme.bgColor" style="margin-top: 50rpx;" size="100"></u-icon>
- <view>订单支付成功</view>
- <u-button shape="circle" :custom-style="customStyle" style="margin-top: 50rpx;" @click="goback">返回</u-button>
- </view>
- </template>
- <script>
- let goldPlan = require('@/utils/jgoldplan-1.0.0.js');
- export default {
- data() {
- return {
- customStyle: {
- color: 'white',
- background: "#E72226",
- width: '200rpx',
- margin: '10rpx',
- height:"60rpx",
- fontSize:"26rpx"
- }
- }
- },
- onLoad(options) {
- console.log("商品小票",options)
- this.customStyle.background = this.vuex_theme.bgColor;
- },
- onReady() {
- let mchData = {
- action: 'onIframeReady',
- displayStyle: 'SHOW_CUSTOM_PAGE'
- };
- let postData = JSON.stringify(mchData);
- parent.postMessage(postData, 'https://payapp.weixin.qq.com');
- },
-
- methods: {
- goback() {
- let mchData = {
- action: 'jumpOut',
- jumpOutUrl: 'https://vote.guosen-fumao.cn/h5/#/pages/activity/activityDetail' //跳转的页面
- }
- var postData = JSON.stringify(mchData);
- parent.postMessage(postData, 'https://payapp.weixin.qq.com')
- }
- }
- }
- </script>
- <style lang="scss">
- .payResult{
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- </style>
|