@freedom_sky/feige-lib 4.51.2 → 4.51.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buffet/index.js +1 -1
- package/package.json +1 -1
- package/src/buffet/index.ts +1 -1
package/dist/buffet/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
* 计算自助餐总价
|
|
5
5
|
*/
|
|
6
6
|
function calcBuffetTotalPrice(buffetCombosItem, adultNum, childNum) {
|
|
7
|
-
return buffetCombosItem.price.adult * adultNum
|
|
7
|
+
return buffetCombosItem.price.adult * adultNum + buffetCombosItem.price.child * childNum;
|
|
8
8
|
}
|
|
9
9
|
exports.calcBuffetTotalPrice = calcBuffetTotalPrice;
|
|
10
10
|
function dishShowPriceWithBuffet(_a) {
|
package/package.json
CHANGED
package/src/buffet/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {BuffetCombosItems, BuffetDishItem} from "../index"
|
|
|
3
3
|
* 计算自助餐总价
|
|
4
4
|
*/
|
|
5
5
|
export function calcBuffetTotalPrice(buffetCombosItem:BuffetCombosItems, adultNum: number, childNum: number): number {
|
|
6
|
-
return buffetCombosItem.price.adult*adultNum
|
|
6
|
+
return buffetCombosItem.price.adult*adultNum + buffetCombosItem.price.child* childNum
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export function dishShowPriceWithBuffet({dishPrice, dishId, buffet, orderedCound, adultNum, childNum}:{dishPrice:number, dishId:string, buffet?: BuffetCombosItems, orderedCound: number, adultNum: number, childNum: number}) {
|