交易市场新增微信支付
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 => {
|
||||
|
||||
@@ -266,7 +266,9 @@
|
||||
let identity = this.identitie[this.tabsIndex].identity_id
|
||||
vipOrder(identity, {
|
||||
year: 1,
|
||||
}).then(res => {
|
||||
}).then(res => {
|
||||
|
||||
|
||||
if (payType === 0) this.wechatAppPay(res.id)
|
||||
if (payType === 1) this.aliPayConfig(res.id)
|
||||
}).catch(err => {
|
||||
@@ -277,7 +279,7 @@
|
||||
})
|
||||
},
|
||||
|
||||
// 支付宝支付
|
||||
// 支付
|
||||
aliPayConfig(orderId) {
|
||||
getAliPayConfig(orderId, {
|
||||
type: 'app'
|
||||
|
||||
Reference in New Issue
Block a user