浏览代码

pick 10 chốt

student 8 小时之前
父节点
当前提交
77fc2979fd

+ 11 - 6
website/Areas/LotteryV2/Views/Home/BuyTicket.cshtml

@@ -694,14 +694,19 @@ else
         document.addEventListener("DOMContentLoaded", function() {
             // Click on a ball (filled or empty) to pick numbers
             $(document).on('click', '.ball-filled, .ball-empty', function() {
-                isMultiMode = false;
-                activeBall = $(this);
-                activeTicketCard = activeBall.closest('.ticket-card');
+                activeTicketCard = $(this).closest('.ticket-card');
                 
-                var val = activeBall.text().trim();
-                selectedNumbers = val ? [val] : [];
+                // Always open in multi-selection mode for the whole ticket
+                isMultiMode = true;
+                activeBall = null; 
                 
-                openNumberPicker(false);
+                selectedNumbers = new Array(maxBalls).fill(null);
+                activeTicketCard.find('.ball-filled').each(function(idx) {
+                    var val = $(this).text().trim();
+                    if (val && idx < maxBalls) selectedNumbers[idx] = val;
+                });
+                
+                openNumberPicker(true);
             });
 
             updateTotalPrice();

+ 0 - 1
website/Areas/LotteryV2/Views/Home/FAQ.cshtml

@@ -60,7 +60,6 @@
         <div class="flex justify-end mt-2">
              <div class="rounded-xl rounded-tr-sm px-5 py-4 shadow-md w-[90%] bg-white text-[#212121] border border-gray-100">
                  <span class="text-[13px] font-medium leading-relaxed block mb-3">@Lang.faq_a2</span>
-                 <span class="text-sm font-bold text-[#EE0033] block mb-1">@Lang.faq_q3</span>
                  <span class="text-[13px] font-medium leading-relaxed block">@Lang.faq_a3</span>
              </div>
         </div>

+ 1 - 1
website/Areas/LotteryV2/Views/Home/GameHome.cshtml

@@ -118,7 +118,7 @@
                 <div class="col-span-3 flex items-center h-full -ml-2 relative">
                     <!-- Text Layout -->
                     <div class="flex flex-col items-center leading-[0.85] relative z-10 font-UTM_Futura_Extra">
-                        <span class="text-white font-[900] text-[16px] drop-shadow-md">@Lang.Basic</span>
+                        <span class="text-white font-[900] text-[16px] drop-shadow-md">@Lang.Basic</span> 
                         <span class="font-[900] text-[30px] drop-shadow-lg leading-[0.9]" style="background: linear-gradient(180deg, #FFFFFF 20%, #FFF307 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">@Lang.Pick</span>
                         
                         <!-- Floating Bubbles (Matching Image) -->

+ 1 - 1
website/Areas/LotteryV2/Views/Home/Index.cshtml

@@ -43,7 +43,7 @@
                     <!-- Left: Basic Pick + Ball (4 columns) -->
                     <div class="col-span-4 flex items-center gap-1 pl-1">
                         <div class="flex flex-col leading-none">
-                            <span class="text-white font-black italic text-[14px]">@Lang.Basic</span>
+                            <!-- <span class="text-white font-black italic text-[14px]">@Lang.Basic</span> -->
                             <span class="text-yellow-400 font-black italic text-[22px] -mt-1 shadow-sm">@Lang.Pick</span>
                         </div>
                         <div class="w-8 h-8 bg-gradient-to-br from-yellow-300 to-yellow-500 rounded-full border-[2px] border-white flex items-center justify-center shadow-xl transform rotate-12 flex-shrink-0">

+ 0 - 9
website/Languages/Lang.Designer.cs

@@ -917,15 +917,6 @@ namespace LotteryWebApp.Languages {
             }
         }
         
-        /// <summary>
-        ///   Looks up a localized string similar to Ki chans ki genyen pou genyen gwo pri a?.
-        /// </summary>
-        public static string faq_q3 {
-            get {
-                return ResourceManager.GetString("faq_q3", resourceCulture);
-            }
-        }
-        
         /// <summary>
         ///   Looks up a localized string similar to The more numbers you match, the bigger your prize! &lt;br/&gt; In BASIC PICK 10, your 10 selected numbers are compared with the 10 official result numbers. You win when you match 6 or more numbers — and even matching 0 numbers still gives you a reward!&lt;br/&gt;&lt;br/&gt; 🎯 Match 10 numbers → Win the Jackpot&lt;br/&gt; 🔥 Match 9 numbers → Win 12,000 HTG&lt;br/&gt; 💰 Match 8 numbers → Win 600 HTG&lt;br/&gt; ⭐ Match 7 numbers → Win 160 HTG&lt;br/&gt; 🎉 Match 6 numbers → Win 20 HTG&lt;br/&gt; 🎁 Match 0 numbers → Win 5 HTG&lt;br/&gt;&lt;br/&gt; Every ticket gives [rest of string was truncated]&quot;;.
         /// </summary>

+ 1 - 4
website/Languages/Lang.fr.resx

@@ -822,7 +822,7 @@ We’ll help you create an account in a few easy steps.</value>
     <value>How do I play the Pick 10 game?</value>
   </data>
   <data name="faq_a1" xml:space="preserve">
-    <value>Pick 10 numbers from 1 to 80 or choose the Quick Pick option. Purchase your ticket and wait for the draw.</value>
+    <value>Pick 10 balls (20 numbers) from 01 to 80 or choose the Quick Pick option. Purchase your ticket and wait for the draw.</value>
   </data>
   <data name="faq_q2" xml:space="preserve">
     <value>When do Pick 10 draws take place?</value>
@@ -830,9 +830,6 @@ We’ll help you create an account in a few easy steps.</value>
   <data name="faq_a2" xml:space="preserve">
     <value>Draws take place every day at 8:30 p.m. Ticket sales stop at 8:00 p.m.</value>
   </data>
-  <data name="faq_q3" xml:space="preserve">
-    <value>What are the chances of winning the top prize?</value>
-  </data>
   <data name="faq_a3" xml:space="preserve">
     <value>The odds of winning the top Pick 10 prize are 1 in 8,911,711.</value>
   </data>

+ 0 - 3
website/Languages/Lang.resx

@@ -830,9 +830,6 @@ We’ll help you create an account in a few easy steps.</value>
   <data name="faq_a2" xml:space="preserve">
     <value>Tiraj yo fet chak jou a 8:30 p.m. Vann tike yo sispann a 8:00 p.m.</value>
   </data>
-  <data name="faq_q3" xml:space="preserve">
-    <value>Ki chans ki genyen pou genyen gwo pri a?</value>
-  </data>
   <data name="faq_a3" xml:space="preserve">
     <value>Chans pou genyen premye pri Pick 10 la se 1 sou 8,911,711.</value>
   </data>