pifa
fanfan 7 months ago
parent a1450ef0aa
commit 5ff18211c8
  1. 12
      api/tutorial.js
  2. 3
      pages/gamll/index.vue

@ -7,7 +7,8 @@ const api = {
retailList: 'retail/retailPayList', retailList: 'retail/retailPayList',
describe: 'retail/describe', describe: 'retail/describe',
submit: 'retail/submit', submit: 'retail/submit',
getSoftAgreement: 'retail/getSoftAgreement' getSoftAgreement: 'retail/getSoftAgreement',
tradeQuery: 'retail/tradeQuery',
} }
// 分类 // 分类
@ -30,6 +31,15 @@ export const describe = (param) => {
export const submit = (param) => { export const submit = (param) => {
return request.post(api.submit, param) return request.post(api.submit, param)
} }
/**
* 交易查询
* 查询第三方支付订单是否付款成功
* @param {Object} param
*/
export function tradeQuery(param) {
return request.get(api.tradeQuery, param)
}
// 协议 // 协议
export const getSoftAgreement = (param) => { export const getSoftAgreement = (param) => {
return request.get(api.getSoftAgreement, param) return request.get(api.getSoftAgreement, param)

@ -203,7 +203,6 @@
</template> </template>
<script> <script>
import * as api from '@/api/tutorial' import * as api from '@/api/tutorial'
import * as CashierApi from '@/api/cashier';
import { import {
Wechat Wechat
} from '@/core/payment' } from '@/core/payment'
@ -332,7 +331,7 @@
const app = this const app = this
// //
// //
CashierApi.tradeQuery({ api.tradeQuery({
outTradeNo, outTradeNo,
method, method,
client: app.platform client: app.platform

Loading…
Cancel
Save