|
@@ -66,6 +66,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import router from '@system.router';
|
|
import prompt from '@system.prompt';
|
|
import prompt from '@system.prompt';
|
|
import { getChargeList, getUserInfo, checkWxOrder } from "../../api";
|
|
import { getChargeList, getUserInfo, checkWxOrder } from "../../api";
|
|
import { configWxPay, configAliPay } from "../../helper";
|
|
import { configWxPay, configAliPay } from "../../helper";
|
|
@@ -125,6 +126,9 @@ export default {
|
|
if (cur_pay_type === 1) {
|
|
if (cur_pay_type === 1) {
|
|
let ret = await configAliPay({ product_id: product_id, bid: this.bid, send_order_id: this.send_order_id });
|
|
let ret = await configAliPay({ product_id: product_id, bid: this.bid, send_order_id: this.send_order_id });
|
|
this.showToastByCode(ret.code);
|
|
this.showToastByCode(ret.code);
|
|
|
|
+ if (ret.code === "9000") {
|
|
|
|
+ router.back();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
let wx_ret = await configWxPay({ product_id: product_id, bid: this.bid, send_order_id: this.send_order_id });
|
|
let wx_ret = await configWxPay({ product_id: product_id, bid: this.bid, send_order_id: this.send_order_id });
|