|
@@ -17,6 +17,7 @@ import {
|
|
import { defineComponent, PropType } from 'vue'
|
|
import { defineComponent, PropType } from 'vue'
|
|
|
|
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
|
|
+import { state } from '@/state'
|
|
|
|
|
|
interface IOrderInfo {
|
|
interface IOrderInfo {
|
|
orderNo: string | number
|
|
orderNo: string | number
|
|
@@ -93,10 +94,17 @@ export default defineComponent({
|
|
async onSubmit() {
|
|
async onSubmit() {
|
|
// 支付...
|
|
// 支付...
|
|
try {
|
|
try {
|
|
|
|
+ let params = {
|
|
|
|
+ orderNo: this.orderInfo.orderNo,
|
|
|
|
+ payChannel: this.payType,
|
|
|
|
+ paymentClient: null as any
|
|
|
|
+ }
|
|
|
|
+ if (this.paymentType === 'goodsPay') {
|
|
|
|
+ params.paymentClient = state.platformType
|
|
|
|
+ }
|
|
let res = await request.post(urlType[this.paymentType].payUrl, {
|
|
let res = await request.post(urlType[this.paymentType].payUrl, {
|
|
data: {
|
|
data: {
|
|
- orderNo: this.orderInfo.orderNo,
|
|
|
|
- payChannel: this.payType
|
|
|
|
|
|
+ ...params
|
|
}
|
|
}
|
|
})
|
|
})
|
|
postMessage({
|
|
postMessage({
|