|
@@ -179,6 +179,13 @@
|
|
|
async confirmOrder() {
|
|
|
//小程序创建的订单,先在后台创建订单,创建成功后跳转至支付页面
|
|
|
if (this.order.orderSource === 'MINI_APP') {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ this.order["platform"] = "WECHAT"
|
|
|
+ // #endif
|
|
|
+
|
|
|
+ // #ifdef MP-ALIPAY
|
|
|
+ this.order["platform"] = "ALIPAY"
|
|
|
+ // #endif
|
|
|
if (!this.order.orderId) {
|
|
|
let createOrderRes = await uni.$http.post('/order', this.order)
|
|
|
if (createOrderRes.data.code !== 200) {
|