|
|
@@ -64,7 +64,22 @@ void CZhengcanTableItemUI::UpdateShow()
|
|
|
|
|
|
if (m_status == "0")
|
|
|
{
|
|
|
- //未开台
|
|
|
+ //未开台:白卡圆角九宫格(C4),文字/图标回到深色版
|
|
|
+ this->SetBkImage(L"file='dc_cart.png' corner='10,10,10,10'");
|
|
|
+
|
|
|
+ //像素级还原 C4:徽章 = 浅灰实底 #F0F1F3 + 辅助灰字 #8A9099
|
|
|
+ pStatus->SetBkImage(L"file='tc_pill_grey.png' corner='11,11,11,11'");
|
|
|
+
|
|
|
+ pName->SetTextColor(0xFF1F2329);
|
|
|
+ pStatus->SetTextColor(0xFF8A9099);
|
|
|
+
|
|
|
+ //页脚(人数)用设计稿 --aid #8A9099,不再用 #5F6368
|
|
|
+ pRenshu->SetTextColor(0xFF8A9099);
|
|
|
+ pShijian->SetTextColor(0xFF8A9099);
|
|
|
+
|
|
|
+ pPeopleImage->SetBkImage(L"zhengcan_people_2.png");
|
|
|
+ pTimeImage->SetBkImage(L"zhengcan_time_2.png");
|
|
|
+
|
|
|
pStatus->SetText(L"未开台");
|
|
|
|
|
|
//隐藏时钟
|
|
|
@@ -81,10 +96,9 @@ void CZhengcanTableItemUI::UpdateShow()
|
|
|
pRenshu->SetText((CLewaimaiString::UTF8ToUnicode(m_person_num) + L"人").c_str());
|
|
|
|
|
|
pName->SetTextColor(0xFFFFFFFF);
|
|
|
- pStatus->SetTextColor(0xFFFFFFFF);
|
|
|
|
|
|
- pRenshu->SetTextColor(0xFFFFFFFF);
|
|
|
- pShijian->SetTextColor(0xFFFFFFFF);
|
|
|
+ //像素级还原 C4:色块卡上的徽章是「卡色+白16%实底 + 白字」
|
|
|
+ pStatus->SetTextColor(0xFFFFFFFF);
|
|
|
|
|
|
pPeopleImage->SetBkImage(L"zhengcan_people_1.png");
|
|
|
pTimeImage->SetBkImage(L"zhengcan_time_1.png");
|
|
|
@@ -112,17 +126,27 @@ void CZhengcanTableItemUI::UpdateShow()
|
|
|
//区分待下单、待结账、待清台这3个状态
|
|
|
if (m_order_id == "0")
|
|
|
{
|
|
|
- //说明还未下单,处于待下单状态,用绿色
|
|
|
- this->SetBkColor(0xFF60B177);
|
|
|
- pBottom->SetBkColor(0xFF28A25E);
|
|
|
+ //说明还未下单,处于待下单状态,用绿色(C4:九宫格实色图,圆角不会被方角矩形盖掉)
|
|
|
+ this->SetBkImage(L"file='tc_card_green.png' corner='10,10,10,10'");
|
|
|
+ pBottom->SetBkColor(0x00000000);
|
|
|
+
|
|
|
+ //徽章 #79BD8C(绿+白16%)+ 白字;页脚 #D2E9D9(绿+白72%)
|
|
|
+ pStatus->SetBkImage(L"file='tc_pill_green.png' corner='11,11,11,11'");
|
|
|
+ pRenshu->SetTextColor(0xFFD2E9D9);
|
|
|
+ pShijian->SetTextColor(0xFFD2E9D9);
|
|
|
|
|
|
pStatus->SetText(L"待下单");
|
|
|
}
|
|
|
else if (m_order_status == "SUCCESS")
|
|
|
{
|
|
|
//待清台,用蓝色
|
|
|
- this->SetBkColor(0xFF497FC7);
|
|
|
- pBottom->SetBkColor(0xFF3A74C2);
|
|
|
+ this->SetBkImage(L"file='tc_card_blue.png' corner='10,10,10,10'");
|
|
|
+ pBottom->SetBkColor(0x00000000);
|
|
|
+
|
|
|
+ //徽章 #6693D0(蓝+白16%)+ 白字;页脚 #CCDBEF(蓝+白72%)
|
|
|
+ pStatus->SetBkImage(L"file='tc_pill_blue.png' corner='11,11,11,11'");
|
|
|
+ pRenshu->SetTextColor(0xFFCCDBEF);
|
|
|
+ pShijian->SetTextColor(0xFFCCDBEF);
|
|
|
|
|
|
pStatus->SetText(L"待清台");
|
|
|
}
|
|
|
@@ -131,8 +155,13 @@ void CZhengcanTableItemUI::UpdateShow()
|
|
|
//包含OPEN PASSWORD CLOSE等,只要没支付成功,就是未支付状态
|
|
|
|
|
|
//说明已下单,未支付,处于待支付状态,用红色
|
|
|
- this->SetBkColor(0xFFF95252);
|
|
|
- pBottom->SetBkColor(0xFFF73F3F);
|
|
|
+ this->SetBkImage(L"file='tc_card_red.png' corner='10,10,10,10'");
|
|
|
+ pBottom->SetBkColor(0x00000000);
|
|
|
+
|
|
|
+ //徽章 #E66867(红+白16%)+ 白字;页脚 #F3B7B7(红+白60%)
|
|
|
+ pStatus->SetBkImage(L"file='tc_pill_red.png' corner='11,11,11,11'");
|
|
|
+ pRenshu->SetTextColor(0xFFF3B7B7);
|
|
|
+ pShijian->SetTextColor(0xFFF3B7B7);
|
|
|
|
|
|
pStatus->SetText(L"待结账");
|
|
|
}
|