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