Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-17 13:52:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ea79fb94cceffd9bd23f16b49ffc08c1e36cd39
7ea79fb9
1 parent
caf1f84c
✨ feat: 微信支付成功后,回调页面获取金额和ID
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
src/views/client/wechatpayCallback.vue
src/views/client/wechatpayCallback.vue
View file @
7ea79fb
<!--
* @Date: 2022-04-27 10:08:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-17 13:50:54
* @FilePath: /tswj/src/views/client/wechatpayCallback.vue
* @Description: 微信支付成功后回调
-->
<template>
<div class="wechatpay-callback-page">
<div class="pay-success">
...
...
@@ -20,21 +27,18 @@
<script setup>
import MyButton from '@/components/MyButton/index.vue'
import icon_wechatpay from '@images/zhifu@2x.png'
import { ref,
reactive,
onMounted } from 'vue'
import { ref, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import $ from 'jquery'
import { Toast } from 'vant';
const $route = useRoute();
const $router = useRouter();
// TODO: 微信支付成功后回调
const amount = ref(50)
const amount = ref(0)
onMounted(() => {
// 捐赠金额
amount.value = $route.query.amount
})
//
TODO:
需要获取 donate_id
// 需要获取 donate_id
// 跳转到捐赠证书页面,替换掉当前页面,不能返回这个页面
const getCert = () => {
$router.replace({
...
...
Please
register
or
login
to post a comment