This commit is contained in:
2024-03-29 14:55:40 +08:00
parent 91af869899
commit 51c708f9fa
10 changed files with 133 additions and 56 deletions

View File

@@ -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>