|
@@ -240,7 +240,7 @@ void CFupingWnd::UpdateShow(CDiandanOrder& order, double total_youhui, double to
|
|
|
|
|
|
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
|
|
|
|
|
|
- pEle->SetFixedHeight(84);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(98);
|
|
|
pNature->SetVisible(true);
|
|
pNature->SetVisible(true);
|
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
|
}
|
|
}
|
|
@@ -261,13 +261,13 @@ void CFupingWnd::UpdateShow(CDiandanOrder& order, double total_youhui, double to
|
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
|
if (item.is_nature)
|
|
if (item.is_nature)
|
|
|
{
|
|
{
|
|
|
- pEle->SetFixedHeight(84);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(98);
|
|
|
pNature->SetVisible(true);
|
|
pNature->SetVisible(true);
|
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- pEle->SetFixedHeight(42);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(56);
|
|
|
pNature->SetVisible(false);
|
|
pNature->SetVisible(false);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -279,7 +279,7 @@ void CFupingWnd::UpdateShow(CDiandanOrder& order, double total_youhui, double to
|
|
|
|
|
|
|
|
if (total_youhui > 0)
|
|
if (total_youhui > 0)
|
|
|
{
|
|
{
|
|
|
- std::wstring youhuilabel = L"已优惠 " + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_youhui, 2)) + L" 元";
|
|
|
|
|
|
|
+ std::wstring youhuilabel = L"-" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_youhui, 2));
|
|
|
pYouhuiLabel->SetText(youhuilabel.c_str());
|
|
pYouhuiLabel->SetText(youhuilabel.c_str());
|
|
|
|
|
|
|
|
pYouhuiLayout->SetVisible(true);
|
|
pYouhuiLayout->SetVisible(true);
|
|
@@ -290,20 +290,23 @@ void CFupingWnd::UpdateShow(CDiandanOrder& order, double total_youhui, double to
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//再刷新打包费展示
|
|
//再刷新打包费展示
|
|
|
|
|
+ CHorizontalLayoutUI* pOtherPriceLayout = static_cast<CHorizontalLayoutUI*>(m_pm.FindControl(_T("diandan_page_otherprice_layout")));
|
|
|
CLabelUI* pOtherPriceLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("diandan_page_otherprice")));
|
|
CLabelUI* pOtherPriceLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("diandan_page_otherprice")));
|
|
|
- if (dabao_money > 0)
|
|
|
|
|
- {
|
|
|
|
|
- std::wstring ws_dabaofei = L"打包费 " + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(dabao_money, 2)) + L" 元";
|
|
|
|
|
- pOtherPriceLabel->SetText(ws_dabaofei.c_str());
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- pOtherPriceLabel->SetText(L"");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (dabao_money > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ std::wstring ws_dabaofei = L"打包费 " + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(dabao_money, 2)) + L" 元";
|
|
|
|
|
+ pOtherPriceLabel->SetText(ws_dabaofei.c_str());
|
|
|
|
|
+ pOtherPriceLayout->SetVisible(true);
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ pOtherPriceLabel->SetText(L"");
|
|
|
|
|
+ pOtherPriceLayout->SetVisible(false);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//再刷新总价展示
|
|
//再刷新总价展示
|
|
|
CLabelUI* pTotalPrice = static_cast<CLabelUI*>(this->m_pm.FindControl(_T("diandan_page_totalprice")));
|
|
CLabelUI* pTotalPrice = static_cast<CLabelUI*>(this->m_pm.FindControl(_T("diandan_page_totalprice")));
|
|
|
- pTotalPrice->SetText((L"总价:¥" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_price, 2))).c_str());
|
|
|
|
|
|
|
+ pTotalPrice->SetText((L"¥" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_price, 2))).c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double total_price, double dabao_money, double kaitai_money, double chawei_money)
|
|
void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double total_price, double dabao_money, double kaitai_money, double chawei_money)
|
|
@@ -338,7 +341,7 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
|
|
|
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
|
|
|
|
|
|
- pEle->SetFixedHeight(84);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(98);
|
|
|
pNature->SetVisible(true);
|
|
pNature->SetVisible(true);
|
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
|
}
|
|
}
|
|
@@ -359,13 +362,13 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
|
if (item.is_nature)
|
|
if (item.is_nature)
|
|
|
{
|
|
{
|
|
|
- pEle->SetFixedHeight(84);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(98);
|
|
|
pNature->SetVisible(true);
|
|
pNature->SetVisible(true);
|
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getNatureShow()).c_str());
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- pEle->SetFixedHeight(42);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(56);
|
|
|
pNature->SetVisible(false);
|
|
pNature->SetVisible(false);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -428,7 +431,7 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
{
|
|
{
|
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
CLabelUI* pNature = static_cast<CLabelUI*>(pEle->FindSubControl(_T("diandan_cart_item_nature")));
|
|
|
|
|
|
|
|
- pEle->SetFixedHeight(84);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(98);
|
|
|
pNature->SetVisible(true);
|
|
pNature->SetVisible(true);
|
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getHistoryNatureShow()).c_str());
|
|
pNature->SetText(CLewaimaiString::UTF8ToUnicode(item.getHistoryNatureShow()).c_str());
|
|
|
|
|
|
|
@@ -436,7 +439,7 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- pEle->SetFixedHeight(42);
|
|
|
|
|
|
|
+ pEle->SetFixedHeight(56);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -447,7 +450,7 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
|
|
|
|
|
if (total_youhui > 0)
|
|
if (total_youhui > 0)
|
|
|
{
|
|
{
|
|
|
- std::wstring youhuilabel = L"已优惠 " + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_youhui, 2)) + L" 元";
|
|
|
|
|
|
|
+ std::wstring youhuilabel = L"-" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_youhui, 2));
|
|
|
pYouhuiLabel->SetText(youhuilabel.c_str());
|
|
pYouhuiLabel->SetText(youhuilabel.c_str());
|
|
|
|
|
|
|
|
pYouhuiLayout->SetVisible(true);
|
|
pYouhuiLayout->SetVisible(true);
|
|
@@ -458,8 +461,9 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//再刷新打包费展示
|
|
//再刷新打包费展示
|
|
|
|
|
+ CHorizontalLayoutUI* pOtherPriceLayout = static_cast<CHorizontalLayoutUI*>(m_pm.FindControl(_T("diandan_page_otherprice_layout")));
|
|
|
CLabelUI* pOtherPriceLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("diandan_page_otherprice")));
|
|
CLabelUI* pOtherPriceLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("diandan_page_otherprice")));
|
|
|
- std::wstring feiyong = L"";
|
|
|
|
|
|
|
+ std::wstring feiyong = L"";
|
|
|
|
|
|
|
|
if (dabao_money > 0)
|
|
if (dabao_money > 0)
|
|
|
{
|
|
{
|
|
@@ -477,10 +481,11 @@ void CFupingWnd::UpdateShow(CZhengcanOrder& order, double total_youhui, double t
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pOtherPriceLabel->SetText(feiyong.c_str());
|
|
pOtherPriceLabel->SetText(feiyong.c_str());
|
|
|
|
|
+ pOtherPriceLayout->SetVisible(!feiyong.empty());
|
|
|
|
|
|
|
|
//再刷新总价展示
|
|
//再刷新总价展示
|
|
|
CLabelUI* pTotalPrice = static_cast<CLabelUI*>(this->m_pm.FindControl(_T("diandan_page_totalprice")));
|
|
CLabelUI* pTotalPrice = static_cast<CLabelUI*>(this->m_pm.FindControl(_T("diandan_page_totalprice")));
|
|
|
- pTotalPrice->SetText((L"总价:¥" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_price, 2))).c_str());
|
|
|
|
|
|
|
+ pTotalPrice->SetText((L"¥" + CLewaimaiString::UTF8ToUnicode(CLewaimaiString::DoubleToString(total_price, 2))).c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void CFupingWnd::Stop()
|
|
void CFupingWnd::Stop()
|