shaogen1995 3 tahun lalu
induk
melakukan
0b739cf59c

+ 5 - 1
src/pages/exhibition/exhibition-type.vue

@@ -182,7 +182,11 @@ export default {
         query: { ...item, navType: this.exhibitionType }
       })
     },
-    jumpTo (onlineLink) {
+   async jumpTo (onlineLink) {
+        let result = await this.$http({
+        url: '/api/web/addVisitWeb/scene',
+      })
+      console.log('线上史馆记录成功',result);
       window.open(onlineLink)
     },
     async getOnlineLink () {

+ 7 - 2
src/pages/information/information-type.vue

@@ -207,8 +207,13 @@ export default {
       this.params.pageNum = val
       this.getList()
     },
-    toDetail (item) {
-      // console.log('item',item)
+   async toDetail (item) {
+      console.log('item',item.id)
+        let result = await this.$http({
+        url: `/api/web/addVisitNews/${item.id}`
+      })
+      console.log('阅读量记录成功',result);
+
       if (item.wxUrl) return
       this.$router.push({
         path: '/information-detail',