Browse Source

訂單信件內容樣式調整

Dev
Janie 2 years ago
parent
commit
5e004df342
  1. 18
      EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMail.cs

18
EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMail.cs

@ -795,14 +795,14 @@ namespace EasyBL.WEBAPP.SYS
//訂單資訊 start ------------------------------------------------------------
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" width = \"340px\" style = \"display: block;padding-top: 10px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\">");
sb.Append("<p style = \"font-weight: 400;font-size: 12px;line-height: 14px;letter-spacing: 0.02em;font-family: 'arial', 'sans-serif';margin: 0 0 0px;\" class=\"has-markdown\">");
sb.Append("<p style = \"font-weight: 400;font-size: 12px;line-height: 14px;letter-spacing: 0.02em;font-family: 'arial','sans-serif';margin: 0 0 0px;\" class=\"has-markdown\">");
sb.Append("訂單資訊:");
sb.Append("</p>");
sb.Append("</td>");
sb.Append("</tr>");
//Button:service card start ----------------------------------------------------
sb.Append("<tr style=\"padding: 0 50px 0 50px; background-color: #f8f8f8;border: #f1f1f1; border-radius: 20px;border-width: 1px;\">");
sb.Append("<td bgcolor = \"#FEFEFE\" width=\"340px\" style = \"display: block;padding-top: 25px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\"> ");
sb.Append("<td bgcolor = \"#FEFEFE\" width=\"340px\" style = \"display: block;padding-top: 25px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\">");
sb.Append("<table>");
sb.Append("<tbody>");
sb.Append("<tr>");
@ -817,16 +817,16 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("</td>");
//booking status
sb.Append("<td>");
sb.Append("<h1 style =\"padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;font-size: 14px;line-height: 18px;color: #7997ff;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;font-size: 14px;line-height: 18px;color: #7997ff;margin: 0 0 0 0;\">");
sb.Append("訂單處理中,<span style=\"color: #2dc695;\">未付款</span>");
sb.Append("</h1>");
//service name
sb.Append("<h1 style =\"padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 700;font-size: 14px;line-height: 18px;color: #232323;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 700;font-size: 14px;line-height: 18px;color: #232323;margin: 0 0 0 0;\">");
//sb.Append("包車遊覽|新北景點一日遊:九份&平溪&北海岸");
sb.Append(BookingOnlineModel.ServiceName);
sb.Append("</h1>");
//booking number
sb.Append("<h1 style =\"padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
//sb.Append("#B35553244AC");
sb.Append(BookingOnlineModel.BookingNo);
sb.Append("</h1>");
@ -842,23 +842,23 @@ namespace EasyBL.WEBAPP.SYS
}
foreach (var item in lstT)
{
sb.Append("<h1 style =\"padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(item);
sb.Append("</h1>");
}
//service time
sb.Append("<h1 style =\"padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
//sb.Append("服務時間: 2022.09.20 08:00 (當地時間)");
sb.Append("服務時間: " + BookingOnlineModel.ServiceDateSFormat + " (當地時間)");
sb.Append("</h1>");
//booking time
sb.Append("<h1 style =\"padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 12px;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
//sb.Append("訂購時間: 2022.07.20 12:00");
sb.Append("訂購時間: " + BookingOnlineModel.BookingDateFormat);
sb.Append("</h1>");
//cost
sb.Append("<h1 style =\"padding-bottom: 10px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 14px;line-height: 18px;color: #f48800;margin: 0 0 0 0;>");
sb.Append("<h1 style =\"padding-bottom: 10px;font-family: 'arial','sans-serif';font-weight: 500;font-size: 14px;line-height: 18px;color: #f48800;margin: 0 0 0 0;\">");
//sb.Append("$3,500 台幣");
sb.Append("$" + BookingOnlineModel.TotalPrice + " 台幣");
sb.Append("</h1>");

Loading…
Cancel
Save