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