|
@@ -44,7 +44,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <template v-if="detail">
|
|
|
|
|
|
|
+ <template v-if="detail && JSON.stringify(detail) != '{}'">
|
|
|
<div class="card">
|
|
<div class="card">
|
|
|
<div class="tit">订单信息</div>
|
|
<div class="tit">订单信息</div>
|
|
|
<div class="pli">
|
|
<div class="pli">
|
|
@@ -180,8 +180,10 @@ export default {
|
|
|
type = "jsapi";
|
|
type = "jsapi";
|
|
|
// #endif
|
|
// #endif
|
|
|
post("local/goOrderPay", { trade_no: this.order.trade_no,trade_type: type }).then(res => {
|
|
post("local/goOrderPay", { trade_no: this.order.trade_no,trade_type: type }).then(res => {
|
|
|
- if (res.code == 0 && res.data.data.prepayid) {
|
|
|
|
|
- toPayOpre.toPay(res.data.data, (rea) => {
|
|
|
|
|
|
|
+ let data = JSON.parse(res.data.data)
|
|
|
|
|
+ data.prepayid = data.package?data.package.split('prepay_id=')[1]:''
|
|
|
|
|
+ if (res.code == 0 && data.prepayid) {
|
|
|
|
|
+ toPayOpre.toPay(data, (rea) => {
|
|
|
if (!rea) {
|
|
if (!rea) {
|
|
|
// 支付成功
|
|
// 支付成功
|
|
|
this.getTicket(this.pda);
|
|
this.getTicket(this.pda);
|