优化
This commit is contained in:
@@ -104,6 +104,7 @@ import { assetsUrl } from '@/utils/assets';
|
||||
import PaymentDialog from '@/components/payment-dialog.vue';
|
||||
import CouponDialog from '@/pages/mall/subs/components/coupon-dialog.vue';
|
||||
import { goPath } from '@/utils';
|
||||
import { orderCreate } from '@/api/goods';
|
||||
|
||||
const couponDialogRef = ref();
|
||||
const paymentDialogRef = ref();
|
||||
@@ -119,8 +120,36 @@ const showCouponDialog = () => {
|
||||
couponDialogRef.value.show();
|
||||
};
|
||||
|
||||
const payment = () => {
|
||||
const payment = async () => {
|
||||
const params = {
|
||||
'discount': 0,
|
||||
'freePrice': 0,
|
||||
'reducePrice': 0,
|
||||
'totalPrice': 0,
|
||||
'integral': 0,
|
||||
'allowIntegral': 0,
|
||||
'produceIntegralNumber': 0,
|
||||
'remark': 'string',
|
||||
'orderGoods': [
|
||||
{
|
||||
'goodsId': 'string',
|
||||
'goodsCode': 'string',
|
||||
'goodsNum': 0,
|
||||
'stockId': 'string',
|
||||
'originPrice': 0,
|
||||
'consumePrice': 0,
|
||||
'discount': 0,
|
||||
'discountOriginPrice': 0,
|
||||
'produceIntegral': 0,
|
||||
'priceModify': [
|
||||
0
|
||||
],
|
||||
'offset': 0
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const result = await orderCreate(params);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user