代客下单更新部分页面跳转请求。页面展示

This commit is contained in:
2024-09-14 18:27:22 +08:00
parent 2b5aa1275b
commit 5a973af47a
9 changed files with 448 additions and 150 deletions

16
pagesCreateOrder/util.js Normal file
View File

@@ -0,0 +1,16 @@
import {
returnBoolean
} from '@/commons/utils/format.js';
// 返回购物车未下单的数据
export function getNowCart(records) {
const nowCart = records.find(v => v.placeNum == 0)
const Cart = nowCart ? nowCart.info : []
const result = Cart.map(item => {
return {
...item,
isPack: returnBoolean(item.isPack),
isGift: returnBoolean(item.isGift)
}
})
return result
}