Ver código fonte

二维码扫码进来

xuqiaoying 3 anos atrás
pai
commit
0b0c105575
1 arquivos alterados com 7 adições e 1 exclusões
  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: {