xiongzhu 2 năm trước cách đây
mục cha
commit
2a398f9003
2 tập tin đã thay đổi với 10 bổ sung8 xóa
  1. 1 1
      src/locales/en.json
  2. 9 7
      src/views/HomePage.vue

+ 1 - 1
src/locales/en.json

@@ -105,7 +105,7 @@
         "originalPrice": "Original Price",
         "payServiceCharge": "Pay Service Charge",
         "sellPrice": "Selling Price",
-        "tip": "The consignment has not started yet, it will start today at ${time}",
+        "tip": "The consignment has not started yet, it will start today at {time}",
         "tip1": "Note: entrusting the platform to sell services, the maximum price of the product can be increased by {riseRatePercent}% each time, and the platform will charge {serviceCharge}% of the custody service fee",
         "title": "Consignment"
     },

+ 9 - 7
src/views/HomePage.vue

@@ -224,13 +224,15 @@ function getBanner() {
 const saleBatches = ref([])
 function getSaleBatch() {
     return http.post('saleBatch/all', {}, { body: 'json' }).then(res => {
-        saleBatches.value = res.content.map(item => {
-            return {
-                ...item,
-                empty: false,
-                hotInfo: {}
-            }
-        })
+        saleBatches.value = res.content
+            .filter(i => true !== i.hidden)
+            .map(item => {
+                return {
+                    ...item,
+                    empty: false,
+                    hotInfo: {}
+                }
+            })
         if (!res.empty) {
             res.content.forEach((item, index) => {
                 http.post(