代客下单更新部分页面跳转请求。页面展示
This commit is contained in:
16
pagesCreateOrder/util.js
Normal file
16
pagesCreateOrder/util.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user