提交 9c7d9812 authored 作者: lhh's avatar lhh

修改支付回调地址

上级 60662f4e
...@@ -34,7 +34,7 @@ function handlePay() { ...@@ -34,7 +34,7 @@ function handlePay() {
shop_id: payUrl?.shop_id || '', shop_id: payUrl?.shop_id || '',
spu_id: payUrl?.spu_id || '', spu_id: payUrl?.spu_id || '',
sku_id: payUrl?.sku_id || '', sku_id: payUrl?.sku_id || '',
nUrl: `https://wmpc-show-h5.ezijing.com/v2/index/pay-callback?tenant=wmpc&course_id=${props.shopItem.id}&user_id=${uId}`, nUrl: `https://wmpc-show-h5.ezijing.com/api/psp/v2/index/pay-callback?tenant=wmpc&course_id=${props.shopItem.id}&user_id=${uId}`,
amount: props.shopItem?.prices, amount: props.shopItem?.prices,
type: params.payment_method type: params.payment_method
} }
......
...@@ -36,7 +36,6 @@ export function usePay() { ...@@ -36,7 +36,6 @@ export function usePay() {
notify_url: data.nUrl notify_url: data.nUrl
}) })
const params = Object.assign(defaultParams, options) const params = Object.assign(defaultParams, options)
console.log(params, 'params')
if (wechat.value && params.payment_method === '4') { if (wechat.value && params.payment_method === '4') {
params.payment_method = '3' params.payment_method = '3'
params.open_id = await getOpenId() params.open_id = await getOpenId()
......
...@@ -41,8 +41,8 @@ const goCourse = function () { ...@@ -41,8 +41,8 @@ const goCourse = function () {
<div v-if="isPay"> <div v-if="isPay">
<div class="info-box"> <div class="info-box">
<div style="display: flex; justify-content: center"> <div style="display: flex; justify-content: center">
<van-icon name="wechat-pay" size="60" color="#5ead48" v-if="$route.query.type === '4'" /> <!-- <van-icon name="wechat-pay" size="60" color="#5ead48" v-if="$route.query.type === '4'" />
<van-icon name="alipay" size="60" color="#367df0" v-else /> <van-icon name="alipay" size="60" color="#367df0" v-else /> -->
</div> </div>
<div class="t1">支付成功</div> <div class="t1">支付成功</div>
<div class="t2">{{ $route.query.am }}</div> <div class="t2">{{ $route.query.am }}</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论