Explorar el Código

二维码扫码进来

xuqiaoying hace 3 años
padre
commit
0b0c105575
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      pages4/courseTopic/goodsTopic.vue

+ 7 - 1
pages4/courseTopic/goodsTopic.vue

@@ -141,7 +141,13 @@ export default {
         }
     },
     onLoad(option) {
-        this.topicId = option.topicId
+        if (option.scene) {
+            let tid = decodeURIComponent(option.scene)
+            this.topicId = tid.split('=')[1]
+            console.log('topicId: ', this.topicId)
+        } else {
+            this.topicId = option.topicId
+        }
         this.getgoodsInfo()
     },
     methods: {