fengchang 1 ano atrás
pai
commit
151e1416c5

+ 12 - 0
hichina-main-front-mobile-first/src/pages/BlogPage.vue

@@ -174,8 +174,20 @@ export default {
         }
       }, 500);
     }
+    function logPv() {
+      api
+        .post("/api/public/pagestats/pv/blog")
+        .then((res) => {
+          console.log("log pv:");
+          console.log(res.data);
+        })
+        .catch((err) => {
+          console.error("Error:", err);
+        });
+    }
 
     onMounted(() => {
+      logPv();
       loadSliders();
       getNextBatch();
     });

+ 12 - 0
hichina-main-front-mobile-first/src/pages/DestinationPage.vue

@@ -121,7 +121,19 @@ export default {
           console.log(error);
         });
     }
+    function logPv() {
+      api
+        .post("/api/public/pagestats/pv/destination")
+        .then((res) => {
+          console.log("log pv:");
+          console.log(res.data);
+        })
+        .catch((err) => {
+          console.error("Error:", err);
+        });
+    }
     onMounted(() => {
+      logPv();
       loadDestinations();
       getNextBatch();
     });

+ 13 - 0
hichina-main-front-mobile-first/src/pages/GuideIntroPage.vue

@@ -113,7 +113,20 @@ export default {
           });
     }
 
+    function logPv() {
+      api
+        .post("/api/public/pagestats/pv/guideintro")
+        .then((res) => {
+          console.log("log pv:");
+          console.log(res.data);
+        })
+        .catch((err) => {
+          console.error("Error:", err);
+        });
+    }
+
     onMounted(() => {
+      logPv();
       loadSliders();
       loadGuideBooks();
     });

+ 13 - 0
hichina-main-front-mobile-first/src/pages/IndexPage.vue

@@ -345,7 +345,20 @@ export default defineComponent({
       }, 500);
     }
 
+    function logPv() {
+      api
+        .post("/api/public/pagestats/pv/home")
+        .then((res) => {
+          console.log("log pv:");
+          console.log(res.data);
+        })
+        .catch((err) => {
+          console.error("Error:", err);
+        });
+    }
+
     onMounted(() => {
+      logPv();
       // we call "next()" method of our component
       loadHomeSliders();
       loadRand6Destinations();

+ 13 - 0
hichina-main-front-mobile-first/src/pages/TravelShopPage.vue

@@ -192,7 +192,20 @@ export default {
       }, 500);
     }
 
+    function logPv() {
+      api
+        .post("/api/public/pagestats/pv/product")
+        .then((res) => {
+          console.log("log pv:");
+          console.log(res.data);
+        })
+        .catch((err) => {
+          console.error("Error:", err);
+        });
+    }
+
     onMounted(() => {
+      logPv();
       setActiveTab("groupTour");
       getNextBatch();
     });