Authored by TaoHuang

fix by huangtao

@@ -106,7 +106,8 @@ export default { @@ -106,7 +106,8 @@ export default {
106 await this.delay(1500); 106 await this.delay(1500);
107 107
108 this.payAction({ 108 this.payAction({
109 - orderCode: this.orderCode 109 + orderCode: this.orderCode,
  110 + payment: this.$xianyu.isAliApp ? 2 : 9
110 }).then((result) => { 111 }).then((result) => {
111 toast.hide(); 112 toast.hide();
112 this.onSuccess(result); 113 this.onSuccess(result);
@@ -264,10 +264,10 @@ export default function() { @@ -264,10 +264,10 @@ export default function() {
264 return order; 264 return order;
265 }, 265 },
266 266
267 - async payAction(ctx, { orderCode }) { 267 + async payAction(ctx, { orderCode, payment = 2 }) {
268 const payResult = await this.$api.post('/api/order/pay', { 268 const payResult = await this.$api.post('/api/order/pay', {
269 orderCode, 269 orderCode,
270 - payment: 2 270 + payment
271 }); 271 });
272 272
273 if (payResult.code !== 200) { 273 if (payResult.code !== 200) {