修复bug
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
||||
"name" : "CHEFLINK delivery",
|
||||
"appid" : "__UNI__06509BE",
|
||||
"description" : "",
|
||||
"versionName" : "3.1.0",
|
||||
"versionCode" : 310,
|
||||
"versionName" : "3.1.2",
|
||||
"versionCode" : 312,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
@@ -388,7 +388,7 @@ const specPopupDisplayPrice = computed(() => {
|
||||
|
||||
const detailDisplayPrice = computed(() => {
|
||||
const dish = dishDetailData.value as any;
|
||||
const firstSpecPrice = dish?.merchantSideDishVoList?.[0]?.merchantSideDishItemVoList?.[0]?.price;
|
||||
const firstSpecPrice = dish?.merchantSideDishVoList?.[0]?.merchantSideDishItemVoList?.[0]?.actualSalePrice;
|
||||
if (firstSpecPrice != null && String(firstSpecPrice) !== "") {
|
||||
return firstSpecPrice;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ function getDishPromoLabel(item: Record<string, unknown>): string {
|
||||
}
|
||||
|
||||
function getFeaturedDishDisplayPrice(item: Record<string, any>) {
|
||||
const firstSpecPrice = item?.merchantSideDishVoList?.[0]?.merchantSideDishItemVoList?.[0]?.price
|
||||
const firstSpecPrice = item?.merchantSideDishVoList?.[0]?.merchantSideDishItemVoList?.[0]?.actualSalePrice
|
||||
if (firstSpecPrice != null && String(firstSpecPrice) !== '') return firstSpecPrice
|
||||
if (item?.actualSalePrice != null && String(item.actualSalePrice) !== '') return item.actualSalePrice
|
||||
return item?.discountPrice ?? 0
|
||||
|
||||
Reference in New Issue
Block a user