Forráskód Böngészése

二维码扫码进来

xuqiaoying 3 éve
szülő
commit
0b0c105575
1 módosított fájl, 7 hozzáadás és 1 törlés
  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: {