|
|
import ensureModel from '../../../models/cart/ensure';
|
|
|
import addressModel from '../../../models/home/address';
|
|
|
import payModel from '../../../models/pay/pay';
|
|
|
import wechatAddressUtil from '../../../utils/wechat-address';
|
|
|
import { wechatPay } from '../../../utils/wechat-pay';
|
|
|
import Yas from '../../../common/yas';
|
...
|
...
|
@@ -284,7 +285,9 @@ Page({ |
|
|
|
|
|
this.setData({invoiceInfo: invoice});
|
|
|
},
|
|
|
submitOrder() {
|
|
|
submitOrder(e) {
|
|
|
this.formId = e.detail.formId;
|
|
|
|
|
|
if (this.orderType === ORDER_TYPE.BUYNOW) {
|
|
|
this.buynowOrderSubmit();
|
|
|
} else {
|
...
|
...
|
@@ -353,6 +356,14 @@ Page({ |
|
|
ORDER_TYPE: 102 // 101购物车下单,102立即购买下单
|
|
|
});
|
|
|
|
|
|
//上报formID
|
|
|
payModel.paySuccessConfirm({
|
|
|
order_code: data.order_code,
|
|
|
openId: app.getOpenID(),
|
|
|
miniapp_type: app.getMiniappType(),
|
|
|
formId: this.formId
|
|
|
});
|
|
|
|
|
|
data.needJump = true;
|
|
|
wechatPay(data);
|
|
|
} else {
|
...
|
...
|
|