|
@@ -83,7 +83,7 @@ export class PayCompComponent implements OnInit {
|
|
|
this.tradeNo = this.accServ.setTradeNo();
|
|
|
} else {
|
|
|
this.orderId = await this.getOrder();
|
|
|
- if (this.orderType == 'service' && !this.orderId) {
|
|
|
+ if (this.orderType == 'vip' && !this.orderId) {
|
|
|
this.tradeNo = this.accServ.setTradeNo();
|
|
|
} else if (
|
|
|
this.orderType == 'recharge' &&
|
|
@@ -116,6 +116,7 @@ export class PayCompComponent implements OnInit {
|
|
|
await this.getOrderId();
|
|
|
let params = {
|
|
|
company: this.accServ.company,
|
|
|
+ body: this.title,
|
|
|
out_trade_no: this.tradeNo,
|
|
|
total_fee: +this.price,
|
|
|
openid: openid,
|
|
@@ -227,9 +228,9 @@ export class PayCompComponent implements OnInit {
|
|
|
}
|
|
|
|
|
|
async getOrderId() {
|
|
|
- if (this.orderType == 'service' && !this.orderId && this.gid) {
|
|
|
+ if (this.orderType == 'vip' && !this.orderId && this.gid) {
|
|
|
let resulte = await this.accServ.setOrder({
|
|
|
- type: 'service',
|
|
|
+ type: 'service',//创建服务类订单
|
|
|
gid: this.gid,
|
|
|
price: this.price,
|
|
|
total_fee: this.price,
|