交易市场新增微信支付
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
<script>
|
||||
import { marketsInfo, marketsBuy, marketsPay } from '@/apis/interfaces/market'
|
||||
import userAuth from '@/public/userAuth'
|
||||
import cashierPay from '@/public/cashierPay'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -149,12 +150,11 @@
|
||||
marketsPay(this.orderNo, this.payValue).then(res => {
|
||||
switch (this.payValue){
|
||||
case 'wechat':
|
||||
|
||||
let payConfigObj = JSON.parse(res)
|
||||
cashierPay.pay('wxpay', payConfigObj, 'market')
|
||||
break
|
||||
case 'alipay':
|
||||
cashierPay.pay('alipay', res, 'market').then(payRes => {
|
||||
console.log(payRes)
|
||||
})
|
||||
cashierPay.pay('alipay', res, 'market')
|
||||
break
|
||||
}
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user